MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / settingsPathForScope

Function settingsPathForScope

src/mcp/config.ts:223–226  ·  view source on GitHub ↗

Path to the settings file for a given scope.

(cwd: string, scope: McpScope)

Source from the content-addressed store, hash-verified

221
222/** Path to the settings file for a given scope. */
223function 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). */

Callers 3

configPathForScopeFunction · 0.85
addMcpServerFunction · 0.85
removeMcpServerFunction · 0.85

Calls 1

getConfigDirFunction · 0.85

Tested by

no test coverage detected