Skip to main content

build

Function build 

Source
pub fn build() -> Value
Expand description

Build the full agent schema as a JSON value.

The shape is documented at the crate root and stabilised by the golden fixture at schema/agents.json. Use the crate::registry module if a programmatic Rust API is preferable.

Platform note. Cline and Roo’s MCP global paths flow through paths::config_dir(), which differs across macOS, Linux, and Windows. The committed schema/agents.json is the Linux view; regenerate on Linux for canonical output. The companion test only byte-compares on Linux for the same reason.