(scope: ConfigScope)
| 38 | |
| 39 | // Get scope heading parts (label is bold, path is grey) |
| 40 | function 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 |
| 77 | function groupServersByScope(serverList: ServerInfo[]): Map<ConfigScope, ServerInfo[]> { |
no test coverage detected