# 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.85"
name = "tower-mcp"
version = "0.1.0"
authors = ["Josh Rotenberg <joshrotenberg@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tower-native Model Context Protocol (MCP) implementation"
homepage = "https://github.com/joshrotenberg/tower-mcp"
documentation = "https://docs.rs/tower-mcp"
readme = "README.md"
keywords = [
    "mcp",
    "tower",
    "json-rpc",
    "ai",
    "llm",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/joshrotenberg/tower-mcp"

[features]
childproc = []
default = []
http = [
    "dep:axum",
    "dep:hyper",
    "dep:http",
    "dep:http-body-util",
    "dep:tokio-stream",
    "dep:uuid",
]
websocket = [
    "dep:axum",
    "dep:tokio-tungstenite",
    "dep:uuid",
]

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

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

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

[[example]]
name = "http_server"
path = "examples/http_server.rs"
required-features = ["http"]

[[example]]
name = "http_server_with_auth"
path = "examples/http_server_with_auth.rs"
required-features = ["http"]

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

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

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

[dependencies.axum]
version = "0.8"
features = [
    "json",
    "ws",
]
optional = true

[dependencies.base64]
version = "0.22.1"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1"
optional = true

[dependencies.http-body-util]
version = "0.1"
optional = true

[dependencies.hyper]
version = "1"
optional = true

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.regex]
version = "1"

[dependencies.schemars]
version = "1.2"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
optional = true

[dependencies.tokio-tungstenite]
version = "0.26"
optional = true

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

[dependencies.tower-service]
version = "0.3"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v4"]
optional = true

[dev-dependencies.tokio-test]
version = "0.4"

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