rust-mcp-schema 0.2.2

Type-safe implementation of the Model Context Protocol in Rust, designed to reduce errors and accelerate development with powerful utilities.
Documentation
[dependencies.serde]
features = ["derive"]
version = "1.0"

[dependencies.serde_json]
version = "1.0"

[dev-dependencies.json5]
version = "0.4"

[[example]]
name = "mcp_client_handle_message"
path = "examples/mcp_client_handle_message.rs"

[[example]]
name = "mcp_server_handle_message"
path = "examples/mcp_server_handle_message.rs"

[features]
2024_11_05 = []
default = ["latest", "schema_utils"]
draft = []
latest = ["2024_11_05"]
schema_utils = []

[lib]
name = "rust_mcp_schema"
path = "src/rust-mcp-schema.rs"

[lints]

[package]
authors = ["Ali Hashemi"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["data-structures", "parser-implementations", "parsing"]
description = "Type-safe implementation of the Model Context Protocol in Rust, designed to reduce errors and accelerate development with powerful utilities."
documentation = "https://docs.rs/rust-mcp-schema"
edition = "2021"
keywords = ["rust-mcp-stack", "model", "context", "protocol", "schema"]
license = "MIT"
name = "rust-mcp-schema"
readme = "README.md"
repository = "https://github.com/rust-mcp-stack/rust-mcp-schema"
version = "0.2.2"

[package.metadata.docs.rs]
features = ["latest", "schema_utils"]
rustdoc-args = ["--generate-link-to-definition"]

[package.metadata.playground]
features = ["latest", "schema_utils"]

[[test]]
name = "draft_exclusive"
path = "tests/draft_exclusive.rs"

[[test]]
name = "miscellaneous"
path = "tests/miscellaneous.rs"

[[test]]
name = "test_deserialize"
path = "tests/test_deserialize.rs"

[[test]]
name = "test_serialize"
path = "tests/test_serialize.rs"

[[test]]
name = "version_exclusive"
path = "tests/version_exclusive.rs"