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

Function removeMcpServerAnyScope

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

Source from the content-addressed store, hash-verified

281/** Remove a server from whichever scope it's configured in. Returns the scope
282 * it was removed from, or undefined if not found. */
283export function removeMcpServerAnyScope(cwd: string, name: string): McpScope | undefined {
284 const scope = findServerScope(cwd, name)
285 if (!scope) return undefined
286 removeMcpServer(cwd, name, scope)
287 return scope
288}

Callers 2

runRemoveFunction · 0.85
removeServerMethod · 0.85

Calls 2

findServerScopeFunction · 0.85
removeMcpServerFunction · 0.85

Tested by

no test coverage detected