1
00:00:00,320 --> 00:00:04,861
Brought to you by Jellypod AI, this is The
Claude Code Changelog.

2
00:00:05,981 --> 00:00:12,882
Version 2.1.327 landed on November 17th,
and one line in it fixes a habit a

3
00:00:13,022 --> 00:00:14,482
lot of us have had for ages.

4
00:00:15,582 --> 00:00:22,223
You can now run claude mcp add-json, a
server name, and then a lone dash,

5
00:00:22,663 --> 00:00:26,024
and Claude Code reads the server's JSON
from standard input.

6
00:00:26,741 --> 00:00:29,301
Which matters because of where tokens used
to end up.

7
00:00:29,721 --> 00:00:33,102
If you passed a Bearer token inline, it
sat in your shell history,

8
00:00:34,522 --> 00:00:36,982
and it showed up in the process list while
the command ran.

9
00:00:38,422 --> 00:00:42,903
The changelog says the point is, quote, so
tokens can stay off the command line.

10
00:00:43,483 --> 00:00:48,104
That's the same credential leakage theme
as our MCP security episode on denylists,

11
00:00:48,324 --> 00:00:50,084
just at the CLI layer this time.

12
00:00:51,675 --> 00:00:55,596
So the fix is basically, don't shout your
password across the room.

13
00:00:56,796 --> 00:00:57,416
Show us the pattern.

14
00:00:58,375 --> 00:01:00,296
Simplest one is a here-doc.

15
00:01:00,296 --> 00:01:06,778
You write claude mcp add-json secure-api,
space, dash,

16
00:01:07,299 --> 00:01:08,939
then open a here-doc.

17
00:01:08,939 --> 00:01:14,881
Inside it, a JSON object with type set to
http, a url, and a headers block with

18
00:01:15,001 --> 00:01:15,682
Authorization.

19
00:01:16,462 --> 00:01:19,263
For the token, you can use command
substitution from a vault,

20
00:01:19,523 --> 00:01:22,664
like vault read, field token, on your
secret path.

21
00:01:23,465 --> 00:01:26,866
The shell expands it before Claude Code
sees it, and the token never lands in your

22
00:01:26,906 --> 00:01:27,906
history as a literal.

23
00:01:28,498 --> 00:01:30,578
And there's a file version too, yeah?

24
00:01:31,379 --> 00:01:38,081
Keep a git-ignored config, say
.mcp.secrets.json, and run cat on that

25
00:01:38,141 --> 00:01:44,244
file, piped into claude mcp add-json
private-service, dash.

26
00:01:45,824 --> 00:01:50,226
Handy for setup scripts and CI, where
command logs are the sneaky leak.

27
00:01:51,176 --> 00:01:52,137
Now the caveats.

28
00:01:52,637 --> 00:01:54,818
First, this is a terminal command only.

29
00:01:55,398 --> 00:01:58,599
The changelog says it's not available
inside a Claude Code session,

30
00:01:58,779 --> 00:02:02,121
so run it before you launch claude, or in
your provisioning script.

31
00:02:03,341 --> 00:02:04,862
Second, include the type field.

32
00:02:05,402 --> 00:02:09,304
A JSON entry with a url but no type gets
read as a stdio server,

33
00:02:09,564 --> 00:02:13,886
so Claude Code skips it and tells you to
add type http, sse,

34
00:02:14,186 --> 00:02:14,946
or ws.

35
00:02:15,606 --> 00:02:19,608
Streamable-http works as an alias for
http, per the docs.

36
00:02:21,963 --> 00:02:23,084
One more careful bit.

37
00:02:23,584 --> 00:02:29,046
If you build that JSON with echo and a
variable, the token is still in the shell's

38
00:02:29,206 --> 00:02:33,408
own expansion, so the here-doc or file
route is tidier.

39
00:02:34,088 --> 00:02:36,909
That's my reading, not something the
changelog spells out.

40
00:02:37,771 --> 00:02:38,131
Fair enough.

41
00:02:38,891 --> 00:02:44,672
Related fix in the same release: project
scoped claude mcp add and claude mcp remove

42
00:02:45,112 --> 00:02:50,533
used to delete other top level keys in
.mcp.json, like a dollar schema entry or

43
00:02:50,593 --> 00:02:51,734
another tool's servers.

44
00:02:53,094 --> 00:02:55,094
That's fixed, so those edits are safe now.

45
00:02:56,487 --> 00:02:57,187
Smaller wins.

46
00:02:57,627 --> 00:03:04,048
The /status command now lists broken
agent, skill, command and output style files,

47
00:03:04,508 --> 00:03:09,309
keybinding errors, an unavailable sandbox,
ignored permission settings,

48
00:03:09,609 --> 00:03:11,370
and hook matchers that never match.

49
00:03:12,690 --> 00:03:15,410
Handy when a hook just silently never
fires.

50
00:03:16,171 --> 00:03:21,232
Also, /tui classic is now the name for the
non fullscreen renderer,

51
00:03:21,672 --> 00:03:24,032
and /tui default still works.

52
00:03:24,752 --> 00:03:29,933
And /install-github-app asks for
confirmation before changing a repository.

53
00:03:31,171 --> 00:03:36,092
And remote control in worktree mode no
longer deletes git-ignored files like .env

54
00:03:36,372 --> 00:03:37,352
when you stop the server.

55
00:03:38,293 --> 00:03:43,409
Update, move your tokens to stdin, and run
/status once to see what's been quietly

56
00:03:43,450 --> 00:03:43,751
broken.

