Add story-style examples suite (27 stories + harness + CI) (#2957)
This commit is contained in:
parent
9dc8c5f02d
commit
4caa41f6d5
1 changed files with 6801 additions and 26 deletions
30
examples/stories/mrtr/README.md
Normal file
30
examples/stories/mrtr/README.md
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# mrtr
|
||||
|
||||
Multi-round tool results: a 2026-era tool call returns
|
||||
`resultType: "input_required"` with a `requestState` HMAC instead of pushing an
|
||||
`elicitation/create` request. The client fulfils the input and resubmits, and
|
||||
the server resumes from the carried state. The story will show both the
|
||||
auto-fulfil helper and a manual resubmit loop.
|
||||
|
||||
**Status: not yet implemented** ([#2898](https://github.com/modelcontextprotocol/python-sdk/issues/2898)).
|
||||
The lowlevel registration surface is in this base —
|
||||
[#2967](https://github.com/modelcontextprotocol/python-sdk/pull/2967)
|
||||
(`ae13ede`) widened the tool/prompt/resource handler return types to include
|
||||
`InputRequiredResult`. The runnable story is deliberately a follow-up PR to
|
||||
keep this one reviewable.
|
||||
|
||||
## Spec
|
||||
|
||||
[Multi-round tool results — server features](https://modelcontextprotocol.io/specification/draft/server/tools#multi-round-results)
|
||||
|
||||
## Working example elsewhere
|
||||
|
||||
The TypeScript SDK ships a runnable `mrtr` story:
|
||||
[typescript-sdk/examples/mrtr](https://github.com/modelcontextprotocol/typescript-sdk/tree/main/examples/mrtr).
|
||||
|
||||
## See also
|
||||
|
||||
`legacy_elicitation/` and `sampling/` — the handshake-era push equivalents that
|
||||
this mechanism replaces on the 2026 protocol. The TypeScript SDK ships a single
|
||||
dual-era `elicitation/` story covering both eras in one place; we re-merge
|
||||
`legacy_elicitation/` back into `elicitation/` once MRTR lands.
|
||||
Loading…
Reference in a new issue