Skip to content

Conversation

@elcaiseri
Copy link

This PR improves the get_resources method in MultiServerMCPClient to make it more flexible and efficient.

Changes

  • Added optional server_name parameter — when omitted, resources are fetched from all servers.
  • Concurrent loading — resources are now fetched in parallel using asyncio.gather.
  • Improved validation — raises a clear ValueError if a given server name is invalid.
  • Cleaner structure & docstrings for better readability and maintainability.

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