(tools: Tool[], serverName: string)
| 37 | * @returns Tools belonging to the specified server |
| 38 | */ |
| 39 | export function filterToolsByServer(tools: Tool[], serverName: string): Tool[] { |
| 40 | const prefix = `mcp__${normalizeNameForMCP(serverName)}__` |
| 41 | return tools.filter(tool => tool.name?.startsWith(prefix)) |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * True when a command belongs to the given MCP server. |
no test coverage detected