pub fn module() -> ModuleDescriptorExpand description
The module: three queries, declared once, from which every projection — the MCP tools and resources, the HTTP routes, the command line, the OpenAPI operations, the cockpit’s catalogue entry and the benchmark targets — is derived.
use majordomus_cli::capability::builtin::knowledge_base::module;
let m = module();
let ids: Vec<&str> = m.capabilities.iter().map(|e| e.capability.id.as_str()).collect();
assert_eq!(ids, ["knowledge_base.candidates", "knowledge_base.record", "knowledge_base.status"]);