2 releases
0.0.2 | Nov 30, 2024 |
---|---|
0.0.1 | Nov 29, 2024 |
#918 in Network programming
297 downloads per month
30KB
704 lines
Model Context Protocol (MCP)
Minimalistic Rust Implementation Of Model Context Protocol(MCP).
Main repo from Anthropic: MCP
Minimalistic approach
Given it is still very early stage of MCP adoption, the goal is to remain agile and easy to understand. This implementation aims to capture the core idea of MCP while maintaining compatibility with Claude Desktop. Many optional features are not implemented yet.
Some guidelines:
- use primitive building blocks and avoid framework if possible
- keep it simple and stupid
Other Sdks
Official
Community
For complete feature please refer to the MCP specification.
Features
Basic Protocol
- Basic Message Types
- Error and Signal Handling
- Transport
- Stdio
- In Memory Channel (not yet supported in formal specification)
- SSE
- More compact serialization format (not yet supported in formal specification)
- Utilities
- Ping
- Cancellation
- Progress
Server
- Tools
- Prompts
- Resources
- Pagination
- Completion
Client
For now use claude desktop as client.
Monitoring
- Logging
- Metrics
Examples
- See examples/file_system/README.md for usage examples and documentation
Dependencies
~5–12MB
~131K SLoC