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

Function passthroughInputSchema

packages/hosts/mcp/src/tool-server.ts:1258–1262  ·  view source on GitHub ↗
(view: ToolSchemaView)

Source from the content-addressed store, hash-verified

1256
1257/** Serialize one existing schema view as a self-contained MCP input schema. */
1258const passthroughInputSchema = (view: ToolSchemaView): unknown =>
1259 reattachDefs(
1260 view.inputSchema ?? { type: "object", properties: {} },
1261 new Map(Object.entries(view.schemaDefinitions ?? {})),
1262 );
1263
1264/** Register discovery over the existing APIs, with no catalog work at connection time. */
1265const registerPassthroughTools = <E extends Cause.YieldableError>(

Callers 1

registerPassthroughToolsFunction · 0.85

Calls 1

reattachDefsFunction · 0.85

Tested by

no test coverage detected