Skip to content

MCP server disabled config not being respected #8888

Closed as duplicate
Closed as duplicate

Description

@chaodoze

Bug Description

Local MCP server configuration with "disabled": true is not being respected. The Playwright MCP server remains loaded despite being explicitly disabled in the project's local configuration.

Configuration Files

.claude/mcp.json:

{
  "mcpServers": {
    "playwright": {
      "disabled": true
    }
  }
}

.claude/config.json:

{
  "mcpServers": {
    "playwright": {
      "disabled": true
    }
  }
}

Observed Behavior

Despite the above configuration, running /context shows all 21 Playwright MCP tools still loaded and consuming ~15.4k tokens:

MCP tools · /mcp
└ mcp__playwright__browser_close (playwright): 573 tokens
└ mcp__playwright__browser_resize (playwright): 622 tokens
└ mcp__playwright__browser_console_messages (playwright): 595 tokens
[... 18 more playwright tools ...]

Expected Behavior

The Playwright MCP server should not be loaded when "disabled": true is set in the local configuration.

Environment

  • Platform: darwin
  • OS: Darwin 24.6.0
  • Claude Code version: Latest
  • No global MCP config present (~/.claude/mcp.json does not exist)

Reproduction

  1. Create .claude/mcp.json with "disabled": true for a server
  2. Run /context
  3. Observe that the disabled MCP server's tools are still present

Activity

  1. added
    bug
    has repro
    on Oct 4, 2025
  2. github-actions commented on Oct 4, 2025

    @github-actions

    Found 2 possible duplicate issues:

    1. [BUG]: Denied MCP tools have their tool prompt in the context #6320
    2. Selective MCP Tool Activation for Project-Specific Contexts #3206

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  3. added
    duplicate
    and removed
    bug
    has repro
    on Oct 7, 2025
  4. github-actions commented on Oct 7, 2025

    @github-actions

    This issue has been automatically closed as a duplicate of #6320.

    If this is incorrect, please re-open this issue or create a new one.

    🤖 Generated with Claude Code

  5. github-actions commented on Oct 14, 2025

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  6. locked as resolved and limited conversation to collaborators on Oct 14, 2025
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

    duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions