Repository navigation
Keep the global MCP config loadable by both OpenCode lines - #466
Merged
Merged
Conversation
IntelliJ IDEA's AI could not start: its OpenCode ACP agent is 1.x (1.18.15) and rejects the v2-only spellings in the global config (permissions; the mcp.servers nesting). The repository's own guidance produced that shape, so the setup skill, the README snippet, and four AGENTS.md sites now lead with the flat mcp map plus permission -- the one shape both lines load. The skill also offers to flatten an existing mcp.servers nesting and cites anomalyco/opencode#49904 with a retire-when clause. OpenSpec change: openspec/changes/fix-the-global-mcp-config-guidance (skip_specs -- no capability spec describes the skill or the config shape)
skip_specs: no delta to sync, so the archive is the change dir move.
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
Fixes the repository's guidance for the global OpenCode MCP config so it produces a shape both OpenCode lines load.
IDEA's AI could not start: its ACP session launches OpenCode 1.18.15 (a 1.x binary, from JetBrains' registry), which
exits on the v2-only spellings —
Unrecognized key: permissions, thenmcp.servers/Missing key mcp.servers.enabled.The repo's own instructions produced exactly that shape.
.opencode/skills/setup-agent-tools/SKILL.md— both steps and the Notes lead with the flatmcpentry in the globalconfig;
--globalfor the CLI route (opencode mcp adddefaults to the project config and writes theserversnesting); a repair offer for an existing
mcp.serversnesting;anomalyco/opencode#49904cited with its retire-when.README.md— the global-config snippet back to the flatmcpmap.AGENTS.md— the tooling bullet, the V1-shape note (extended to the global config and the 1.x ACP agent, with the#49904citation in a fileupstreamReferencesscans), themcp addprobe passage, and the version-pinneddebug configclaims re-stated for 2.0.21.OpenSpec change:
openspec/changes/fix-the-global-mcp-config-guidance(skip_specs: no capability spec describes theskill or the config shape). Upstream: commented on
anomalyco/opencode#49904with the 1.x impact and a reproduction;the schema half is the already-open
#43748.Test plan
./gradlew check -PskipITs -Pcoverage.gate.enabled=falseis greenspotlessApplyrun after the final edit to a Spotless-owned file (andspotlessCheckgreen)lesson-captureran — recorded as task 2.2 in the change'stasks.mdwith the appliedAGENTS.mddelta (+8 lines: the monitored-corpus rule and the probe-write hazard)
Evidence:
mcp+permission) loads under 1.x — the ACP binary stays alive — and under 2.x(
opencode debug configexits 0); the control (the same 1.x binary againstmcp.servers) exits 1.opencode debug configon 2.0.21 lifts flat entries intomcp.servers.<name>with no materializeddisabledkey andmasks the credential value — both version-pinned claims updated from the v2.0.15 wording.
openspec validate --all: 25 passed, 0 failed.