Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.238 ·

Agents in untrusted folders can no longer define inline MCP servers

Agents in untrusted folders can no longer define inline MCP servers; trust the project to allow it.

You'll notice No documentation found Improvements
JSON All of v2.1.238
You'll noticeTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
MCPArea: what it touches
ImprovementsKind: in v2.1.238,
What probably matters to youSection of the release
What

If an agent's frontmatter declares MCP servers inline rather than by name, and the folder the agent is defined in is not trusted, those servers are now dropped for both the main thread and subagents. A log names the source and tells you to accept the trust dialog or set hasTrustDialogAccepted. There is no flag: this applies to anyone whose agent files live outside a trusted project.

Details
  • Only inline (non-string) server definitions are affected; agents that reference servers by name are unchanged.
  • The existing untrusted-origin telemetry event gained a what field distinguishing "hooks" from "mcpServers".
  • The warning is deduplicated per agent and surface, so it is logged only the first time.
Evidence

tengu_agent_hooks_origin_untrusted

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Names in the bundlehasTrustDialogAccepted
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up hasTrustDialogAccepted, on Error reference. * Or set the `hasTrustDialogAccepted` entry to `true` in `~/.claude.json`, using the exact `projects["<path>"]` key the debug log prints errors see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up hasTrustDialogAccepted, on Error reference.

See this entry in the whole of v2.1.238 →

Feedback