Skip to main content

module

Function module 

Source
pub fn module() -> ModuleDescriptor
Expand description

The module: pack.plan and pack.verify, each exposed over MCP, HTTP and the command line; writing a pack stays with majordomus pack build.

use majordomus_cli::capability::builtin::pack::module;
let m = module();
assert_eq!(m.id.as_str(), "pack");
let tools: Vec<_> = m
    .capabilities
    .iter()
    .filter_map(|c| c.capability.exposure.mcp.as_ref()?.tool.clone())
    .collect();
assert_eq!(tools, ["majordomus_pack_plan", "majordomus_pack_verify"]);