import type { MCPServerConfig } from "../runtime-mcp/types"; export type MCPAction = "add" | "list" | "remove"; export interface MCPCommandArgs { action: MCPAction; name?: string; commandArgs?: string[]; flags: { project?: boolean; force?: boolean; json?: boolean; type?: "stdio" | "http" | "sse"; command?: string; url?: string; arg?: string[]; env?: string[]; header?: string[]; cwd?: string; timeout?: number; sharing?: "per-session" | "shared"; }; cwd?: string; } export declare class MCPArgsError extends Error { } /** Runtime status of a stored registration for conventional autoload. */ type AutoloadStatus = "autoload" | "autoload-off" | "disabled"; /** * Compute the conventional-autoload status of a stored server. * * - `autoload-off`: the server opted out of startup connection via `autoload: false`. * - `disabled`: the server is disabled via `enabled: false` or the `disabledServers` list. * - `autoload`: connected by ordinary standalone sessions at startup. */ export declare function computeAutoloadStatus(name: string, config: MCPServerConfig, disabledServers: ReadonlySet): AutoloadStatus; export declare function redactMCPServerConfig(config: MCPServerConfig): MCPServerConfig; export declare function runMCPCommand(args: MCPCommandArgs): Promise; export {};