interface AgentConfig { relPath: string; /** JSON key that holds the server map — VS Code uses "servers", others use "mcpServers" */ serversKey: string; /** Detection dir relative to home — used to check if agent is installed */ detectDir: string; /** Human-readable label */ label: string; } /** Global/user-level config — detectDir is used to check if the agent is installed */ export declare const GLOBAL_AGENTS: Record; export type AgentId = keyof typeof GLOBAL_AGENTS; /** Optional callbacks for surfacing non-fatal events during auto-register */ export interface AutoRegisterReporter { onParseError?: (filePath: string, error: Error) => void; onPermissionError?: (filePath: string, error: Error) => void; } /** Register MCP in project-level config files */ export declare function autoRegister(cwd: string, mcpUrl: string, reporter?: AutoRegisterReporter): string[]; /** Returns which global agents are installed (their config dirs exist under ~/) */ export declare function detectInstalledAgents(): AgentId[]; export interface GlobalRegisterResult { agent: AgentId; label: string; ok: boolean; path: string; error?: string; } /** Register MCP with a specific set of global agents */ export declare function registerGlobalAgents(agents: AgentId[], mcpUrl: string, reporter?: AutoRegisterReporter): GlobalRegisterResult[]; /** @deprecated Use registerGlobalAgents() with explicit agent list */ export declare function autoRegisterGlobal(mcpUrl: string, reporter?: AutoRegisterReporter): string[]; export {}; //# sourceMappingURL=auto-register.d.ts.map