mcpr  by conikeec

Rust SDK for Anthropic's Model Context Protocol (MCP)

Created 6 months ago
345 stars

Top 80.2% on SourcePulse

GitHubView on GitHub
Project Summary

This Rust library implements Anthropic's Model Context Protocol (MCP), providing a framework for AI assistants to connect with data sources and tools. It targets developers building AI-powered applications, offering a robust and efficient way to manage AI agent interactions with external resources.

How It Works

MCPR offers a schema-defined communication protocol with flexible transport layers, including stdio and Server-Sent Events (SSE). It provides high-level client and server abstractions, simplifying the creation of MCP-compatible applications. The library also includes CLI tools for generating project stubs and mock implementations for testing.

Quick Start & Requirements

  • Install via Cargo: cargo install mcpr
  • Add to Cargo.toml: mcpr = "0.2.3"
  • Example usage and project generation commands are provided in the README.
  • Official Demo: View Demo on Github

Highlighted Details

  • Implements the full MCP schema.
  • Supports stdio and SSE transport layers, with WebSocket planned.
  • Includes CLI tools for project generation and stub creation.
  • Provides mock transports for testing and development.

Maintenance & Community

  • Version 0.2.0 was yanked; use 0.2.3 or later.
  • Contribution guidelines are available.

Licensing & Compatibility

  • Licensed under the MIT License.
  • Compatible with commercial and closed-source applications.

Limitations & Caveats

  • WebSocket transport is not yet implemented.
  • Version 0.2.0 had critical SSE transport issues; ensure usage of 0.2.3+.
Health Check
Last Commit

6 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
8 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.