Skip to content

Conversation

askdevai-bot
Copy link

What it does

  • Removes AsyncExitStack dependency to avoid cross-client cancel-scope conflicts.
  • Introduces manual context management using __aenter__/__aexit__ and explicit stream closures.
  • Ensures each MCPClient instance cleans up independently without errors when multiple are active.

Why is this needed?

Closing one client previously caused errors on others due to shared cancel scopes. This PR isolates cleanup per client.

Closes #

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant