(cwd: string, name: string)
| 274 | /** Find which scope a server name lives in (highest-precedence scope wins). |
| 275 | * Returns undefined if the name isn't configured anywhere. */ |
| 276 | export function findServerScope(cwd: string, name: string): McpScope | undefined { |
| 277 | const { servers } = loadMcpConfig(cwd) |
| 278 | return servers[name]?.scope |
| 279 | } |
| 280 | |
| 281 | /** Remove a server from whichever scope it's configured in. Returns the scope |
| 282 | * it was removed from, or undefined if not found. */ |
no test coverage detected