Skip to main content

Crate facto_mcp

Crate facto_mcp 

Source
Expand description

Local MCP server for facto – real-time package ecosystem data for AI coding agents.

This crate exposes the FactoMcp server and its tools over rmcp. The facto-run binary is the thin CLI wrapper that calls serve_stdio from this crate; third parties can also embed FactoMcp directly via FactoMcp::new.

§Quick start

let config = facto_core::config::Config::load()
    .map_err(|e| anyhow::anyhow!("config: {e}"))?;
facto_mcp::serve_stdio(&config).await

Re-exports§

pub use server::FactoMcp;

Modules§

server
MCP server definition: the FactoMcp struct holds the registry / forge / runtime managers and wires up the rmcp tool router.
tools

Functions§

serve_stdio
Run the MCP server on stdio until the transport is closed or SIGINT is received. Blocks the calling task.