Automation & CI
CLI mode is the foundation for automation. Every TUI action has an equivalent CLI command — press c in the TUI to copy it.
CI smoke test pattern
Section titled “CI smoke test pattern”- name: Verify MCP server health run: | mcp-tui --transport http --url ${{ env.MCP_URL }} tool list mcp-tui --transport http --url ${{ env.MCP_URL }} tool call pingNon-zero exit fails the step. See CLI mode for the full table.
JSON output
Section titled “JSON output”Pass --json for structured output suitable for jq:
mcp-tui ... tool list --json | jq '.tools[].name'Timeouts
Section titled “Timeouts”mcp-tui --timeout 30s ... tool call slow_opThe timeout applies to the operation, not the whole connection. STDIO servers stay alive between operations within one invocation.
Parallel batches
Section titled “Parallel batches”for tool in $(mcp-tui ... tool list --json | jq -r '.tools[].name'); do mcp-tui ... tool call "$tool" &donewaitFailure servers for CI hardening
Section titled “Failure servers for CI hardening”The repo ships test servers that simulate misbehavior — protocol violations, oversized responses, crashes, timeouts. Use them to verify your wrapper code handles errors gracefully:
node test-servers/crash-server.js &mcp-tui --transport stdio --cmd node --args test-servers/crash-server.js tool list