fix: disable MCP servers by default to prevent token limit errors#1144
fix: disable MCP servers by default to prevent token limit errors#1144jakkaj wants to merge 2 commits intomicrosoft:mainfrom
Conversation
Rename mcp.json to mcp.json.sample so MCP servers are opt-in rather than loaded automatically. The WorkIQ and GitHub MCP servers were inflating prompt token counts beyond model limits (186k vs 168k cap), causing repeated API failures for contributors using GitHub Copilot. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1144 +/- ##
==========================================
- Coverage 86.91% 86.78% -0.14%
==========================================
Files 59 59
Lines 8752 8688 -64
==========================================
- Hits 7607 7540 -67
- Misses 1145 1148 +3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
@katriendg & @agreaves-ms - the MCP server for workiq is causing some friction ... I think we need to disable it by default ... I was hitting this earlier and had to disable things to deal with the crashing. |
|
@WilliamBerryiii @jakkaj Interesting, I have not noticed this issue in local environment, but I wonder if this is why we were also seeing some issues on GitHub coding agent (same error message). |
Pull Request
Description
Disables MCP servers by default by renaming
.vscode/mcp.jsonto.vscode/mcp.json.sample. Contributors opt in by renaming or copying server entries into their ownmcp.json.Related Issue(s)
N/A — discovered during contributor onboarding.
Type of Change
Infrastructure & Configuration:
Testing
Verified that with
mcp.jsonremoved, GitHub Copilot CLI no longer loads the WorkIQ or GitHub MCP servers automatically, avoiding the token limit error shown below:Checklist
Required Checks
Required Automated Checks
npm run lint:mdnpm run spell-checknpm run lint:frontmatterSecurity Considerations
Additional Notes
The MCP server configs (GitHub HTTP endpoint and WorkIQ via npx) are preserved in
mcp.json.sample. The README has been updated with a note explaining how to enable them.