/** * Common types for MCP tool handlers. */ import type { CodeIndexer } from '../search/indexer.js'; /** * Standard MCP tool response format. */ export interface ToolResponse { content: Array<{ type: 'text'; text: string; }>; /** Indicates an error response */ isError?: boolean; } /** * Context passed to all tool handlers. */ export interface ToolContext { indexer: CodeIndexer; projectPath: string; toolGuidance: string; } /** * Generic tool handler function signature. */ export type ToolHandler> = (args: TArgs, context: ToolContext) => Promise; /** * Helper to create a successful tool response. */ export declare function createToolResponse(text: string, guidance?: string): ToolResponse; //# sourceMappingURL=types.d.ts.map