Agent CLI Usage
Use JSON output for all agent calls:
miudb commands --output jsonmiudb describe query run --output jsonmiudb connections list --output jsonmiudb connections smoke --timeout 12s --concurrency 4 --output jsonmiudb query run --connection agent-deck --sql "select 1" --output jsonFor MCP-native hosts, run:
miudb mcp serve --transport stdioRules:
- stdout is machine-readable JSON.
- stderr is diagnostics only.
ok: falsecarries structured error information.- Results are bounded by
--limit. - Use
query fetch-page --cursor <cursor>to continue a truncated one-shot query result. - Use
connections smokewhen an agent needs a full saved-connection health matrix. It returns one JSON envelope containing every per-connection result, per-type pass/fail counts, redacted error messages, and retry hints. - Use
miudb mcp serve --transport stdiofor Codex, Claude Code, Cursor, and VS Code/Copilot. See MCP Server for setup snippets.