MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / discoverTools

Method discoverTools

server/src/capabilities.ts:133–139  ·  view source on GitHub ↗
(url: string, protocol: "mcp" | "a2a")

Source from the content-addressed store, hash-verified

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 {

Callers 1

discoverCapabilitiesMethod · 0.95

Calls 2

discoverA2AToolsMethod · 0.95
discoverMCPToolsMethod · 0.95

Tested by

no test coverage detected