MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getScopeHeading

Function getScopeHeading

src/components/mcp/MCPListPanel.tsx:40–74  ·  view source on GitHub ↗
(scope: ConfigScope)

Source from the content-addressed store, hash-verified

38
39// Get scope heading parts (label is bold, path is grey)
40function getScopeHeading(scope: ConfigScope): {
41 label: string;
42 path?: string;
43} {
44 switch (scope) {
45 case 'project':
46 return {
47 label: 'Project MCPs',
48 path: describeMcpConfigFilePath(scope)
49 };
50 case 'user':
51 return {
52 label: 'User MCPs',
53 path: describeMcpConfigFilePath(scope)
54 };
55 case 'local':
56 return {
57 label: 'Local MCPs',
58 path: describeMcpConfigFilePath(scope)
59 };
60 case 'enterprise':
61 return {
62 label: 'Enterprise MCPs'
63 };
64 case 'dynamic':
65 return {
66 label: 'Built-in MCPs',
67 path: 'always available'
68 };
69 default:
70 return {
71 label: scope
72 };
73 }
74}
75
76// Group servers by scope
77function groupServersByScope(serverList: ServerInfo[]): Map<ConfigScope, ServerInfo[]> {

Callers 1

MCPListPanelFunction · 0.85

Calls 1

Tested by

no test coverage detected