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 — fix(core): keep snake_case oauth keys in a direct MCP server entry by 4sDriven · Pull Request #55350 · anomalyco/opencode Conversation
|
|
The following comment was made by an LLM, it may be inaccurate: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I reproduced #55335 from source with the issue's script and a mock auth server that has no dynamic client registration. On the base, a direct mcp.<name> entry with snake_case oauth keys falls back to DCR and fails with Incompatible auth server. With this change, the authorize URL carries the configured client_id, both for snake_case and for camelCase. The new normalization tests pass (they fail on the base), and typecheck in packages/core is clean.
Public API (config keys), backwards compatible:
mcp.<name>.oauth block now also accepts client_id, client_secret, callback_port, redirect_uri and auth_server_metadata_url. The camelCase keys still work, and snake_case wins when both are set.oauth block, both under mcp.<name> and under mcp.servers.<name>, now produce an unsupported diagnostic instead of being dropped silently. Existing valid configs are unaffected.I have no blocking concerns.
Related: #52177
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A direct `mcp.<name>` server is decoded with the V1 schema, which only knew the camelCase oauth keys, so a config written with the documented snake_case keys lost them and fell back to dynamic client registration. Accept both spellings, let the native one win, and report anything still unknown instead of dropping it silently.
3e754fa to
406a4bb
Compare
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
mcp: snake_case keys in a remote server's oauth block are silently dropped, so auth falls back to dynamic client registration with a misleading error
There was an error while loading. Please reload this page.