(scope: ConfigScope)
| 280 | } |
| 281 | |
| 282 | export 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 | |
| 301 | export function ensureConfigScope(scope?: string): ConfigScope { |
| 302 | if (!scope) return 'local' |
nothing calls this directly
no outgoing calls
no test coverage detected