You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing the sampling capability and it's quite hard to properly follow the IncludeContext parameter when you use more than one MCP server. Theres is no problem with None or AllServers, but handling ThisServer is a challenge because the handler doesn't know which server made the request.
Furthermore, since the handler is passed at client creation we don't have a list of tools that we can capture until the handler has been set and can no longer be changed.
I would like to have an McpClient parameter added to the SamplingHandler callback so we can easily know which server made the call