Core components
RC-API
HTTP service: catalog load (/tools/list-all), workflow execution (/tools/execute), health (/health), rule fragments for constitution, auth middleware for Bearer keys. Tools are defined declaratively as .mdc pairs under the API’s settings tree.
MCP server (ReCloud_app → server_workflow)
- Transport: stdio (Cursor launches the process).
- Surface: one MCP tool
recloud; argumentssubcommand+parameters. - ToolDispatcher: loads descriptions from RC-API; routes by
execution_target:remote→ HTTPPOST /tools/execute(unless a local_pipeline or legacy local-handler branch applies).local/hybrid/local_async→ registered local handler class for that subcommand name.local_graph→ graph agents from~/.recloud/agents/*.mdcwhen present.
- Local handler classes (reference): small fixed set including
recloudControl,convertData,fileMetadata,generateQR,generateChartLocal,systemMonitor, plus metarecloudhandler legacy—not separate MCP tools.
Tray app
- Electron v2 reference: rich UI, MCP spawn optional,
mcp.jsonwriter, constitution.mdcwriter. - Tauri port: same responsibilities targeted; verify parity for
active_toolspath and/healthinterpretation when claiming production-ready.
Cursor
Loads mcp.json, speaks MCP to RC, shows agent instructions from MCP resources.