Skip to main content

boost/
lib.rs

1//! Boost — Anvilforge's AI-agent toolkit.
2//!
3//! Boost adds an MCP server to your Anvilforge app so AI agents (Claude Code,
4//! Cursor, Continue, …) can introspect routes, models, components, schema, and
5//! logs without grepping the source tree.
6//!
7//! Two surfaces:
8//!
9//! - **Library** — your app calls `boost::serve(&app).await` from a `"mcp"`
10//!   subcommand case in `main.rs`. The server runs on stdin/stdout and stays
11//!   alive until the client disconnects.
12//! - **CLI integration** — `anvil mcp` invokes the user's binary with the
13//!   `mcp` subcommand and shuttles JSON-RPC for the editor. `anvil boost:install`
14//!   writes `AGENTS.md` and `.mcp.json` to bootstrap the editor.
15//!
16//! ## Built-in tools
17//!
18//! `list-routes`, `list-migrations`, `list-models`, `list-components`,
19//! `application-info`, `get-config`, `database-schema`, `database-query`,
20//! `read-log-entries`, `last-error`, `search-docs`, `list-available-commands`.
21
22pub mod browser;
23pub mod install;
24pub mod log_capture;
25pub mod protocol;
26pub mod server;
27pub mod tool;
28pub mod tools;
29
30pub use server::{serve, Server};
31pub use tool::{Context, Tool};