Expand description
MCP (Model Context Protocol) server for Soma.
Exposes 20 tools for code agents: filter CRUD, knowledge base
queries, report generation, and the seven experiment-pool tools
(kb_*) that let a model find what has already been tried, follow a
lineage, compare two runs and retain what it concluded.
run_pipeline and run_study execute. They used to echo their
arguments back, on the grounds that this server cannot load user
code — true of the server, which is Rust, and beside the point: it
runs the graph in a Python subprocess rooted at the project
directory, which is what soma-worker has always done. See
exec.
Re-exports§
pub use context::SomaContext;pub use server::run_stdio;
Modules§
- context
- Soma MCP server context: holds state and implements tool handlers.
- exec
- Running a graph the model described.
- protocol
- MCP JSON-RPC 2.0 protocol types.
- render
- Rendering the experiment pool for a model to read.
- server
- MCP stdio server: reads JSON-RPC from stdin, writes to stdout.
- tools
- Tool definitions and dispatch for the Soma MCP server.