pub fn module() -> ModuleDescriptorExpand description
The mcp module: the one capability that describes the MCP projection, composed into
the application like every other module, so that describing the projection is itself a
tool, a resource and a route of it.
use majordomus_cli::capability::builtin::mcp;
let m = mcp::module();
assert_eq!(m.id.as_str(), "mcp");
let c = &m.capabilities[0].capability;
assert_eq!(c.exposure.mcp.as_ref().unwrap().tool.as_deref(), Some("majordomus_mcp"));
assert_eq!(c.exposure.mcp.as_ref().unwrap().resource.as_ref().unwrap().uri, mcp::MCP_URI);