Harness Notes

JSON

Commands

5 records · Updated 2026-10-15

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.

TaskCodex CLIchecked at 0.162.1Claude Codechecked at 2.1.296Cursor Agentchecked at 2026.10.12-d47ca18OpenCode 2.xchecked at 2.0.28pichecked at 1.2.0
Set up
Add

codex mcp add <NAME> (--url <URL> | -- <COMMAND>...)

Register a stdio or streamable-HTTP MCP server.

1 note

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

Add a stdio, SSE or HTTP MCP server.

1 note

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

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

—

opencode mcp add <name> [--url <url>] [--header name=value] [--env name=value] [--global] [-- <command...>]

Add an MCP server to the project config, or the global config with --global.

1 note

pi mcp add <server> [options] (-- <command> [args...] | --url <url>)

Add or replace a stdio or Streamable HTTP server in mcp.json.

1 note
Import—

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

Import MCP servers from Claude Desktop on macOS or WSL.

———
Sign in or pair

codex mcp login <NAME>

Start an OAuth login for a configured streamable-HTTP MCP server.

1 note

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

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

agent mcp login <identifier>

Sign in to an MCP server configured in .cursor/mcp.json or ~/.cursor/mcp.json.

opencode mcp auth [<name>]

Sign in to an OAuth-capable remote MCP server.

pi mcp login <server> [--timeout <seconds>]

Sign in to an OAuth MCP server through the browser.

1 note
Use
List

codex mcp list [--json]

List configured MCP servers.

claude mcp list

List configured MCP servers and their health.

1 note

agent mcp list

also cursor-agent mcp list

List configured MCP servers and their status.

opencode mcp list

List configured MCP servers and their status.

pi mcp list [--json]

Connect to every enabled server and print its state, tools and errors.

1 note
Show details

codex mcp get <NAME> [--json]

Show one MCP server's configuration.

1 note

claude mcp get <name>

Show an MCP server and its approval or health state.

1 note

agent mcp list-tools <identifier>

List the tools an MCP server exposes and their argument names.

——
Start or run—

claude mcp serve

Run Claude Code as a stdio MCP server.

———
Change
Enable——

agent mcp enable <identifier>

Add an MCP server to the local approved list.

1 note
——
Disable——

agent mcp disable <identifier>

Disable an MCP server so it is neither loaded nor offered for approval.

——
Reset approvals—

claude mcp reset-project-choices

Reset approved and rejected .mcp.json server choices.

———
Remove
Sign out

codex mcp logout <NAME>

Remove stored OAuth credentials for an MCP server.

claude mcp logout <name>

Clear stored OAuth credentials for an MCP server.

—

opencode mcp logout <name>

Remove stored OAuth credentials for an MCP server.

pi mcp logout <server>

Delete a server's stored OAuth credentials.

Remove

codex mcp remove <NAME>

Delete a stored MCP server definition.

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

Remove an MCP server from a chosen or detected scope.

1 note
——

pi mcp remove <server> [-l]

Remove a server from mcp.json.

1 note

Inside a session

Slash commands you type into an open session.

TaskCodex CLIchecked at 0.162.1Claude Codechecked at 2.1.296Cursor Agentchecked at 2026.10.12-d47ca18OpenCode 2.xchecked at 2.0.28pichecked at 1.2.0
Set up
Sign in or pair

/mcp login <name>

Sign in to a configured MCP server from the active session.

1 note
———

/mcp login <server>

Sign in to an OAuth MCP server from a session.

1 note
Use
Open the manager—

/mcp

Open the MCP status and sign-in panel.

1 note

/mcp

Open the MCP pager to browse tools, sign in or out, enable or disable servers.

/mcps

View, connect, disconnect or sign in to MCP servers.

1 note

/mcp

List servers and inspect, reconnect, sign in or out, enable or disable one.

1 note
List

/mcp

also /mcp verbose

List the MCP servers and tools available in the session.

1 note
————
Show details———

/status

Show MCP server connection status.

—
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
———
Reconnect—

/mcp reconnect (<server>|all)

Reconnect one MCP server, or retry every failed one.

——

/mcp reconnect <server>

Reconnect an enabled MCP server.

1 note
Remove
Sign out————

/mcp logout <server>

Delete stored OAuth credentials from a session.

Notes and sources

Codex CLI
Claude Code
Cursor Agent
OpenCode 2.x
pi