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

Function staticToolToTool

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

Source from the content-addressed store, hash-verified

1659 });
1660
1661 const staticToolToTool = (entry: StaticTools): Tool => ({
1662 address: ToolAddress.make(`${entry.integration.id}.${entry.tool.name}`),
1663 owner: staticToolOwner(),
1664 integration: IntegrationSlug.make(entry.integration.id),
1665 connection: staticToolConnection(entry.integration),
1666 name: ToolName.make(entry.tool.name),
1667 pluginId: entry.pluginId,
1668 description: entry.tool.description,
1669 inputSchema: staticToolSchemaRoot(entry.tool.inputSchema, "input"),
1670 outputSchema: staticToolSchemaRoot(entry.tool.outputSchema, "output"),
1671 annotations: entry.tool.annotations,
1672 static: true,
1673 });
1674
1675 const registerCredentialProvider = (
1676 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