MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getScopeLabel

Function getScopeLabel

src/services/mcp/utils.ts:282–299  ·  view source on GitHub ↗
(scope: ConfigScope)

Source from the content-addressed store, hash-verified

280}
281
282export function getScopeLabel(scope: ConfigScope): string {
283 switch (scope) {
284 case 'local':
285 return 'Local config (private to you in this project)'
286 case 'project':
287 return 'Project config (shared via .mcp.json)'
288 case 'user':
289 return 'User config (available in all your projects)'
290 case 'dynamic':
291 return 'Dynamic config (from command line)'
292 case 'enterprise':
293 return 'Enterprise config (managed by your organization)'
294 case 'claudeai':
295 return 'claude.ai config'
296 default:
297 return scope
298 }
299}
300
301export function ensureConfigScope(scope?: string): ConfigScope {
302 if (!scope) return 'local'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected