import type { Context } from '@wrongstack/core/agent'; import type { Tool } from '@wrongstack/core/types'; import { MCPServer, type MCPServerToolHost } from '@wrongstack/mcp'; import { type CodebaseIndexMcpPolicyOptions, type CodebaseIndexMcpToolName } from './policy.js'; interface GraphBaseArgs { projectRoot: string; indexDir?: string | undefined; } interface FileGraphArgs extends GraphBaseArgs { packageFilter: string; } interface SymbolGraphArgs extends GraphBaseArgs { fileFilter: string; } export interface CodebaseIndexMcpDependencies { executeTool?: (tool: Tool, args: Record, context: Context, signal: AbortSignal) => Promise; packageGraph?: (args: GraphBaseArgs, signal?: AbortSignal) => Promise; fileGraph?: (args: FileGraphArgs, signal?: AbortSignal) => Promise; symbolGraph?: (args: SymbolGraphArgs, signal?: AbortSignal) => Promise; } export interface CodebaseIndexMcpToolHostOptions extends CodebaseIndexMcpPolicyOptions { indexDir?: string | undefined; dependencies?: CodebaseIndexMcpDependencies | undefined; } /** * The navigation tools a coding agent reaches for most. Claude Code defers MCP * tools behind a tool search, and an agent that must search before it can call * the index falls back to its always-loaded grep; loading these three upfront * costs little context and makes the index the shorter path. */ export declare const ALWAYS_LOADED_TOOLS: ReadonlySet; /** `InitializeResult.instructions`: shown to the client even while tools are deferred. */ export declare const CODEBASE_INDEX_MCP_INSTRUCTIONS: string; export declare function createCodebaseIndexMcpToolHost(projectRoot: string, opts?: CodebaseIndexMcpToolHostOptions): MCPServerToolHost; export declare function createCodebaseIndexMcpServer(projectRoot: string, opts?: CodebaseIndexMcpToolHostOptions): MCPServer; export {}; //# sourceMappingURL=adapter.d.ts.map