Skip to content

feat: add TurboMCP v3 integration as alternative to rmcp#1463

Open
nicholasjpaterno wants to merge 2 commits into0xPlaygrounds:mainfrom
nicholasjpaterno:feat/turbomcp-v3
Open

feat: add TurboMCP v3 integration as alternative to rmcp#1463
nicholasjpaterno wants to merge 2 commits into0xPlaygrounds:mainfrom
nicholasjpaterno:feat/turbomcp-v3

Conversation

@nicholasjpaterno
Copy link

Summary

  • Adds TurboMCP v3 as a feature-gated MCP client integration (--features turbomcp), matching the existing rmcp integration pattern with full feature parity
  • Implements TurboMcpTool and TurboMcpToolCaller trait for transport-agnostic type erasure, with complete content block handling (text, image, audio, resource, resource link, tool use, tool result)
  • Adds turbomcp_tool() / turbomcp_tools() to AgentBuilder (both NoToolConfig and WithBuilderTools states) and ToolServer
  • Includes 17 comprehensive unit tests with a MockToolCaller and a working example

Changes

File Description
rig-core/Cargo.toml Add turbomcp-client v3.0.0 dep, turbomcp feature flag, example entry
rig-core/src/tool/mod.rs TurboMcpTool, TurboMcpToolCaller trait, content handling, 17 tests
rig-core/src/tool/server.rs ToolServer::turbomcp_tool() method
rig-core/src/agent/builder.rs turbomcp_tool() / turbomcp_tools() on both builder states
rig-core/examples/turbomcp.rs Example: OpenAI agent with TurboMCP tools

Test plan

  • cargo test -p rig-core --lib --features turbomcp — 391 passed, 0 failed
  • cargo test -p rig-core --lib --features "turbomcp,rmcp" — 391 passed, 0 failed
  • cargo clippy -p rig-core --features turbomcp -- -D warnings — clean
  • CI validation

@nicholasjpaterno
Copy link
Author

Addresses #750 finally 😅

Add TurboMCP as a feature-gated MCP client integration, matching
the existing rmcp integration pattern with full feature parity.

- TurboMcpTool and TurboMcpToolCaller trait for type-erased transport
- Content block handling (text, image, audio, resource, tool use/result)
- AgentBuilder methods: turbomcp_tool(), turbomcp_tools()
- ToolServer::turbomcp_tool() method
- 17 comprehensive tests with MockToolCaller
- Example demonstrating OpenAI agent with TurboMCP tools
@nicholasjpaterno
Copy link
Author

nicholasjpaterno commented Mar 6, 2026

TurboMCP is now the fastest MCP library available! https://x.com/RealEpistates/status/2029559190587396451

@nicholasjpaterno nicholasjpaterno mentioned this pull request Mar 9, 2026
1 task
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