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 have checked that this question would not be more appropriate as an issue in a specific repository
I have searched existing discussions and documentation for answers
Question Category
Protocol Specification
SDK Usage
Server Implementation
General Implementation
Documentation
Other
Your Question
I am a bit unsure on how the MCP Client should be used in an application that runs an agent concurrently. (E.g. Summarizing a book by summarizing each chapter concurrently). Following the example: Is the idea that each Chapter summarizing call should have its own McpAsyncClient? It feels a bit weird to have multiple instances of an McpAsyncClient for the same agent. On the other Hand I was unsure if stateful MCP features like sampling would be thread safe.
Is there an official guideline? I couldn't find information about this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Question Category
Your Question
I am a bit unsure on how the MCP Client should be used in an application that runs an agent concurrently. (E.g. Summarizing a book by summarizing each chapter concurrently). Following the example: Is the idea that each Chapter summarizing call should have its own McpAsyncClient? It feels a bit weird to have multiple instances of an McpAsyncClient for the same agent. On the other Hand I was unsure if stateful MCP features like sampling would be thread safe.
Is there an official guideline? I couldn't find information about this.
Beta Was this translation helpful? Give feedback.
All reactions