/** * MCP Request Handler - Handles tool calls and result formatting */ import type { CommandExecutor } from '../cli/command-executor.js'; import type { ToolCallArgs, ToolResult } from '../types/mcp.types.js'; export declare class MCPRequestHandler { private commandExecutor; constructor(commandExecutor: CommandExecutor); /** * Handle a tool call from MCP */ handleToolCall(commandName: string, args: ToolCallArgs): Promise; /** * Build execution flags from tool call arguments */ private buildFlags; /** * Check if provider setup is needed */ private needsSetup; /** * Format a successful tool result */ private formatGuidedCompletionResult; private formatRegularResult; private formatToolResult; /** * Format a tool error result */ private formatToolError; /** * Get a unique identifier for the client making the request * Used for rate limiting and security tracking */ private getClientIdentifier; /** * Format guided completion for Cursor AI to process * Simply returns the pre-formatted content from cursor.provider */ private formatGuidedCompletionForCursor; /** * Log tool call start */ private logToolCallStart; } //# sourceMappingURL=request-handler.d.ts.map