Path to the settings file for a given scope.
(cwd: string, scope: McpScope)
| 221 | |
| 222 | /** Path to the settings file for a given scope. */ |
| 223 | function settingsPathForScope(cwd: string, scope: McpScope): string { |
| 224 | if (scope === "user") return path.join(getConfigDir(), "settings.json") |
| 225 | return path.join(cwd, ".orbcode", "settings.json") |
| 226 | } |
| 227 | |
| 228 | /** Path to the config file for a given scope (`.mcp.json` for project, |
| 229 | * settings.json for user/local). */ |
no test coverage detected