Implement MCP 2026-07-28 (#2286)
Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com> Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
e4227d135c
commit
1823aae891
1 changed files with 69131 additions and 9001 deletions
8
examples/custom-methods/README.md
Normal file
8
examples/custom-methods/README.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# 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 })`.
|
||||
|
||||
```bash
|
||||
pnpm tsx examples/custom-methods/client.ts
|
||||
```
|
||||
Loading…
Reference in a new issue