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

Function staticToolToTool

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

Source from the content-addressed store, hash-verified

1668 });
1669
1670 const staticToolToTool = (entry: StaticTools): Tool => ({
1671 address: ToolAddress.make(`${entry.integration.id}.${entry.tool.name}`),
1672 owner: staticToolOwner(),
1673 integration: IntegrationSlug.make(entry.integration.id),
1674 connection: staticToolConnection(entry.integration),
1675 name: ToolName.make(entry.tool.name),
1676 pluginId: entry.pluginId,
1677 description: entry.tool.description,
1678 inputSchema: staticToolSchemaRoot(entry.tool.inputSchema, "input"),
1679 outputSchema: staticToolSchemaRoot(entry.tool.outputSchema, "output"),
1680 annotations: entry.tool.annotations,
1681 static: true,
1682 });
1683
1684 const registerCredentialProvider = (
1685 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