| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Adds a convenience function for proxying messages between two MCP transports, enabling bidirectional message forwarding with proper error handling. Features: - Bidirectional forwarding between client and server transports - Optional error callback (sync or async) for exceptions on streams - Graceful handling of closed/broken streams - Clean shutdown on context exit This is a simpler reimplementation of the proxy pattern from #1711/#1763, addressing all review feedback.
| Back | FazBrowse Home | New Git URL |
Adds a convenience function for proxying messages between two MCP transports, enabling bidirectional message forwarding with proper error handling.
Motivation and Context
This implements issue #12 - porting the TypeScript proxy pattern to Python. It's a simpler reimplementation of #1711/#1763 that addresses all review feedback from those PRs.
Key differences from #1763:
How Has This Been Tested?
13 unit tests covering:
All tests pass with pytest-xdist parallel execution.
Breaking Changes
None - this is a new feature.
Types of changes
Checklist
Additional context
Closes #12
Related PRs: #1711, #1763
AI Disclaimer