Skip to main content

Crate boost

Crate boost 

Source
Expand description

Boost — Anvilforge’s AI-agent toolkit.

Boost adds an MCP server to your Anvilforge app so AI agents (Claude Code, Cursor, Continue, …) can introspect routes, models, components, schema, and logs without grepping the source tree.

Two surfaces:

  • Library — your app calls boost::serve(&app).await from a "mcp" subcommand case in main.rs. The server runs on stdin/stdout and stays alive until the client disconnects.
  • CLI integrationanvil mcp invokes the user’s binary with the mcp subcommand and shuttles JSON-RPC for the editor. anvil boost:install writes AGENTS.md and .mcp.json to bootstrap the editor.

§Built-in tools

list-routes, list-migrations, list-models, list-components, application-info, get-config, database-schema, database-query, read-log-entries, last-error, search-docs, list-available-commands.

Re-exports§

pub use server::serve;
pub use server::Server;
pub use tool::Context;
pub use tool::Tool;

Modules§

browser
Lazy shared Chromium instance used by the browser MCP tools.
install
anvil boost:install — write the AGENTS.md + editor MCP config files an AI agent needs to discover and use Boost.
log_capture
In-memory log capture layer for read-log-entries / last-error.
protocol
MCP wire types — JSON-RPC 2.0 over stdio, newline-delimited.
server
The MCP server. Reads newline-delimited JSON-RPC requests from stdin, dispatches to the tool registry, writes responses to stdout.
tool
The Tool trait — every MCP tool exposed by Boost implements this.
tools
Built-in MCP tools.