import type { MCPServerConfig } from "./types.js"; import type { MCPScope } from "./store.js"; /** Zero-dep discriminated-union result for expected parse failures. */ export type Result = { ok: true; value: T; } | { ok: false; error: E; }; export interface ParsedAddCommand { config: MCPServerConfig; /** Requested scope, if the input carried a --scope flag. */ scope?: MCPScope; } /** * Parse a pasted `claude mcp add …` / `ggcoder mcp add …` line (or just the * args after `add`) into an MCPServerConfig + requested scope. * * Grammar matches Claude Code: * add [--transport t] [--env K=V]… [--header "K: V"]… [--scope s] -- [args…] * add --transport http|sse [--header "K: V"]… */ export declare function parseMcpAddCommand(input: string): Result; //# sourceMappingURL=parse-add-command.d.ts.map