tmcp 0.3.2

Complete, ergonomic implementation of the Model Context Protocol (MCP)
Documentation
[dependencies.async-stream]
version = "0.3"

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
features = ["http2"]
version = "0.8"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1.11"

[dependencies.dashmap]
version = "6.1"

[dependencies.eventsource-stream]
version = "0.2"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1.4"

[dependencies.hyper]
features = ["full"]
version = "1.0"

[dependencies.hyper-util]
features = ["full"]
version = "0.1"

[dependencies.mime_guess]
version = "2.0"

[dependencies.oauth2]
features = ["reqwest"]
version = "5.0"

[dependencies.reqwest]
features = ["json", "stream"]
version = "0.12"

[dependencies.schemars]
version = "1.1"

[dependencies.serde]
features = ["derive"]
version = "1.0"

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tmcp-macros]
version = "0.3.0"

[dependencies.tokio]
features = ["full"]
version = "1.48"

[dependencies.tokio-tungstenite]
version = "0.28"

[dependencies.tokio-util]
features = ["codec"]
version = "0.7"

[dependencies.tower]
features = ["full"]
version = "0.5"

[dependencies.tower-http]
features = ["cors", "limit"]
version = "0.6"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"

[dependencies.url]
version = "2.5"

[dependencies.uuid]
features = ["v4", "serde"]
version = "1.19"

[dev-dependencies.schemars]
version = "1.1"

[lib]
name = "tmcp"
path = "src/lib.rs"

[lints.clippy]
absolute_paths = "warn"
branches_sharing_code = "warn"
cfg_not_test = "warn"
cognitive_complexity = "warn"
comparison_chain = "warn"
excessive_nesting = "warn"
ignore_without_reason = "warn"
items_after_statements = "warn"
let_underscore_must_use = "warn"
many_single_char_names = "warn"
missing_docs_in_private_items = "warn"
multiple_inherent_impl = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
redundant_clone = "warn"
redundant_pub_crate = "warn"
self_named_module_files = "warn"
tests_outside_test_module = "warn"
too_many_lines = "warn"
use_self = "warn"
wildcard_dependencies = "warn"

[lints.rust]
missing_docs = "warn"

[package]
authors = ["Aldo Cortesi <aldo@corte.si>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "Complete, ergonomic implementation of the Model Context Protocol (MCP)"
edition = "2024"
keywords = ["mcp", "ai", "anthropic", "openai"]
license = "MIT"
name = "tmcp"
readme = "README.md"
repository = "https://github.com/cortesi/tmcp"
resolver = "2"
version = "0.3.2"

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

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

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

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

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

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

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

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

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

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

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

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