Skip to content

Bug: request_meta is not available in server.request_context #103

@phact

Description

@phact

Describe the bug
This makes it impossible to build a server with progress notifications

To Reproduce
Steps to reproduce the behavior:
do a tool_call for example:

{
"method": "tools/call",
"params": {
"name": "6a41a978-0a31-4eaf-9d0c-431a5f784bc9",
"arguments": {
"input_value": "3*2"
},
"_meta": {
"progressToken": 0
}
}
}

server.request_context.meta is None

Expected behavior
meta should include the progressToken

It's not getting assigned here https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/server/__init__.py#L447

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions