MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / staticToolToTool

Function staticToolToTool

packages/core/sdk/src/executor.ts:2087–2099  ·  view source on GitHub ↗
(entry: StaticTools)

Source from the content-addressed store, hash-verified

2085 });
2086
2087 const staticToolToTool = (entry: StaticTools): Tool => ({
2088 address: ToolAddress.make(`${entry.integration.id}.${entry.tool.name}`),
2089 owner: staticToolOwner(),
2090 integration: IntegrationSlug.make(entry.integration.id),
2091 connection: staticToolConnection(entry.integration),
2092 name: ToolName.make(entry.tool.name),
2093 pluginId: entry.pluginId,
2094 description: entry.tool.description,
2095 inputSchema: staticToolSchemaRoot(entry.tool.inputSchema, "input"),
2096 outputSchema: staticToolSchemaRoot(entry.tool.outputSchema, "output"),
2097 annotations: entry.tool.annotations,
2098 static: true,
2099 });
2100
2101 /** How long a credential provider gets to answer one call.
2102 *

Callers 2

toolsListFunction · 0.85
toolSchemaFunction · 0.85

Calls 3

staticToolOwnerFunction · 0.85
staticToolConnectionFunction · 0.85
staticToolSchemaRootFunction · 0.85

Tested by

no test coverage detected