[package]
edition = "2024"
rust-version = "1.88"
name = "mcp-usage-tower"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tower hot path for MCP authentication, caching, and usage attribution."
homepage = "https://pokitappz.github.io/mcp-usage-kit/"
documentation = "https://docs.rs/mcp-usage-tower"
readme = "README.md"
keywords = [
"mcp",
"billing",
"metering",
"tower",
"json-rpc",
]
categories = [
"asynchronous",
"network-programming",
"web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://github.com/pokitappz/mcp-usage-kit"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
opentelemetry = ["dep:opentelemetry"]
[lib]
name = "mcp_usage_tower"
path = "src/lib.rs"
[[bench]]
name = "classification"
path = "benches/classification.rs"
harness = false
[[bench]]
name = "hot_path"
path = "benches/hot_path.rs"
harness = false
[dependencies.bytes]
version = "1.12.1"
[dependencies.http]
version = "1.4.0"
[dependencies.http-body]
version = "1.0.1"
[dependencies.http-body-util]
version = "0.1.3"
[dependencies.mcp-usage-core]
version = "0.5.0"
[dependencies.mcp-usage-export]
version = "0.5.0"
[dependencies.opentelemetry]
version = "0.33.0"
features = ["metrics"]
optional = true
default-features = false
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.145"
[dependencies.sha2]
version = "0.11.0"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tower]
version = "0.5.3"
features = ["util"]
[dependencies.tracing]
version = "0.1.44"
[dev-dependencies.proptest]
version = "1.8.0"
[dev-dependencies.tokio]
version = "1.53.0"
features = [
"io-util",
"macros",
"net",
"rt-multi-thread",
"signal",
"sync",
"time",
]