1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! bugwarden — MCP server for Bugzilla with operator-controlled security
//! guards.
//!
//! This library target exists so the MCP tool surface can be driven end to
//! end by integration tests (`tests/`): the binary (`main.rs`) is a thin
//! transport wrapper around [`server::BugWarden`], and a binary-only crate
//! would leave the tool gates — the code that calls the guard — untestable
//! as a unit. The supported product remains the `bugwarden` binary; this
//! API carries no stability promise of its own.
// The environment pin the integration tests share, so the crate's own unit
// tests parse a `Cli` the same way (#214). `#[path]` rather than a module
// of `tests/common/mod.rs`: that one compiles into every binary saying `mod
// common;`, where a helper only some of them use is `dead_code` (#167).
// The probed refused address, reached by `#[path]` for the same reason:
// `use` cannot see an integration-test file. A unit test that DIALS an
// unreachable upstream checks the address instead of assuming it, and
// that file says where the probe belongs (#280).