CLI Mode
CLI mode is activated by passing a subcommand after the connection flags. The
subcommands are tool, resource, prompt, server, capabilities,
verify, and conform.
mcp-tui [connection-flags] <subcommand> [args]# list available toolsmcp-tui --cmd npx --args "@modelcontextprotocol/server-everything,stdio" tool list
# describe one toolmcp-tui ... tool describe echo
# call a tool with key=value argsmcp-tui ... tool call echo message='hello'

Resources
Section titled “Resources”mcp-tui ... resource listmcp-tui ... resource get 'file:///example.txt' # alias: readmcp-tui ... resource templates # URI templatesmcp-tui ... resource complete 'file:///{path}' path=docPrompts
Section titled “Prompts”mcp-tui ... prompt listmcp-tui ... prompt get my-promptmcp-tui ... prompt execute my-prompt --arg key=value # -a for shortmcp-tui ... prompt complete my-prompt topic=goServer introspection
Section titled “Server introspection”mcp-tui ... server # name, version, protocolmcp-tui ... capabilities # negotiated capabilities as JSONConformance and probes
Section titled “Conformance and probes”verify runs behavior probes; conform runs the full scenario matrix. Both
are covered in Conformance testing.
mcp-tui verify http://localhost:8000/mcpmcp-tui conform --report-junit conform.xml http://localhost:8000/mcpArgument coercion
Section titled “Argument coercion”Strings are passed verbatim. Numeric, boolean, and JSON-shaped values are coerced based on the tool’s input schema:
# auto-coercedmcp-tui ... tool call sum a=1 b=2mcp-tui ... tool call enabled flag=truemcp-tui ... tool call query filter='{"limit":10}'Coercion is driven entirely by the tool’s input schema: a value is parsed as the type the schema declares for that key (string, number, integer, boolean, object/array as JSON), falling back to the raw string when the schema gives no type. There is currently no per-argument type override — if a server’s schema is wrong, the coercion follows it.
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Any failure |
mcp-tui exits 1 on every error — connection failures, invalid usage,
tool/protocol errors, a failing verify probe or conform scenario, or a
tool-layer error surfaced by --strict-output / --strict-errors. There are
no distinct per-class codes. Read stderr for the human-readable classification.
See Automation & CI for pipeline patterns.