Skip to content

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

Closed

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

Activity

  1. added a commit that references this issue on Dec 17, 2024
    1b454ec
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions