Harness Notes

Commands

Updated 2026-11-22,

On this page

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.

TaskClaude Codechecked at 2.1.296
Set up
Add

claude mcp add [options] <name> <commandOrUrl> [args...]

Add a stdio, SSE or HTTP MCP server.

1 note

WebSocket servers can only be added with add-json or .mcp.json.

claude mcp add-json [options] <name> <json>

Add a stdio, SSE, HTTP or WebSocket MCP server from a JSON string.

Import

claude mcp add-from-claude-desktop [-s <scope>]

Import MCP servers from Claude Desktop on macOS or WSL.

Sign in or pair

claude mcp login [--no-browser] <name>

Sign in to an HTTP, SSE or claude.ai connector MCP server.

Use
List

claude mcp list

List configured MCP servers and their health.

1 note

Unapproved .mcp.json servers show as pending and are not connected.

Show details

claude mcp get <name>

Show an MCP server and its approval or health state.

1 note

Hides the command, arguments and environment of plugin-provided stdio servers.

Start or run

claude mcp serve

Run Claude Code as a stdio MCP server.

Change
Reset approvals

claude mcp reset-project-choices

Reset approved and rejected .mcp.json server choices.

Remove
Sign out

claude mcp logout <name>

Clear stored OAuth credentials for an MCP server.

Remove

claude mcp remove [-s <scope>] <name>

Remove an MCP server from a chosen or detected scope.

1 note

Also deletes a remote server's stored OAuth tokens.

Inside a session

Slash commands you type into an open session.

TaskClaude Codechecked at 2.1.296
Use
Open the manager

/mcp

Open the MCP status and sign-in panel.

1 note

With -p it prints a text status summary.

Change
Enable

/mcp enable [<server>|all]

Re-enable a disabled MCP server, or all of them.

Disable

/mcp disable [<server>|all]

Stop connecting to an MCP server while keeping its configuration.

1 note

Recorded per project in ~/.claude.json.

Reconnect

/mcp reconnect (<server>|all)

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.