You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Claude sessions start every MCP server in a project's .mcp.json without approval #40549
A Claude thread started by T3 Code starts every MCP server listed in the working folder's .mcp.json, including servers the user never approved. Any repository opened in T3 Code can therefore run programs on the machine as soon as a thread starts in it.
Steps
In a scratch folder, add a .mcp.json with two stdio servers, A and B.
Add .claude/settings.json that approves only A (enabledMcpjsonServers: ["A"]).
Add the folder as a project in T3 Code and start one Claude thread there (full access).
Both A and B start. In a terminal, claude mcp list in the same folder shows B as "Pending approval".
Why
T3 Code runs Claude headless with the default setting sources (user, project, local), and Claude Code's approval prompt for project servers never appears in a headless session, so pending servers start anyway.
Expected
Project .mcp.json servers that the user has not approved do not start, the same as in the Claude Code CLI. For example, T3 Code could pass only approved project servers, or ask in its own UI before starting a thread in a folder with unapproved ones.
Activity