bugwarden 0.6.0

MCP server for Bugzilla with operator-controlled security guards
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 = "2021"
rust-version = "1.88"
name = "bugwarden"
version = "0.6.0"
authors = ["Martin Pluskal <martin@pluskal.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "bugwarden"
description = "MCP server for Bugzilla with operator-controlled security guards"
homepage = "https://github.com/plusky/bugwarden"
readme = "README.md"
keywords = [
    "bugzilla",
    "mcp",
    "llm",
    "security",
    "server",
]
categories = [
    "command-line-utilities",
    "web-programming::http-server",
]
license = "Apache-2.0"
repository = "https://github.com/plusky/bugwarden"

[package.metadata.deb]
maintainer = "Martin Pluskal <martin@pluskal.org>"
copyright = "2026 Martin Pluskal"
license-file = [
    "LICENSE",
    "0",
]
extended-description = "bugwarden exposes Bugzilla to MCP (Model Context Protocol) clients through a guard policy that the client can neither read nor change. The policy is a TOML file read once at startup and decides, per bug, which capabilities a client is granted, so an operator can expose a Bugzilla instance to an LLM client while keeping undisclosed security bugs, private comments and write access out of reach."
section = "utils"
priority = "optional"
assets = [
    [
    "target/release/bugwarden",
    "usr/bin/",
    "755",
],
    [
    "../../examples/policy.toml",
    "etc/bugwarden/policy.toml",
    "644",
],
    [
    "../../examples/audit.toml",
    "etc/bugwarden/audit.toml",
    "644",
],
    [
    "man/bugwarden.1",
    "usr/share/man/man1/",
    "644",
],
    [
    "completions/bugwarden.bash",
    "usr/share/bash-completion/completions/bugwarden",
    "644",
],
    [
    "completions/_bugwarden",
    "usr/share/zsh/site-functions/_bugwarden",
    "644",
],
    [
    "completions/bugwarden.fish",
    "usr/share/fish/vendor_completions.d/bugwarden.fish",
    "644",
],
    [
    "README.md",
    "usr/share/doc/bugwarden/README.md",
    "644",
],
    [
    "../../docs/DESIGN.md",
    "usr/share/doc/bugwarden/DESIGN.md",
    "644",
],
]
conf-files = [
    "/etc/bugwarden/policy.toml",
    "/etc/bugwarden/audit.toml",
]

[package.metadata.generate-rpm]
summary = "MCP server for Bugzilla with operator-controlled security guards"
description = "bugwarden exposes Bugzilla to MCP (Model Context Protocol) clients through a guard policy that the client can neither read nor change. The policy is a TOML file read once at startup and decides, per bug, which capabilities a client is granted, so an operator can expose a Bugzilla instance to an LLM client while keeping undisclosed security bugs, private comments and write access out of reach."

[[package.metadata.generate-rpm.assets]]
source = "target/release/bugwarden"
dest = "/usr/bin/bugwarden"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "../../examples/policy.toml"
dest = "/etc/bugwarden"
mode = "40755"

[[package.metadata.generate-rpm.assets]]
source = "../../examples/policy.toml"
dest = "/usr/share/doc/bugwarden"
mode = "40755"

[[package.metadata.generate-rpm.assets]]
source = "../../examples/policy.toml"
dest = "/usr/share/licenses/bugwarden"
mode = "40755"

[[package.metadata.generate-rpm.assets]]
source = "../../examples/policy.toml"
dest = "/etc/bugwarden/policy.toml"
mode = "644"
config = "noreplace"

[[package.metadata.generate-rpm.assets]]
source = "../../examples/audit.toml"
dest = "/etc/bugwarden/audit.toml"
mode = "644"
config = "noreplace"

[[package.metadata.generate-rpm.assets]]
source = "man/bugwarden.1"
dest = "/usr/share/man/man1/bugwarden.1"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "completions/bugwarden.bash"
dest = "/usr/share/bash-completion/completions/bugwarden"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "completions/_bugwarden"
dest = "/usr/share/zsh/site-functions/_bugwarden"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "completions/bugwarden.fish"
dest = "/usr/share/fish/vendor_completions.d/bugwarden.fish"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "LICENSE"
dest = "/usr/share/licenses/bugwarden/LICENSE"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "README.md"
dest = "/usr/share/doc/bugwarden/README.md"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "../../docs/DESIGN.md"
dest = "/usr/share/doc/bugwarden/DESIGN.md"
mode = "644"
doc = true

[features]
gen = [
    "dep:clap_complete",
    "dep:clap_mangen",
]

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

[[bin]]
name = "bugwarden"
path = "src/main.rs"

[[bin]]
name = "bugwarden-gen"
path = "src/bin/bugwarden-gen.rs"
required-features = ["gen"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.axum]
version = "0.8"
features = [
    "http1",
    "tokio",
]
default-features = false

[dependencies.base64]
version = "0.23.1"

[dependencies.bugwarden-core]
version = "0.6.0"

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

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

[dependencies.clap_complete]
version = "4"
optional = true

[dependencies.clap_mangen]
version = "0.3"
optional = true

[dependencies.futures-core]
version = "0.3"

[dependencies.http]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = ["rustls"]
default-features = false

[dependencies.rmcp]
version = "3.1"
features = [
    "server",
    "macros",
    "transport-io",
    "transport-streamable-http-server",
]

[dependencies.schemars]
version = "1"
features = ["chrono04"]

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"

[dependencies.subtle]
version = "2.6"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "signal",
    "net",
    "time",
    "io-std",
]

[dependencies.tokio-util]
version = "0.7"

[dependencies.toml]
version = "1.1"

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.prost]
version = "0.14"

[dev-dependencies.reqwest]
version = "0.13"
features = ["rustls"]
default-features = false

[dev-dependencies.rmcp]
version = "3.1"
features = [
    "client",
    "transport-streamable-http-client-reqwest",
    "reqwest",
]

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "io-util",
    "process",
    "time",
]

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "allow"
priority = -1

[lints.rust]
unsafe_code = "forbid"