Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 466 Bytes

File metadata and controls

8 lines (6 loc) · 466 Bytes

custom-methods

Bidirectional custom (non-spec) JSON-RPC methods: the server handles a vendor-prefixed acme/search request via server.setRequestHandler and emits acme/searchProgress notifications via ctx.mcpReq.notify; the client sends the typed request via client.request(method, schema) and receives the typed notifications via client.setNotificationHandler('acme/searchProgress', { params }).

pnpm tsx examples/custom-methods/client.ts