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

Function staticToolToTool

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

Source from the content-addressed store, hash-verified

1384 });
1385
1386 const staticToolToTool = (entry: StaticTools): Tool => ({
1387 address: ToolAddress.make(`${entry.source.id}.${entry.tool.name}`),
1388 owner: staticToolOwner(),
1389 integration: IntegrationSlug.make(entry.source.id),
1390 connection: staticToolConnection(entry.source),
1391 name: ToolName.make(entry.tool.name),
1392 pluginId: entry.pluginId,
1393 description: entry.tool.description,
1394 inputSchema: staticToolSchemaRoot(entry.tool.inputSchema, "input"),
1395 outputSchema: staticToolSchemaRoot(entry.tool.outputSchema, "output"),
1396 annotations: entry.tool.annotations,
1397 static: true,
1398 });
1399
1400 const registerCredentialProvider = (
1401 provider: CredentialProvider,

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