Skip to main content

somatize_mcp/
lib.rs

1// The crate is fully documented and clippy runs with -D warnings in CI,
2// so this makes "public API without docs" a build error from here on.
3#![warn(missing_docs)]
4
5//! MCP (Model Context Protocol) server for Soma.
6//!
7//! Exposes 20 tools for code agents: filter CRUD, knowledge base
8//! queries, report generation, and the seven experiment-pool tools
9//! (`kb_*`) that let a model find what has already been tried, follow a
10//! lineage, compare two runs and retain what it concluded.
11//!
12//! `run_pipeline` and `run_study` execute. They used to echo their
13//! arguments back, on the grounds that this server cannot load user
14//! code — true of the server, which is Rust, and beside the point: it
15//! runs the graph in a Python subprocess rooted at the project
16//! directory, which is what `soma-worker` has always done. See
17//! [`exec`].
18
19pub mod context;
20pub mod exec;
21pub mod protocol;
22pub mod render;
23pub mod server;
24pub mod tools;
25
26pub use context::SomaContext;
27pub use server::run_stdio;