MCPcopy
hub / github.com/codeaashu/claude-code / describeMcpConfigFilePath

Function describeMcpConfigFilePath

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

Source from the content-addressed store, hash-verified

261 * @returns A description of where the config is stored
262 */
263export 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
282export function getScopeLabel(scope: ConfigScope): string {
283 switch (scope) {

Callers 6

McpConfigErrorSectionFunction · 0.85
getScopeHeadingFunction · 0.85
MCPRemoteServerMenuFunction · 0.85
MCPStdioServerMenuFunction · 0.85
registerMcpAddCommandFunction · 0.85
mcpRemoveHandlerFunction · 0.85

Calls 2

getCwdFunction · 0.85
getEnterpriseMcpFilePathFunction · 0.85

Tested by

no test coverage detected