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
39
40
//! Shared coordination bus for a team of AI coding agents (Claude Code, Codex, Cursor — any MCP client).
//!
//! The crate is split so integration tests can drive the real HTTP surface:
//!
//! - [`store`] holds all business logic and every SQL statement,
//! - [`tools`] is a thin MCP layer over it,
//! - [`serve`] wires the transport, authentication and axum together,
//! - [`admin`] is the operator CLI (teams, agents, tokens),
//! - [`admin_api`] is the remote administration surface at `/admin/*`,
//! - [`admin_cli`] drives it from the operator's machine (`admin …`),
//! - [`context`] resolves which bus, token and project a client should use,
//! - [`proxy`] is the per-conversation stdio MCP server (`mcp proxy`),
//! - [`hook`] is what lifecycle hooks run (`context hook`).
// Row tuples for `sqlx::query_as` are spelled out next to the SELECT that
// produces them; naming each one would only add indirection.
/// Embedded schema migrations, applied by `migrate` and on startup.
pub static MIGRATOR: Migrator = migrate!;