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

Function staticToolToTool

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

Source from the content-addressed store, hash-verified

1407 });
1408
1409 const staticToolToTool = (entry: StaticTools): Tool => ({
1410 address: ToolAddress.make(`${entry.integration.id}.${entry.tool.name}`),
1411 owner: staticToolOwner(),
1412 integration: IntegrationSlug.make(entry.integration.id),
1413 connection: staticToolConnection(entry.integration),
1414 name: ToolName.make(entry.tool.name),
1415 pluginId: entry.pluginId,
1416 description: entry.tool.description,
1417 inputSchema: staticToolSchemaRoot(entry.tool.inputSchema, "input"),
1418 outputSchema: staticToolSchemaRoot(entry.tool.outputSchema, "output"),
1419 annotations: entry.tool.annotations,
1420 static: true,
1421 });
1422
1423 const registerCredentialProvider = (
1424 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