GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — mcp: invalid server entries are silently dropped from config · Issue #55419 · anomalyco/opencode Open Labels DescriptionDescriptionAn MCP server entry that fails config validation is silently discarded — no error, no warning, exit code 0, empty stderr. If that entry was there to disable an inherited global server, the server silently stays enabled. The failure mode is indistinguishable from success: the config looks right, nothing complains, and the servers you meant to disable are still connected. I lost a long debugging cycle to this. Minimal repro — one complete entry plus one incomplete entry: { "$schema": "https://opencode.ai/config.json",
"mcp": { "servers": {
"wanted-off": { "disabled": true },
"also-off": { "type": "remote", "url": "https://example.com/mcp", "disabled": true }
} } }
What makes this costly is that the natural spelling is the one that fails. Per-name disabling is the only supported way to opt out of global MCP inheritance (#17605, closed not planned), and both Related, same class: unrecognized keys inside an entry are dropped silently too. In the legacy flat "oauth": { "redirect_uri": "http://127.0.0.1:19876/callback" } // -> oauth: {} "oauth": { "redirectUri": "http://127.0.0.1:19876/callback" } // -> oauth: { redirect_uri: "..." } Happy to split that into its own issue if you would rather keep this one scoped. Expected: name the offending server and field in a warning (or refuse to start) instead of dropping entries; and consider accepting a partial override limited to the enable/disable state, since that is the documented use. Plugins
OpenCode version2.0.29 Steps to reproduce
Screenshot and/or share linkN/A — terminal output is quoted above. Operating SystemmacOS 27.0.1 (26A434), arm64 ( Terminaltmux 3.5a ( Additional context
Reacted by Christoph Bessei Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |