Skip to content

Debugging

Terminal window
mcp-tui --debug ...

Adds DNS lookup, TCP connect, TLS handshake, time-to-first-byte, and connection-reuse detection to the log stream.

Ctrl+D opens a tabbed debug overlay:

  • Logs — every internal event with category, severity, and timestamp.
  • HTTP Debug — connection-level timings and reuse counters.
  • MCP Messages — every JSON-RPC frame in/out, in order.

Errors are categorized into actionable buckets:

CategoryExampleHint
client_usageinvalid args, bad commandCheck the call site
transportDNS failure, connection resetCheck network and URL
protocolinvalid JSON-RPCFile a bug against the server
servertool returned isError: trueCheck tool inputs

Each error includes a list of suggested actions in the output.

SSE never receives a response. The server must POST event: endpoint first. Check with curl -N.

HTTP works locally but not in CI. Check proxy variables: HTTP_PROXY, HTTPS_PROXY, NO_PROXY.

STDIO command rejected. MCP-TUI validates the command path. Use the absolute path or ensure the binary is on PATH.