Skip to content

Bug in the MCP Apps documentation. #3662

Description

@pdelboca

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)

Image

After the changes (using params)

Image

Python & MCP Python SDK

Python 3.14
MCP 2.3.0

Activity

  1. added
    documentationImprovements or additions to documentation
    v2Affects the v2 line (2.x on main)
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationv2Affects the v2 line (2.x on main)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions