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

Method serverStatus

projects/runtime/src/server.ts:473–481  ·  view source on GitHub ↗
(context: RuntimeHandlerContext)

Source from the content-addressed store, hash-verified

471 }
472
473 private serverStatus(context: RuntimeHandlerContext): RuntimeInitializeResult & { connectionCount: number } {
474 return {
475 protocolVersion: this.protocolVersion,
476 serverName: this.serverName,
477 ...(this.serverVersion ? { serverVersion: this.serverVersion } : {}),
478 capabilities: this.capabilitiesFor(context.connection),
479 connectionCount: this.connections.size,
480 }
481 }
482
483 private canInvoke(method: string, connection: RuntimeConnection): boolean {
484 if (!connection.permissions || connection.permissions.length === 0) return true

Callers 1

constructorMethod · 0.95

Calls 1

capabilitiesForMethod · 0.95

Tested by

no test coverage detected