/** * Tool Mapping Service - Maps command definitions to MCP tools */ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import type { CommandDefinition } from '../types/command.types.js'; import type { ToolCallArgs, ToolResult } from '../types/mcp.types.js'; export interface MCPTool { description: string; handler: (args: ToolCallArgs) => Promise; inputSchema: z.ZodSchema; name: string; title: string; } export declare class ToolMappingService { private mcpServer; private handleToolCall; constructor(mcpServer: McpServer, handleToolCall: (commandName: string, args: ToolCallArgs) => Promise); /** * Map command definitions to MCP tools and register them */ mapToMCPTools(commands: CommandDefinition[]): { failCount: number; successCount: number; }; /** * Register a single MCP tool with the server */ private registerMCPTool; /** * Create tool definition without registering (for testing/validation) */ createToolDefinition(command: CommandDefinition): MCPTool; } //# sourceMappingURL=tool-mapping.service.d.ts.map