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

Function staticToolToTool

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

Source from the content-addressed store, hash-verified

2071 });
2072
2073 const staticToolToTool = (entry: StaticTools): Tool => ({
2074 address: ToolAddress.make(`${entry.integration.id}.${entry.tool.name}`),
2075 owner: staticToolOwner(),
2076 integration: IntegrationSlug.make(entry.integration.id),
2077 connection: staticToolConnection(entry.integration),
2078 name: ToolName.make(entry.tool.name),
2079 pluginId: entry.pluginId,
2080 description: entry.tool.description,
2081 inputSchema: staticToolSchemaRoot(entry.tool.inputSchema, "input"),
2082 outputSchema: staticToolSchemaRoot(entry.tool.outputSchema, "output"),
2083 annotations: entry.tool.annotations,
2084 static: true,
2085 });
2086
2087 /** How long a credential provider gets to answer one call.
2088 *

Callers 2

readToolsFunction · 0.85
toolSchemaFunction · 0.85

Calls 3

staticToolOwnerFunction · 0.85
staticToolConnectionFunction · 0.85
staticToolSchemaRootFunction · 0.85

Tested by

no test coverage detected