Skip to content

v1.6.4

Choose a tag to compare

@localrivet localrivet released this 22 Jun 01:18
· 27 commits to main since this release

🚀 Embedded Transport Implementation

This release introduces a complete embedded transport implementation for zero-overhead in-process MCP communication.

✨ New Features

  • Embedded Transport: Direct in-process communication using Go channels with no serialization overhead
  • Client Integration: New WithEmbedded() option for seamless client configuration
  • Server Integration: New AsEmbedded() method following the same pattern as other transports
  • Full MCP Protocol Support: Complete bidirectional communication for all MCP operations

🔧 Implementation Details

  • Thread-safe concurrent operations using atomic operations and sync.Map
  • Proper JSON-RPC 2.0 message handling and notification routing
  • Clean channel-based architecture eliminating mutex usage
  • Comprehensive integration tests covering tools, resources, prompts, and sampling

📚 Examples

  • Complete embedded transport example demonstrating all MCP capabilities
  • Integration tests showing concurrent operations and notification handling

🎯 Use Cases

Perfect for:

  • Library integration scenarios
  • Testing and development environments
  • High-performance in-process MCP communication
  • Scenarios where network overhead should be eliminated

🧪 Testing

  • All existing tests continue to pass
  • New comprehensive integration tests added
  • Example application demonstrates full functionality

This embedded transport provides the fastest possible MCP communication method while maintaining full protocol compatibility.