SSH Terminal for Codex
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
SSH masters and panel terminals are user-owned and shared across chats. Use send_command for an isolated per-command channel and command_status for output; each command is a fresh shell, so include cd/environment activation explicitly. Never stop_bridge or send exit/control input to panel terminals for cleanup. Cancel only command IDs created by this chat. Never automatically replay failed commands. When SSH authentication expires, ask the user to authenticate privately in the panel.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| open_ssh_panelA | Open the SSH terminal inside Codex. Starts or reuses the local bridge, without connecting to a server until the user clicks Connect. Passwords and 2FA must only be entered in the terminal's private input. |
| panel_bootstrapB | Initialize the SSH panel's local connection. For the app UI only. |
| panel_requestB | Read terminal state or perform a user action from the SSH panel. App UI only; never send private input here. |
| panel_private_inputC | Handle encrypted terminal and user-triggered clipboard requests from the SSH panel. App UI only; private text never appears in plaintext tool messages. |
| bridge_statusA | Check whether the local SSH terminal bridge is reachable and return its SSH/session status. |
| runtime_config_statusB | Check the local Python or Conda runtime configuration used to start the bridge server. |
| set_runtime_configC | Persist the local Python or Conda runtime used to start server.py. This stores no SSH passwords or secrets. |
| list_profilesA | List saved SSH connection profiles. Profiles never include passwords or verification codes. |
| list_sessionsA | List active SSH sessions with compact, redacted server metadata. Use session_id from this list for precise multi-server commands and snapshots. |
| delete_profileC | Delete a saved SSH connection profile. |
| set_default_profileB | Set the default SSH connection profile used by start_bridge when no host, command, or profile is provided. |
| start_bridgeA | Start the local Web/PTY SSH bridge and, unless no_auto_start=true, create a new SSH session for the requested profile. Locally configured passwords are filled by OpenSSH askpass; the user enters 2FA in the web page. Never request passwords or 2FA codes through MCP. |
| start_config_serverA | Start only the local HTML configuration page, without requiring or starting an SSH profile. |
| stop_bridgeC | Shared SSH connections are user-owned. Disconnect using the panel; agents must only cancel their own command channels. |
| send_commandA | Run a non-secret command in its own SSH channel, isolated from the user's terminal and other chats. Returns commandId; read output using command_status. Each command starts a fresh shell: include cd and environment activation explicitly. Reuses authenticated SSH only, never prompts for credentials or replays commands. |
| command_statusA | Read output and exit status for an isolated command created by this chat. Prefer this after send_command; never read another chat's command channel. |
| cancel_commandA | Interrupt only this chat's specified command channel. Never disconnects the SSH master or the user's terminal. Check remote task status afterwards. |
| snapshotA | Read output. Auto reads this chat's latest isolated command for the session, otherwise the user's terminal. Set channel=terminal explicitly to inspect panel output; prefer command_status for commands. |
| reset_cursorA | Reset the MCP client's local incremental read cursor. Pass session_id to reset only one session cursor. |
| clear_historyB | Clear one SSH session's in-memory terminal history and move that session's MCP cursor to the new end. |
| controlA | Send ctrl-c/ctrl-d/enter only to this chat's isolated command channel. Never writes to the user's panel terminal. Prefer command_id to select a command precisely. |
| request_uploadC | Create a local-file upload request for the user to confirm in the HTML page. File bytes are not sent through MCP or terminal history. |
| list_uploadsB | List upload requests and transfer statuses. Does not include file contents. |
| upload_statusC | Get one upload request or transfer status by upload_id. |
| cancel_uploadC | Cancel a running upload transfer. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| SSH 终端 |
TDQS
Scored across 25 tools
Most tools target distinct SSH-terminal concerns, but several pairs overlap in practice: command_status vs snapshot for reading output, clear_history vs reset_cursor for cursor/history management, and bridge/panel tools whose UI-only boundaries are clarified only in descriptions. The detailed descriptions help, but an agent can still hesitate between status, snapshot, and panel request tools.
All names are snake_case and largely grouped by prefix, which makes the set readable. However, the convention mixes verb_noun forms like send_command and list_profiles with noun-first forms like command_status, panel_bootstrap, bridge_status, and upload_status.
At 25 tools this is at the heavy end for an SSH terminal integration, especially because the surface spans commands, bridge lifecycle, panel UI, profiles, sessions, runtime config, and uploads. Each area has plausible tools, but the count feels borderline bloated rather than tightly scoped.
The server covers the main lifecycle areas: command execution and cancellation, status/snapshot, bridge start/stop/status, runtime config, sessions, profiles, and uploads. Remaining gaps include no explicit profile creation/update tool and no clear close-session operation for agents, though the panel ownership model may intentionally keep those UI-side.