-
Notifications
You must be signed in to change notification settings - Fork 3.3k
How to set / get client_id? #373
Copy link
Copy link
Open
Labels
P1Significant bug affecting many users, highly requested featureSignificant bug affecting many users, highly requested featurebugSomething isn't workingSomething isn't workingready for workEnough information for someone to start working onEnough information for someone to start working on
Metadata
Metadata
Assignees
Labels
P1Significant bug affecting many users, highly requested featureSignificant bug affecting many users, highly requested featurebugSomething isn't workingSomething isn't workingready for workEnough information for someone to start working onEnough information for someone to start working on
I'd like to be able to retrieve the
client_idfrom inside a tool call on an MCP server. However, it is alwaysNone. What do I need to set in the MCP client in order to be able to retrieve it on the server?The client code is basically taken from the documentation:
The tool function is as follows:
This prints
None 2(client_idasNone).What am I missing?
Thank you.