(url: string, protocol: "mcp" | "a2a")
| 131 | } |
| 132 | |
| 133 | private async discoverTools(url: string, protocol: "mcp" | "a2a"): Promise<ToolCapability[]> { |
| 134 | if (protocol === "a2a") { |
| 135 | return this.discoverA2ATools(url); |
| 136 | } else { |
| 137 | return this.discoverMCPTools(url); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | private async discoverMCPTools(url: string): Promise<ToolCapability[]> { |
| 142 | try { |
no test coverage detected