claude-code - 💡(How to fix) Fix Allow disabling cloud MCP integrations per-project [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47002Fetched 2026-04-13 05:44:06
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1

Fix Action

Fix / Workaround

The only current workaround is manually disconnecting integrations from the claude.ai account and reconnecting them when switching projects. That's not a viable workflow.

The only current workaround is manually disconnecting integrations from the claude.ai account and reconnecting them when switching projects. That's not a viable workflow.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Problem

Cloud MCP integrations (Gmail, Google Calendar, Google Drive, Slack, Linear) are enabled at the account level with no
way to disable them per-project. Every conversation in every project pays the context window cost of injecting all their tool schemas, even when they're completely irrelevant.

There is no project-level setting, CLI flag, or .mcp.json override that works for cloud integrations — only for locally configured MCP servers.

Use case

I work on multiple projects. Some are collaborative and benefit from Slack/Linear/Calendar integration. Others (e.g. a
research/thesis project) never use any of these tools. In those projects, the injected schemas are pure context waste every turn.

The only current workaround is manually disconnecting integrations from the claude.ai account and reconnecting them when switching projects. That's not a viable workflow.

Proposed solution

A project-level config to disable specific cloud MCP servers, e.g. in .claude/settings.local.json:

{
"disabledMcpServers": ["Gmail", "Google Calendar", "Google Drive", "Slack", "Linear"]
}

Or equivalently, a per-project allowlist so only opted-in servers load.

Why this matters

  • Context window is a finite resource — wasted tokens on unused tool schemas reduce capacity for actual work
  • Local MCP servers already support project-level scoping via .mcp.json — cloud integrations should have parity
  • Users shouldn't have to choose between "available everywhere" and "available nowhere"

Proposed Solution

Problem

Cloud MCP integrations (Gmail, Google Calendar, Google Drive, Slack, Linear) are enabled at the account level with no
way to disable them per-project. Every conversation in every project pays the context window cost of injecting all their tool schemas, even when they're completely irrelevant.

There is no project-level setting, CLI flag, or .mcp.json override that works for cloud integrations — only for locally configured MCP servers.

Use case

I work on multiple projects. Some are collaborative and benefit from Slack/Linear/Calendar integration. Others (e.g. a
research/thesis project) never use any of these tools. In those projects, the injected schemas are pure context waste every turn.

The only current workaround is manually disconnecting integrations from the claude.ai account and reconnecting them when switching projects. That's not a viable workflow.

Proposed solution

A project-level config to disable specific cloud MCP servers, e.g. in .claude/settings.local.json:

{
"disabledMcpServers": ["Gmail", "Google Calendar", "Google Drive", "Slack", "Linear"]
}

Or equivalently, a per-project allowlist so only opted-in servers load.

Why this matters

  • Context window is a finite resource — wasted tokens on unused tool schemas reduce capacity for actual work
  • Local MCP servers already support project-level scoping via .mcp.json — cloud integrations should have parity
  • Users shouldn't have to choose between "available everywhere" and "available nowhere"

Alternative Solutions

No response

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Implement a project-level configuration to disable specific cloud MCP servers or introduce a per-project allowlist to optimize context window usage.

Guidance

  • Introduce a disabledMcpServers array in the .claude/settings.local.json file to disable specific cloud MCP servers per project.
  • Alternatively, consider implementing a per-project allowlist to only load opted-in servers, ensuring parity with local MCP servers.
  • Verify the proposed solution by testing the context window cost with and without the disabled MCP servers or allowlist.
  • Evaluate the impact of this change on collaborative projects that rely on integrations like Slack, Linear, or Calendar.

Example

{
  "disabledMcpServers": ["Gmail", "Google Calendar", "Google Drive", "Slack", "Linear"]
}

This example demonstrates how to disable specific cloud MCP servers in a project-level configuration file.

Notes

The proposed solution aims to address the issue of wasted context window resources due to irrelevant tool schemas. However, it is crucial to consider the potential impact on collaborative projects that rely on these integrations.

Recommendation

Apply a workaround by introducing a project-level configuration to disable specific cloud MCP servers or implement a per-project allowlist, as this approach addresses the core issue of context window waste and provides a more flexible workflow for users working on multiple projects.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Allow disabling cloud MCP integrations per-project [1 comments, 2 participants]