(cwd: string, scope: McpScope)
| 228 | /** Path to the config file for a given scope (`.mcp.json` for project, |
| 229 | * settings.json for user/local). */ |
| 230 | export function configPathForScope(cwd: string, scope: McpScope): string { |
| 231 | if (scope === "project") return path.join(cwd, ".mcp.json") |
| 232 | return settingsPathForScope(cwd, scope) |
| 233 | } |
| 234 | |
| 235 | /** Add (or overwrite) a server in the given scope's config file. */ |
| 236 | export function addMcpServer(cwd: string, name: string, config: McpServerConfig, scope: McpScope): void { |
no test coverage detected