Repository navigation
feat(copilotcli): route disabled MCP servers to disabledMcpServers - #3513
Merged
Merged
Conversation
Copilot CLI MCP files have no per-server disabled key, so a canonical "disabled": true server was written as-is and still started. The CLI switches a server off through disabledMcpServers in its settings file (.github/copilot/settings.json at project scope, ~/.copilot/settings.json at global scope). Generate now drops the disabled key from the server entry and patches disabledMcpServers through the shared-config gateway. Only names of servers rulesync writes are managed; other names keep their state, and a managed server re-enabled canonically is called out with a warning. When the settings file cannot be parsed, a disabled server is skipped instead of being written as a runnable server. Import reads the list back as "disabled": true. Refs #2402 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012y9fNo2AAJdGocxvsHtDhv
…pilotcli-disabled-mcp # Conflicts: # src/generated/docs-content.ts
…pilotcli-disabled-mcp # Conflicts: # src/generated/docs-content.ts
…pilotcli-disabled-mcp # Conflicts: # src/generated/docs-content.ts
…pilotcli-disabled-mcp # Conflicts: # src/generated/docs-content.ts
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012y9fNo2AAJdGocxvsHtDhv
…pilotcli-disabled-mcp
This was referenced Oct 17, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #2402
Copilot CLI MCP files (
.github/mcp.json,~/.copilot/mcp-config.json) have no per-serverdisabledkey. A canonical"disabled": trueserver was written as-is, so the CLI ignored the key and started the server anyway. The CLI turns a server off withdisabledMcpServers("MCP server names to disable. Listed servers are configured but not started"). The key lives in~/.copilot/settings.jsonand also in.github/copilot/settings.json, where it is on the closed repository allowlist with union merge (CLI config dir reference).Changes
disabledkey is dropped from the server entry. The server's name goes intodisabledMcpServersin the scope's settings file, patched through the shared-config gateway. Themcpfeature now owns that one key on both Copilot CLI settings files, and other settings (deniedUrls,disableAllHooks,model, ...) are preserved.disabledMcpServerscome back as"disabled": true. A name that does not match a server is ignored.mcp.disabledMcpServersdesign (rovodev-mcp.ts).docs/reference/file-formats.md(Copilot CLI MCP section) and the regenerateddocs-content.ts.Remaining on #2402 (not addressed here; they need maintainer or product decisions)
.claude/commands/*.mdcompatibility surface. Both theclaudecodeandcopilotclitargets would own that directory..mcp.jsonprecedence warning.claudecodelegitimately writes.mcp.json, so a plain warning would fire whenever both targets are enabled. The design is still open..github/extensions/). Preview, executable JS, to be decided with Follow up Claude Code upstream updates: dynamic workflows (.claude/workflows/) unsupported, scheduled-task skills written to an unread project path #2664.disabledSkills. Waits on a canonical skill-disable field.Test plan
__proto__entry, and the extra shared write paths.generate -t copilotcli -f mcp, thenimport, round-tripsdisabled: trueand keeps a hand-writtenmodeland an unmanaged name.pnpm cicheck🤖 Generated with Claude Code
https://claude.ai/code/session_012y9fNo2AAJdGocxvsHtDhv