MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / capabilitiesFor

Method capabilitiesFor

projects/runtime/src/server.ts:435–442  ·  view source on GitHub ↗
(connection: RuntimeConnection)

Source from the content-addressed store, hash-verified

433 }
434
435 private capabilitiesFor(connection: RuntimeConnection): RuntimeCapabilities {
436 const canReadProviders = this.canInvoke("agent/provider/list", connection) || this.canInvoke("agent/provider/status", connection)
437 return {
438 methods: [...this.handlers.keys()].filter((method) => this.canInvoke(method, connection)).sort(),
439 notifications: [...this.notifications].filter((method) => this.canReceiveNotification(method, connection)).sort(),
440 agentProviders: canReadProviders ? this.resolvedAgentProviders() : [],
441 }
442 }
443
444 private resolvedAgentProviders(): AgentProviderSummary[] {
445 const providers = new Map<string, AgentProviderSummary>()

Callers 2

initializeMethod · 0.95
serverStatusMethod · 0.95

Calls 3

canInvokeMethod · 0.95

Tested by

no test coverage detected