( tools: Tool[], serverName: string, )
| 113 | * @returns Tools not belonging to the specified server |
| 114 | */ |
| 115 | export 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 |
no test coverage detected