Skip to content

Transports

MCP-TUI supports every transport in the MCP specification. Pick by where the server runs.

Best for local processes and command-launched servers. Most reliable.

Terminal window
mcp-tui --cmd <executable> --args "arg1,arg2,..."

Commands are validated for safety before launch. Process lifecycle is managed cross-platform (Unix and Windows).

For servers exposed as REST-shaped endpoints. Works for both direct JSON responses and text/event-stream upgrade responses, per the 2025-06-18 spec.

Terminal window
mcp-tui --transport http --url https://example.com/mcp tool list
mcp-tui --transport streamable-http --url https://example.com/mcp tool list

--mcp-method-headers adds two advisory HTTP headers to every JSON-RPC request — MCP-Method (the JSON-RPC method) and MCP-Name (the tool/prompt name, or resource URI for resources/read) — so load balancers, proxies, and observability tools can route MCP traffic without parsing the body. It is off by default and applies only to the HTTP transports (STDIO ignores it).

Terminal window
mcp-tui --mcp-method-headers --transport http --url https://example.com/mcp tool list

Add arbitrary headers with the repeatable --header KEY=VALUE. For servers behind OAuth (401 + WWW-Authenticate), use the --oauth-* flags instead of hand-crafting an Authorization header — see OAuth.

Long-lived event stream pattern: GET establishes the stream, POST sends requests, responses arrive on the stream.

Terminal window
mcp-tui --transport sse --url http://localhost:5001/sse tool list

The SSE client uses a no-timeout HTTP connection so the hanging GET stays open for the session.

  • Wrong endpoint format — SSE servers must emit the first event as event: endpoint carrying the session URL.
  • Redirect loops — usually a server bug, not a client issue.
  • Mid-stream disconnects — MCP-TUI surfaces the error and the partial debug log; Ctrl+D opens the debug pane.
  1. STDIO — local, deterministic, easy to debug.
  2. HTTP / Streamable HTTP — request/response, simple to reason about.
  3. SSE — works when the server matches the spec; quirky servers fail loudly.