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 | Claude Codechecked at 2.1.296 |
|---|---|
| Set up | |
| Add |
Add a stdio, SSE or HTTP MCP server. 1 noteWebSocket servers can only be added with add-json or .mcp.json.
Add a stdio, SSE, HTTP or WebSocket MCP server from a JSON string. |
| 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. |
| Use | |
| List | List configured MCP servers and their health. 1 noteUnapproved .mcp.json servers show as pending and are not connected. |
| Show details | Show an MCP server and its approval or health state. 1 noteHides the command, arguments and environment of plugin-provided stdio servers. |
| Start or run | Run Claude Code as a stdio MCP server. |
| Change | |
| Reset approvals |
Reset approved and rejected .mcp.json server choices. |
| Remove | |
| Sign out | Clear stored OAuth credentials for an MCP server. |
| Remove |
Remove an MCP server from a chosen or detected scope. 1 noteAlso deletes a remote server's stored OAuth tokens. |
Inside a session
Slash commands you type into an open session.
| Task | Claude Codechecked at 2.1.296 |
|---|---|
| Use | |
| Open the manager | |
| Change | |
| Enable | Re-enable a disabled MCP server, or all of them. |
| Disable | Stop connecting to an MCP server while keeping its configuration. 1 noteRecorded per project in ~/.claude.json. |
| Reconnect | Reconnect one MCP server, or retry every failed one. |
Notes and sources
Claude Code
- Some plugin authoring and evaluation commands are newer than the public reference, so each command keeps its live help evidence.
- Plugin installs that run a marketplace-declared command need --accept-command <sha256> without a TTY.
- Interactive commands are recorded separately from their shell equivalents.
- 2.1.304 adds /auto-mode-setup across Bedrock, Vertex, Foundry, Claude apps gateway and telemetry-disabled sessions; help output was corrected for several flags, and plugin validate no longer predicts where mod hooks run. Existing command help observations retain their versions.
- claude plugin can also be written claude plugins.
- claude-cli-2.1.296 help observation, live observation, checked 2026-10-14
- Claude Code MCP, Documentation, checked 2026-10-15
- Claude Code plugin CLI reference, Documentation, checked 2026-10-14
- Claude Code: Manage multiple agents with agent view, Documentation, checked 2026-10-15
- Claude Code commands, Documentation, checked 2026-10-15
- Claude Code CLI reference, Documentation, checked 2026-10-15
- Claude Code sessions, Documentation, checked 2026-10-15
- Claude Code costs and usage, Documentation, checked 2026-10-15
- Claude Code 2.1.304 published changes; no runtime probe, Documentation, checked 2026-10-21
- claude worktree documentation, reviewed 2026-10-27, Documentation, checked 2026-10-27