(
name,
toolConfig,
callback,
)
| 433 | ); |
| 434 | |
| 435 | const registerTool: ExecutorMcpAssembly<McpServer, McpServerRequestContext>["registerTool"] = ( |
| 436 | name, |
| 437 | toolConfig, |
| 438 | callback, |
| 439 | ) => { |
| 440 | const inputSchema = z.object(toolConfig.inputSchema); |
| 441 | return server.registerTool<z.ZodObject<z.ZodRawShape>, typeof inputSchema>( |
| 442 | name, |
| 443 | { ...toolConfig, inputSchema }, |
| 444 | async (args, context) => toolResult(await callback(args, requestJoinKeys(context))), |
| 445 | ); |
| 446 | }; |
| 447 | |
| 448 | const registerApp: ExecutorMcpAssembly<McpServer, McpServerRequestContext>["registerAppTool"] = ( |
| 449 | name, |
nothing calls this directly
no test coverage detected