mirror of
https://github.com/RightNow-AI/openfang.git
synced 2026-07-30 23:05:08 +00:00
Replace the custom JSON-RPC + stdio/SSE transport layer with the rmcp SDK (crate 'rmcp'). This gives us spec-compliant Streamable-HTTP transport, automatic Mcp-Session-Id tracking, SSE stream parsing, and content-type negotiation out of the box while deleting ~300 lines of hand-rolled plumbing. Key changes: - Add rmcp dependency with transport feature - Replace McpTransportHandle enum with rmcp RunningService - Replace manual JSON-RPC send_request/send_notification with rmcp client calls - Add custom HTTP headers support for authenticated remote MCP servers - Simplify tool discovery and invocation through rmcp's typed API