MCPcopy
hub / github.com/codeaashu/claude-code / excludeCommandsByServer

Function excludeCommandsByServer

src/services/mcp/utils.ts:129–134  ·  view source on GitHub ↗
(
  commands: Command[],
  serverName: string,
)

Source from the content-addressed store, hash-verified

127 * @returns Commands not belonging to the specified server
128 */
129export function excludeCommandsByServer(
130 commands: Command[],
131 serverName: string,
132): Command[] {
133 return commands.filter(c => !commandBelongsToServer(c, serverName))
134}
135
136/**
137 * Removes resources belonging to a specific MCP server

Callers 4

runFunction · 0.85
MCPRemoteServerMenuFunction · 0.85
handleClearAuthFunction · 0.85

Calls 1

commandBelongsToServerFunction · 0.85

Tested by

no test coverage detected