(view: ToolSchemaView)
| 1256 | |
| 1257 | /** Serialize one existing schema view as a self-contained MCP input schema. */ |
| 1258 | const 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. */ |
| 1265 | const registerPassthroughTools = <E extends Cause.YieldableError>( |
no test coverage detected