mcp-proxy 0.3.1

Standalone MCP proxy -- config-driven reverse proxy with auth, rate limiting, and observability
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"
rust-version = "1.90"
name = "mcp-proxy"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Standalone MCP proxy -- config-driven reverse proxy with auth, rate limiting, and observability"
homepage = "https://github.com/joshrotenberg/mcp-proxy"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/joshrotenberg/mcp-proxy"

[features]
default = [
    "otel",
    "metrics",
    "oauth",
    "openapi",
    "websocket",
    "discovery",
    "yaml",
    "skills",
]
discovery = ["dep:jpx-engine"]
metrics = [
    "dep:metrics",
    "dep:metrics-exporter-prometheus",
]
oauth = [
    "tower-mcp/oauth",
    "tower-mcp/jwks",
    "dep:reqwest",
]
openapi = [
    "dep:utoipa",
    "dep:utoipa-axum",
]
otel = [
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
    "dep:tracing-opentelemetry",
]
redis-cache = ["dep:redis"]
skills = []
sqlite-cache = ["dep:rusqlite"]
websocket = [
    "dep:tokio-tungstenite",
    "dep:async-trait",
    "dep:futures-util",
]
yaml = ["dep:serde_yaml"]

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

[[bin]]
name = "mcp-proxy"
path = "src/main.rs"

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

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

[[example]]
name = "library-mode"
path = "examples/library-mode.rs"

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

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

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

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

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

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

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

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

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

[[bench]]
name = "proxy_overhead"
path = "benches/proxy_overhead.rs"
harness = false

[dependencies.anyhow]
version = "1"

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

[dependencies.axum]
version = "0.8"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.glob-match]
version = "0.2"

[dependencies.jpx-engine]
version = "0.3.5"
optional = true

[dependencies.metrics]
version = "0.24.3"
optional = true

[dependencies.metrics-exporter-prometheus]
version = "0.18.1"
optional = true

[dependencies.moka]
version = "0.12.14"
features = ["future"]

[dependencies.notify]
version = "7"
features = ["macos_fsevent"]
default-features = false

[dependencies.notify-debouncer-mini]
version = "0.5"

[dependencies.opentelemetry]
version = "0.29"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.29"
optional = true

[dependencies.opentelemetry_sdk]
version = "0.29"
features = ["rt-tokio"]
optional = true

[dependencies.redis]
version = "0.27"
features = ["tokio-comp"]
optional = true

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "form",
]
optional = true

[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
optional = true

[dependencies.schemars]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"
optional = true

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

[dependencies.tokio-tungstenite]
version = "0.28"
features = [
    "connect",
    "rustls-tls-webpki-roots",
]
optional = true

[dependencies.toml]
version = "0.8"

[dependencies.tower]
version = "0.5"
features = [
    "util",
    "timeout",
    "limit",
]

[dependencies.tower-mcp]
version = "0.9.0"
features = [
    "http",
    "http-client",
    "proxy",
]

[dependencies.tower-mcp-types]
version = "0.9.0"

[dependencies.tower-resilience]
version = "0.9.3"
features = [
    "circuitbreaker",
    "ratelimiter",
    "hedge",
    "retry",
]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.30"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

[dependencies.utoipa]
version = "5"
features = ["chrono"]
optional = true

[dependencies.utoipa-axum]
version = "0.2"
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]

[dev-dependencies.docker-wrapper]
version = "0.11.1"
features = [
    "testing",
    "templates",
]

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.reqwest]
version = "0.13"
features = ["json"]

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio-stream]
version = "0.1"

[dev-dependencies.tower-mcp]
version = "0.9.0"
features = [
    "http",
    "http-client",
    "proxy",
    "websocket",
]

[dev-dependencies.tower-resilience-chaos]
version = "0.9"

[dev-dependencies.uuid]
version = "1"
features = ["v4"]

[profile.dist]
lto = "fat"
inherits = "release"
strip = true