import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; export interface ContextToolDeps { /** Path to the per-route context.json written by Codex's writeRouteContext (codex backend only). Null on Claude. */ routeContextFile: string | null; } /** Internal context — includes channel for downstream consumers (schedule.ts session/thread * target resolution). Not exposed via MCP. */ interface CortexContextInternal { channel: string | null; sessionId: string | null; sessionName: string | null; threadId: string | null; profile: string | null; project: string | null; backend: string | null; scheduleTaskId: string | null; callbackSource: string | null; } /** Resolve the Cortex execution context from route-context.json (preferred — refreshed * per turn for Codex) and falling back to the env vars set at MCP server spawn time * (Claude path; sticky for the session lifetime). When sessionId is known but sessionName * is not, look up the session-registry to get the cortex-XXXX short name. */ export declare function resolveCortexContext(deps: ContextToolDeps): Promise; export declare function registerContextTools(server: McpServer, deps: ContextToolDeps): void; export {};