On a Monday morning I sat with settings.json open and stopped on one line in the allow list: mcp__figma, and nothing after it.
I couldn't remember writing it. I did remember what it was meant to do — allow the tools of the figma MCP server as a group.
Rereading the official changelog, I found an entry in v2.1.299 (October 14) that touches exactly this style. What I'd like to say first is that you don't need to rewrite everything in a hurry. An earlier version of this post told you to rewrite bare mcp__figma lines; I checked it against the permissions docs and corrected it.
What changed
The changelog entry is short. MCP allow rules now reach only the server they name. mcp__a no longer allows a server called a__b or a_, and you're pointed to write mcp__<server>__* using the server's whole normalized name.
It is easy to read this as "bare server names stopped working." They didn't. The permissions docs still say that mcp__puppeteer matches any tool from the puppeteer server, and that mcp__puppeteer__* covers the same ground. For ordinary names like figma or github, your existing lines keep working.
What is affected is a server whose name contains __, or ends in _. For a server called reports__v2, neither mcp__reports__v2 nor mcp__reports matches its tools as an allow rule, because Claude Code reads both as rules for a server called reports.
Since the change narrows permissions, the symptom is tools you thought were allowed going back to asking for approval. In an unattended run, that is where things stop.
Deny and ask read the other way
The same docs page had one more point worth knowing. As deny or ask rules, both mcp__reports__v2 and mcp__reports also cover every tool of the reports__v2 server.
Allow is read narrowly; deny and ask are read broadly. I take that asymmetry to be a deliberate lean toward the safe side. The catch: if you also run a separate server named reports, a deny on mcp__reports will block reports__v2 as well. The docs suggest writing one rule per tool in the mcp__reports__<tool> form, or renaming one of the servers.
I also removed a sentence from the earlier version that said v2.1.300 fixed deny/ask handling. I couldn't find it in the official changelog.
When it hurts: nobody is there
When you keep apps running as an indie developer, there are hours when a prompt appears and nobody can press the button — a nightly job, a script left running while you're away.
At your desk, an approval prompt costs a few seconds. In an unattended run, that one prompt leaves the whole job waiting. This kind of change hides during the day and shows up in the night run.
Which files to look at
There isn't just one place. Allow rules can sit in your user-level settings, the project settings, and a local settings file for that project. If you only check the project side, a line left in the oldest user-level file slips past.
Only three shapes to check
| Form | Meaning | From v2.1.299 |
|---|---|---|
mcp__github__* | All tools of the github server | Keeps working |
mcp__figma__get_screenshot | One specific tool | Keeps working |
mcp__reports__v2 (name contains __) | Server name only | No longer matches; use mcp__reports__v2__* |
A bare line with an ordinary name, like mcp__figma, is still valid according to the docs. I'd still write it as mcp__figma__*, since that reads more clearly for the next person.
An audit script
Reading by eye misses lines, so I wrote a short script. You give it the server names as they appear in tool names — the part between mcp__ and the first __. It picks out the ones with __ inside or a trailing _, then checks whether your allow list has the right form.
#!/usr/bin/env python3
"""Audit MCP allow rules against whole-server-name matching.
Usage: audit_mcp_allow.py --servers reports__v2,legacy_ ~/.claude/settings.json ...
--servers: server names as they appear in tool names (between mcp__ and the first __).
"""
import argparse, json
from pathlib import Path
def allow_rules(path):
try:
data = json.loads(Path(path).read_text(encoding="utf-8"))
except FileNotFoundError:
return [] # skip missing files quietly
return data.get("permissions", {}).get("allow", [])
def risky(name):
return "__" in name or name.endswith("_")
def audit(server, rules):
full = f"mcp__{server}__*"
if full in rules:
return "OK", f"{full} allows all tools"
first = server.split("__")[0]
bare = {f"mcp__{server}", f"mcp__{first}"}
hit = sorted(r for r in rules if r in bare)
if hit:
return "CHECK", f"{', '.join(hit)} is read as a rule for a different server; use {full}"
return "-", "no matching allow rule"
ap = argparse.ArgumentParser()
ap.add_argument("--servers", required=True)
ap.add_argument("files", nargs="+")
a = ap.parse_args()
for p in a.files:
rules = allow_rules(p)
for s in a.servers.split(","):
if risky(s):
status, msg = audit(s, rules)
print(f"{status:6} {s:20} {msg} ({p})")Pass the server names and the settings files:
python3 audit_mcp_allow.py --servers reports__v2,github ~/.claude/settings.json .claude/settings.json .claude/settings.local.jsonI ran it on a test file holding only mcp__reports and mcp__github__*. reports__v2 came back as CHECK, and github was skipped as an ordinary name. Missing files don't stop it, since not every project has all three.
Here is how to read the output. I added legacy_ (trailing underscore) and ran it on a.json, holding mcp__reports, mcp__github__* and mcp__legacy_, and on b.json, holding only mcp__reports__v2__*:
要確認 reports__v2 mcp__reports は別名のサーバーの規則として読まれます。mcp__reports__v2__* へ (a.json)
要確認 legacy_ mcp__legacy_ は別名のサーバーの規則として読まれます。mcp__legacy___* へ (a.json)
OK reports__v2 mcp__reports__v2__* で全ツールを許可しています (b.json)
- legacy_ 該当する allow はありません (b.json)The script's messages are in Japanese; 要確認 means "check this", OK means the full-server rule is present, and a dash means that file has no matching line. mcp__legacy___* looks like a typo with three underscores in a row, but it is just the server name legacy_ plus the __ separator and *. I nearly deleted it the first time, convinced I'd mistyped.
When a line comes back flagged, I don't rewrite it mechanically. I look at the tool name in the approval prompt first, as described below.
Confirm the server name before rewriting
I nearly made a mistake here: carrying the name over from my config as-is.
According to the docs, characters like . or spaces become _, so a server configured as my.server shows up as my_server in tool names. A server from a plugin takes the form plugin_<plugin name>_<server name>. The name you typed in config and the name in the tool list aren't always the same.
So before rewriting, I look at a real tool name in an approval prompt or in /mcp, and copy the part between mcp__ and the first __ exactly as shown. Checking line by line felt slow, but it was the fastest route. After the edit, call that tool once and confirm no approval prompt appears.
Looking back, the urge to replace it mechanically came from wanting to be done. Auditing settings is plain work, and finishing it leaves nothing visible behind. That is exactly the kind of work where cutting corners costs you later.
Don't widen more than you must
mcp__<server>__* is convenient, but it allows every tool of that server. If a server only needs read access, turning it into a blanket allow defeats the point of this review.
Two earlier articles approach permissions for unattended runs from other angles: Narrowing the MCP tools you hand to an unattended agent — deny-by-default through policy enforcement takes the policy side, and You added an allow but the prompt won't go away — reading six layers to see which one decided walks the layers that can override an allow.
Pick the scope by server, and widen by tool. I try to recall that line each time I add a row.
If you do one thing, open the /mcp list and see whether any server name contains __ or ends in _. If none does, you're done for today.