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

Function staticToolToTool

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

Source from the content-addressed store, hash-verified

2036 });
2037
2038 const staticToolToTool = (entry: StaticTools): Tool => ({
2039 address: ToolAddress.make(`${entry.integration.id}.${entry.tool.name}`),
2040 owner: staticToolOwner(),
2041 integration: IntegrationSlug.make(entry.integration.id),
2042 connection: staticToolConnection(entry.integration),
2043 name: ToolName.make(entry.tool.name),
2044 pluginId: entry.pluginId,
2045 description: entry.tool.description,
2046 inputSchema: staticToolSchemaRoot(entry.tool.inputSchema, "input"),
2047 outputSchema: staticToolSchemaRoot(entry.tool.outputSchema, "output"),
2048 annotations: entry.tool.annotations,
2049 static: true,
2050 });
2051
2052 /** How long a credential provider gets to answer one call.
2053 *

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