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

Function staticToolToTool

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

Source from the content-addressed store, hash-verified

1951 });
1952
1953 const staticToolToTool = (entry: StaticTools): Tool => ({
1954 address: ToolAddress.make(`${entry.integration.id}.${entry.tool.name}`),
1955 owner: staticToolOwner(),
1956 integration: IntegrationSlug.make(entry.integration.id),
1957 connection: staticToolConnection(entry.integration),
1958 name: ToolName.make(entry.tool.name),
1959 pluginId: entry.pluginId,
1960 description: entry.tool.description,
1961 inputSchema: staticToolSchemaRoot(entry.tool.inputSchema, "input"),
1962 outputSchema: staticToolSchemaRoot(entry.tool.outputSchema, "output"),
1963 annotations: entry.tool.annotations,
1964 static: true,
1965 });
1966
1967 /** How long a credential provider gets to answer one call.
1968 *

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