MCPcopy Index your code
hub / github.com/codeaashu/claude-code / excludeToolsByServer

Function excludeToolsByServer

src/services/mcp/utils.ts:115–121  ·  view source on GitHub ↗
(
  tools: Tool[],
  serverName: string,
)

Source from the content-addressed store, hash-verified

113 * @returns Tools not belonging to the specified server
114 */
115export function excludeToolsByServer(
116 tools: Tool[],
117 serverName: string,
118): Tool[] {
119 const prefix = `mcp__${normalizeNameForMCP(serverName)}__`
120 return tools.filter(tool => !tool.name?.startsWith(prefix))
121}
122
123/**
124 * Removes commands belonging to a specific MCP server

Callers 3

MCPRemoteServerMenuFunction · 0.85
handleClearAuthFunction · 0.85

Calls 1

normalizeNameForMCPFunction · 0.85

Tested by

no test coverage detected