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

Method canInvoke

projects/runtime/src/server.ts:483–486  ·  view source on GitHub ↗
(method: string, connection: RuntimeConnection)

Source from the content-addressed store, hash-verified

481 }
482
483 private canInvoke(method: string, connection: RuntimeConnection): boolean {
484 if (!connection.permissions || connection.permissions.length === 0) return true
485 return connection.permissions.some((permission) => this.matchesPattern(method, permission))
486 }
487
488 private updateSubscription(params: RuntimeSubscriptionUpdateParams, context: RuntimeHandlerContext): { ok: true } {
489 const entry = this.connections.get(context.connection.id)

Callers 2

handleRequestMethod · 0.95
capabilitiesForMethod · 0.95

Calls 1

matchesPatternMethod · 0.95

Tested by

no test coverage detected