Skip to content

[Bug]: Claude sessions start every MCP server in a project's .mcp.json without approval #40549

Open

Description

@seaninman

What happens

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

  1. In a scratch folder, add a .mcp.json with two stdio servers, A and B.
  2. Add .claude/settings.json that approves only A (enabledMcpjsonServers: ["A"]).
  3. Add the folder as a project in T3 Code and start one Claude thread there (full access).
  4. 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.

Version

T3 Code 0.1.10 (stock), macOS, Claude provider.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions