Initial Checks
Release line
2.x (current stable)
Description
The Clock with a face example from the documentation has a small error in one of the keys of the HTML script that causes the example to not work.
The following line:
const text = event.data?.result?.content?.[0]?.text;
Should be replaced by:
const text = event.data?.params?.content?.[0]?.text;
If I'm understanding correctly, In JSON-RPC 2.0, a notification's payload lives under params.
I have tested it with MCPJam and the change works. I have a branch ready so I'm more than happy to open a PR. (I changed the stories server file and the docs_src as well)
Current behaviour (using result)
After the changes (using params)
Python & MCP Python SDK
Initial Checks
Release line
2.x (current stable)
Description
The Clock with a face example from the documentation has a small error in one of the keys of the HTML
scriptthat causes the example to not work.The following line:
Should be replaced by:
If I'm understanding correctly, In JSON-RPC 2.0, a notification's payload lives under
params.I have tested it with MCPJam and the change works. I have a branch ready so I'm more than happy to open a PR. (I changed the
storiesserver file and thedocs_srcas well)Current behaviour (using
result)After the changes (using
params)Python & MCP Python SDK