feat: Concurrent Operations, Enhanced Logging & Robustness #79
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant improvements to the MCP-Bridge, focusing on performance, reliability, and observability.
Key Enhancements:
Concurrent Client Initialization & Operations:
asyncio.gather
, leading to faster startup times.list_tools
,list_prompts
,list_resources
) has been refactored to perform these lookups concurrently, significantly improving the responsiveness of these discovery endpoints.Enhanced Logging & Observability:
loguru
-based structured logging has been integrated throughoutMcpClientManager.py
,mcp_server/server.py
, andmcp_server/sse.py
.Improved Robustness & Error Handling:
get_client_from_tool
andget_client_from_prompt
now have more specific error trapping and explicitly returnNone
on failure, making their behavior more predictable.BrokenResourceError
,CancelledError
).Impact:
These changes aim to make the MCP-Bridge more performant, especially in environments with multiple downstream MCP servers, more resilient to transient issues, and significantly easier to operate and troubleshoot due to the improved logging.
This update moves the submodule from commit
971d29e
toe8ce8d7
.To Test: