( toolName: string, serverName: string, )
| 230 | * @returns True if the tool belongs to the specified server |
| 231 | */ |
| 232 | export function isToolFromMcpServer( |
| 233 | toolName: string, |
| 234 | serverName: string, |
| 235 | ): boolean { |
| 236 | const info = mcpInfoFromString(toolName) |
| 237 | return info?.serverName === serverName |
| 238 | } |
| 239 | |
| 240 | /** |
| 241 | * Checks if a tool belongs to any MCP server |
no test coverage detected