MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / findServerScope

Function findServerScope

src/mcp/config.ts:276–279  ·  view source on GitHub ↗
(cwd: string, name: string)

Source from the content-addressed store, hash-verified

274/** Find which scope a server name lives in (highest-precedence scope wins).
275 * Returns undefined if the name isn't configured anywhere. */
276export 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. */

Callers 1

removeMcpServerAnyScopeFunction · 0.85

Calls 1

loadMcpConfigFunction · 0.85

Tested by

no test coverage detected