[package]
edition = "2024"
rust-version = "1.88"
name = "mcp-usage-kit"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Protocol-correct usage accounting for rmcp Streamable HTTP servers."
homepage = "https://pokitappz.github.io/mcp-usage-kit/"
documentation = "https://docs.rs/mcp-usage-kit"
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 = ["mcp-usage-tower/opentelemetry"]
postgres = [
"dep:mcp-usage-store",
"mcp-usage-store/postgres",
]
redis = [
"dep:mcp-usage-store",
"mcp-usage-store/redis",
]
[lib]
name = "mcp_usage_kit"
path = "src/lib.rs"
[[example]]
name = "axum_server"
path = "examples/axum_server.rs"
[[example]]
name = "hyper_server"
path = "examples/hyper_server.rs"
[[example]]
name = "rmcp_server"
path = "examples/rmcp_server.rs"
[[test]]
name = "rmcp_integration"
path = "tests/rmcp_integration.rs"
[dependencies.mcp-usage-core]
version = "0.5.0"
[dependencies.mcp-usage-export]
version = "0.5.0"
[dependencies.mcp-usage-store]
version = "0.5.0"
optional = true
[dependencies.mcp-usage-tower]
version = "0.5.0"
[dev-dependencies.axum]
version = "0.8.9"
[dev-dependencies.bytes]
version = "1.12.1"
[dev-dependencies.http]
version = "1.4.0"
[dev-dependencies.http-body-util]
version = "0.1.3"
[dev-dependencies.hyper]
version = "1.11.0"
features = [
"http1",
"server",
]
[dev-dependencies.hyper-util]
version = "0.1.20"
features = [
"http1",
"server",
"service",
"tokio",
]
[dev-dependencies.rmcp]
version = "3.4.0"
features = ["transport-streamable-http-server"]
[dev-dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1.0.145"
[dev-dependencies.tokio]
version = "1.53.0"
features = [
"io-util",
"macros",
"net",
"rt-multi-thread",
"signal",
"sync",
"time",
]
[dev-dependencies.tokio-util]
version = "0.7.19"
[dev-dependencies.tower]
version = "0.5.3"
features = ["util"]