The command for each task, in each harness. Pick what you are working with, then read across: commands you type in your shell or a script and commands you type inside an open session are listed separately. Commands for renaming sessions are on Thread naming and importing from another harness on Migration.
From your shell
Commands you run in a terminal or script, outside a session.
| Task | Codex CLIchecked at 0.162.1 | Claude Codechecked at 2.1.296 | Cursor Agentchecked at 2026.10.12-d47ca18 | OpenCode 2.xchecked at 2.0.28 | pichecked at 1.2.0 |
|---|---|---|---|---|---|
| Set up | |||||
| Add |
Register a stdio or streamable-HTTP MCP server. 1 note |
Add a stdio, SSE, HTTP or WebSocket MCP server from a JSON string. | — | Add an MCP server to the project config, or the global config with --global. 1 note |
Add or replace a stdio or Streamable HTTP server in mcp.json. 1 note |
| Import | — |
Import MCP servers from Claude Desktop on macOS or WSL. | — | — | — |
| Sign in or pair |
Sign in to an HTTP, SSE or claude.ai connector MCP server. | Sign in to an MCP server configured in .cursor/mcp.json or ~/.cursor/mcp.json. | Sign in to an OAuth-capable remote MCP server. |
Sign in to an OAuth MCP server through the browser. 1 note | |
| Use | |||||
| List | List configured MCP servers. | List configured MCP servers and their status. | |||
| Show details |
List the tools an MCP server exposes and their argument names. | — | — | ||
| Start or run | — | Run Claude Code as a stdio MCP server. | — | — | — |
| Change | |||||
| Enable | — | — | — | — | |
| Disable | — | — |
Disable an MCP server so it is neither loaded nor offered for approval. | — | — |
| Reset approvals | — |
Reset approved and rejected .mcp.json server choices. | — | — | — |
| Remove | |||||
| Sign out | Remove stored OAuth credentials for an MCP server. | Clear stored OAuth credentials for an MCP server. | — | Remove stored OAuth credentials for an MCP server. | Delete a server's stored OAuth credentials. |
| Remove | Delete a stored MCP server definition. | — | — | ||
Inside a session
Slash commands you type into an open session.
| Task | Codex CLIchecked at 0.162.1 | Claude Codechecked at 2.1.296 | Cursor Agentchecked at 2026.10.12-d47ca18 | OpenCode 2.xchecked at 2.0.28 | pichecked at 1.2.0 |
|---|---|---|---|---|---|
| Set up | |||||
| Sign in or pair | — | — | — | ||
| Use | |||||
| Open the manager | — | Open the MCP pager to browse tools, sign in or out, enable or disable servers. | |||
| List | — | — | — | — | |
| Show details | — | — | — | Show MCP server connection status. | — |
| Change | |||||
| Enable | — | Re-enable a disabled MCP server, or all of them. | — | — | — |
| Disable | — | — | — | — | |
| Reconnect | — | Reconnect one MCP server, or retry every failed one. | — | — | |
| Remove | |||||
| Sign out | — | — | — | — | Delete stored OAuth credentials from a session. |