jsonSchemaToZodRawShape(def.inputSchema),
async args => {
const text = await host.executeTool(sessionUri, def.name, args);
return { content: [{ type: 'text' as const, text }] };
const message = error instanceof Error ? error.message : String(error);
return { content: [{ type: 'text' as const, text: message }], isError: true };
}
)));
return sdk.createSdkMcpServer({ name: CLAUDE_SERVER_TOOL_MCP_SERVER_NAME, tools });