Model Context Protocol (MCP) Types
by ghbountybot
This repository contains Rust types generated from the Model Context Protocol (MCP) specification. It provides strongly-typed Rust bindings for standardizing context exchange between AI models and their runtime environments.
Last updated: N/A
What is Model Context Protocol (MCP) Types?
This is a Rust crate providing strongly-typed bindings generated from the Model Context Protocol (MCP) JSON Schema. MCP is a specification for standardizing context exchange between AI models and their runtime environments.
How to use Model Context Protocol (MCP) Types?
The generated types are available through the types
module. Import them in your Rust code using use mcp::types::*;
.
Key features of Model Context Protocol (MCP) Types
Strongly-typed Rust bindings
Generated from official MCP JSON Schema
Full serde support
Standardizes context exchange for AI models
Use cases of Model Context Protocol (MCP) Types
Developing AI models that require standardized context
Integrating AI models with runtime environments
Ensuring consistent data exchange between AI components
Validating context data against the MCP schema
FAQ from Model Context Protocol (MCP) Types
What is the MCP specification?
What is the MCP specification?
The Model Context Protocol (MCP) is a specification for standardizing context exchange between AI models and their runtime environments.
What is typify?
What is typify?
typify is a tool used to convert JSON Schema into idiomatic Rust types with full serde support.
What version of the MCP schema is used?
What version of the MCP schema is used?
The types are generated from the official MCP schema version 2024-11-05.
Where can I find the MCP schema?
Where can I find the MCP schema?
The schema is located at https://github.com/modelcontextprotocol/specification/blob/main/schema/2024-11-05/schema.json
Where can I find the MCP specification documentation?
Where can I find the MCP specification documentation?
The specification documentation is located at https://spec.modelcontextprotocol.io/specification/2024-11-05/