Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.319 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Connect Claude Code to tools via MCP changedmcp

Upstream edited this page at 28 Oct 2026 19:51 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 30 Oct 2026 18:07 UTC.

Upstream edited
Recorded here
Lines+38added
Lines−38removed
From line 1,035 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits100to this page, all time

The whole hunk

from line 1035, old and new numbered
/
lines
from line 1035
10351035 
10361036The tabs cover both commands: `claude mcp add` takes your client ID and callback port as flags, and `claude mcp add-json` takes them in an `oauth` object. If you registered a redirect URI, set the callback port to the port in that URI.
10371037 
1038**claude mcp add**
1038> [tab] claude mcp add
1039>
1040> Use `--client-id` to pass your app's client ID. The `--client-secret` flag prompts for the secret with masked input:
1041>
1042> ```bash theme={null}
1043> claude mcp add --transport http \
1044> --client-id your-client-id --client-secret --callback-port 8080 \
1045> my-server https://mcp.example.com/mcp
1046> ```
10391047 
1040Use `--client-id` to pass your app's client ID. The `--client-secret` flag prompts for the secret with masked input:
1048> [tab] claude mcp add-json
1049>
1050> Include the `oauth` object in the JSON config and pass `--client-secret` as a separate flag:
1051>
1052> ```bash theme={null}
1053> claude mcp add-json my-server \
1054> '{"type":"http","url":"https://mcp.example.com/mcp","oauth":{"clientId":"your-client-id","callbackPort":8080}}' \
1055> --client-secret
1056> ```
10411057 
1042```bash theme={null}
1043claude mcp add --transport http \
1044 --client-id your-client-id --client-secret --callback-port 8080 \
1045 my-server https://mcp.example.com/mcp
1046```
1058> [tab] claude mcp add-json (callback port only)
1059>
1060> To fix only the callback port and let Claude Code register the client automatically, set `callbackPort` on its own:
1061>
1062> ```bash theme={null}
1063> claude mcp add-json my-server \
1064> '{"type":"http","url":"https://mcp.example.com/mcp","oauth":{"callbackPort":8080}}'
1065> ```
10471066 
1048**claude mcp add-json**
1049 
1050Include the `oauth` object in the JSON config and pass `--client-secret` as a separate flag:
1051 
1052```bash theme={null}
1053claude mcp add-json my-server \
1054 '{"type":"http","url":"https://mcp.example.com/mcp","oauth":{"clientId":"your-client-id","callbackPort":8080}}' \
1055 --client-secret
1056```
1057 
1058**claude mcp add-json (callback port only)**
1059 
1060To fix only the callback port and let Claude Code register the client automatically, set `callbackPort` on its own:
1061 
1062```bash theme={null}
1063claude mcp add-json my-server \
1064 '{"type":"http","url":"https://mcp.example.com/mcp","oauth":{"callbackPort":8080}}'
1065```
1066 
1067**CI / env var**
1068 
1069Set the secret via environment variable to skip the interactive prompt:
1070 
1071```bash theme={null}
1072MCP_CLIENT_SECRET=your-secret claude mcp add --transport http \
1073 --client-id your-client-id --client-secret --callback-port 8080 \
1074 my-server https://mcp.example.com/mcp
1075```
1067> [tab] CI / env var
1068>
1069> Set the secret via environment variable to skip the interactive prompt:
1070>
1071> ```bash theme={null}
1072> MCP_CLIENT_SECRET=your-secret claude mcp add --transport http \
1073> --client-id your-client-id --client-secret --callback-port 8080 \
1074> my-server https://mcp.example.com/mcp
1075> ```
10761076 
10771077**3. Authenticate in Claude Code**
10781078 
Feedback