Skip to content

TUI Mode

The TUI is the default when you run mcp-tui without a subcommand. It opens to a connection screen with three tabs: Saved, Discovery, and Manual.

Tabbed connection screen
  • Saved — last successful connections, ready to re-launch.
  • Discovery — auto-finds Claude Desktop, VS Code MCP, and native MCP-TUI configs on disk.
  • Manual — type a --cmd-style command directly, or fill in transport/URL.

Tab cycles tabs; ↑/↓ selects within a list; Enter connects.

Browse tools, resources, prompts

After connecting, the main screen has four tabs:

TabSourceAction
Toolstools/listEnter opens the input form
Resourcesresources/listEnter reads and renders content
Promptsprompts/listEnter retrieves the prompt template
Eventsserver notificationslive feed of notifications; Enter opens a detail pane

Tab / Shift+Tab (or ←/→) moves between tabs. ↑/↓ (or j/k) selects within a tab. Number keys 19 quick-select an item.

The Events tab streams every server-to-client notification — logging, progress, list-changed, resource updates, cancellations — as it arrives.

The input form is generated from the tool’s JSON Schema. Required fields are marked. Type coercion runs automatically — numbers, booleans, and JSON literals are parsed from text.

Result panels are scrollable. Ctrl+↑/↓, PgUp/PgDn, Home/End, and v (view fields) all work.

Some MCP servers call back into the client. The TUI renders each request as a dedicated interactive screen:

  • Sampling — when a server issues sampling/createMessage, a screen shows the requested messages and lets you compose or approve a reply.
  • Elicitation — an elicitation/create request renders as a form built from the requested schema; you fill it in, or decline/cancel.
  • Roots — press R to open the roots editor. Changes propagate to the server via a roots/list_changed notification. See Client features.
KeyAction
cCopy CLI command equivalent of the last action
Ctrl+CCopy current result
rRefresh the current tab
ROpen the roots editor
dDisconnect and return to the connection screen
eShow schema-error details for the selected tool
Ctrl+EExport session recording (.json trace + .sh CLI replay script)
Ctrl+D / Ctrl+L / F12Open the debug screen
b / Alt+←Back
q / Esc / Ctrl+CQuit

See the keyboard reference for the full list.