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

Method discoverAll

server/src/capabilities.ts:279–290  ·  view source on GitHub ↗
(agents: Agent[])

Source from the content-addressed store, hash-verified

277 }
278
279 async discoverAll(agents: Agent[]): Promise<Map<string, AgentCapabilityProfile>> {
280 const profiles = new Map<string, AgentCapabilityProfile>();
281
282 await Promise.all(
283 agents.map(async (agent) => {
284 const profile = await this.discoverCapabilities(agent);
285 profiles.set(agent.url, profile);
286 })
287 );
288
289 return profiles;
290 }
291
292 getCapabilities(agentUrl: string): AgentCapabilityProfile | undefined {
293 return this.cache.get(agentUrl);

Callers 1

setupRoutesMethod · 0.80

Calls 2

discoverCapabilitiesMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected