(scope: ConfigScope)
| 261 | * @returns A description of where the config is stored |
| 262 | */ |
| 263 | export function describeMcpConfigFilePath(scope: ConfigScope): string { |
| 264 | switch (scope) { |
| 265 | case 'user': |
| 266 | return getGlobalClaudeFile() |
| 267 | case 'project': |
| 268 | return join(getCwd(), '.mcp.json') |
| 269 | case 'local': |
| 270 | return `${getGlobalClaudeFile()} [project: ${getCwd()}]` |
| 271 | case 'dynamic': |
| 272 | return 'Dynamically configured' |
| 273 | case 'enterprise': |
| 274 | return getEnterpriseMcpFilePath() |
| 275 | case 'claudeai': |
| 276 | return 'claude.ai' |
| 277 | default: |
| 278 | return scope |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | export function getScopeLabel(scope: ConfigScope): string { |
| 283 | switch (scope) { |
no test coverage detected