Expand description
§MoCoPr Core
Core types and protocol implementation for the Model Context Protocol (MCP).
This crate provides the fundamental building blocks for MCP implementations, including message types, transport abstractions, and protocol utilities.
§API Stability
Current Status: EXPERIMENTAL (v0.x.x)
This library is in active development. APIs marked as:
- 🔴 Experimental: May change or be removed without notice
- 🟡 Unstable: May change with deprecation warnings
- 🟢 Stable: Will follow semantic versioning
Most APIs are currently experimental until v1.0.0 release.
§Breaking Changes Policy
During the 0.x.x series:
- Minor version bumps (0.1.x → 0.2.x) may include breaking changes
- Patch version bumps (0.1.0 → 0.1.1) will be backward compatible
- All breaking changes will be documented in CHANGELOG.md
Starting from 1.0.0:
- Semantic versioning will be strictly followed
- Breaking changes only in major versions (1.x.x → 2.x.x)
§Usage Recommendations
For production use:
- Pin to exact versions in Cargo.toml:
mocopr-core = "=0.1.0"
- Subscribe to release notifications for breaking changes
- Review CHANGELOG.md before updating
Re-exports§
pub use error::Error;
pub use error::Result;
pub use transport::Transport;
pub use transport::TransportConfig;
pub use transport::TransportFactory;
pub use protocol::*;
pub use types::*;
Modules§
- error
- Error types for MoCoPr.
- monitoring
- Production monitoring and observability system
- prelude
- Re-export commonly used types
- protocol
- Protocol handling for MCP
- security
- Security validation and hardening system
- transport
- Transport abstraction for MCP communication
- types
- Core MCP types
- utils
- Utility functions and helpers
Traits§
- Prompt
Generator - Trait that users must implement to provide actual prompt functionality
- Resource
Reader - Trait that users must implement to provide actual resource functionality
- Tool
Executor - Trait that users must implement to provide actual tool functionality