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

Method register

projects/runtime/src/server.ts:199–201  ·  view source on GitHub ↗
(method: string, handler: RuntimeHandler, options: RuntimeRegisterOptions = {})

Source from the content-addressed store, hash-verified

197 }
198
199 register(method: string, handler: RuntimeHandler, options: RuntimeRegisterOptions = {}): void {
200 this.handlers.set(method, { handler, validateParams: options.validateParams })
201 }
202
203 registerNotification(method: string): void {
204 this.notifications.add(method)

Callers 1

constructorMethod · 0.95

Calls 1

setMethod · 0.65

Tested by

no test coverage detected