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

Function configPathForScope

src/mcp/config.ts:230–233  ·  view source on GitHub ↗
(cwd: string, scope: McpScope)

Source from the content-addressed store, hash-verified

228/** Path to the config file for a given scope (`.mcp.json` for project,
229 * settings.json for user/local). */
230export 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. */
236export function addMcpServer(cwd: string, name: string, config: McpServerConfig, scope: McpScope): void {

Callers 3

runAddFunction · 0.85
runRemoveFunction · 0.85
getConfigPathMethod · 0.85

Calls 1

settingsPathForScopeFunction · 0.85

Tested by

no test coverage detected