Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my current application i want to use the mcp_session_id when i log my tool calls.
According to the discussion Is there any way to get session_id in middleware or @mcp.tools()? #940 it should be in the header.
But the headers returned in
get_http_headers(include_all=True)
do not contain the session id.I tested it both with Postman and a custom testing client, and both times many headers are omitted.
The header is set and properly initialized, because the tool call works correctly, and stops working if i change to an invalid session-id.
Am I missing something? Or is this the wanted behavior and there is no way to access the token from the server at runtime?
Beta Was this translation helpful? Give feedback.
All reactions