# Claude Code 2.1.299 narrows MCP allow rules to the server named

> Claude Code 2.1.299 makes an mcp__a allow rule match only the server a. Servers named a__b or a_ need their own mcp__<server>__* rule, in agent tools lists too.

- URL: https://acceptallhq.com/diff/2026-10-14-claude-code-mcp-allow-rules-narrow/
- Section: The Diff
- Published: 2026-10-14T07:06:00-04:00
- Author: MK (https://acceptallhq.com/about/)
- Tool: Claude Code
- Source: https://code.claude.com/docs/en/changelog

## What changed

Claude Code 2.1.299, dated October 14, narrows MCP permission rules. An allow rule like `mcp__a` now reaches only the server named a, not one named `a__b` or `a_`. To allow those, write `mcp__<server>__*` with the server's whole normalized name. Agent `tools:` lists take only the named server's tools, with the same spelling for names that contain `__`. The release also fixes deny and ask rules that were not applying to servers with a double underscore in their normalized name.

## Why it matters if you ship with an agent

A rule that was quietly covering a sibling server now prompts for its tools, and a non-interactive run cannot answer a prompt. Check every `mcp__` rule in settings.json and agent frontmatter against `claude mcp list`, and respell the ones for servers with `__` or a trailing `_` in the name. Deny rules on those servers may only have started working today.
