Skip to content

Looking forward to obtaining the request ID in the McpRequestHandler#handle method #434

@gemo12123

Description

@gemo12123

Expected Behavior

I want to get the request ID in the McpRequestHandler # handle method

Current Behavior

Currently, only request parameters can be obtained

Context
I performed some operations in the Filter using sessionId and requestId, and I hope to obtain requestId in the handle method (sessionId can be obtained in McpAsyncServerExchange # sessionId, although it is incorrect, but I have seen the fixed PR) so that I can obtain the result.

I have reviewed the code for 0.11.0, and my current approach is to implement a similar effect using McpSystem.CallToolRequest#meta.

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