tmcp 0.3.1

Complete, ergonomic implementation of the Model Context Protocol (MCP)
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

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

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

[[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"

[dependencies.async-stream]
version = "0.3"

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

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

[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]
version = "1.0"
features = ["full"]

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

[dependencies.mime_guess]
version = "2.0"

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

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

[dependencies.schemars]
version = "1.1"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

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

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

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

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

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

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

[dependencies.tracing]
version = "0.1"

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

[dependencies.url]
version = "2.5"

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

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

[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"