# 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.91"
name = "brainwires-mcp-server"
version = "0.8.0"
authors = ["Brainwires"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MCP server framework with middleware pipeline for the Brainwires Agent Framework"
homepage = "https://github.com/Brainwires/brainwires-framework"
documentation = "https://docs.rs/brainwires-mcp-server"
readme = "README.md"
keywords = [
    "mcp",
    "server",
    "middleware",
    "tools",
    "json-rpc",
]
categories = ["network-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Brainwires/brainwires-framework"
resolver = "2"

[features]
analytics = [
    "dep:brainwires-analytics",
    "brainwires-analytics/native",
    "dep:chrono",
]
http = [
    "dep:axum",
    "dep:tokio-stream",
]
oauth = [
    "dep:jsonwebtoken",
    "dep:reqwest",
]

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

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

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

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

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

[dependencies.anyhow]
version = "1"

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

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.brainwires-analytics]
version = "0.8.0"
optional = true
default-features = false

[dependencies.brainwires-mcp]
version = "0.8.0"

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

[dependencies.futures]
version = "0.3"

[dependencies.jsonwebtoken]
version = "9"
optional = true

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.43"
features = [
    "full",
    "io-std",
    "io-util",
    "sync",
    "macros",
    "net",
]

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

[dependencies.tracing]
version = "0.1"

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

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

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

[dev-dependencies.tokio]
version = "1.43"
features = [
    "full",
    "test-util",
    "net",
]
