/** * Read/write helpers for Claude MCP config (`.mcp.json` and Claude Desktop JSON). * * Claude Code uses project `.mcp.json` (or user scope via `claude mcp add`). * Claude Desktop uses `claude_desktop_config.json` under OS-specific paths. * We only manage the `agenticros` entry — other servers are preserved. */ export type ClaudeConfigTarget = "project" | "desktop"; export interface ClaudeAgenticrosConfig { configPath: string; exists: boolean; target: ClaudeConfigTarget; command?: string; args?: string[]; env?: Record; } export interface ClaudeConfigIssue { severity: "red" | "yellow"; message: string; hint?: string; } export interface ClaudeConfigValidation { ok: boolean; issues: ClaudeConfigIssue[]; } /** Project-scoped MCP config: `/.mcp.json`. */ export declare function projectMcpJsonPath(cwd?: string): string; /** Claude Desktop MCP config (macOS / Windows). */ export declare function claudeDesktopConfigPath(): string; export declare function resolveClaudeConfigPath(target: ClaudeConfigTarget, cwd?: string): string; /** Agenticros MCP server block (stdio + sh -c wrapper for log redirection). */ export declare function buildAgenticrosMcpServerEntry(mcpEntryAbs: string, namespace?: string): Record; /** Merge agenticros into an MCP JSON document, preserving other keys and $comment. */ export declare function upsertAgenticrosMcpJson(existingContent: string | null, serverEntry: Record): string; export declare function writeClaudeAgenticrosConfig(configPath: string, mcpEntryAbs: string, options?: { namespace?: string; }): void; export declare function readClaudeAgenticrosConfig(configPath: string, target: ClaudeConfigTarget): ClaudeAgenticrosConfig; export declare function validateClaudeAgenticrosConfig(cfg: ClaudeAgenticrosConfig, mcpEntryExpected?: string): ClaudeConfigValidation; export declare function buildClaudeDoctorChecks(mcpEntryExpected: string | undefined, repoRoot?: string): Array<{ id: string; label: string; severity: "green" | "yellow" | "red"; hint?: string; detail?: string; }>; //# sourceMappingURL=claude-config.d.ts.map