Repository navigation
MCP configuration reference: document how to set an OAuth client secret - #10542
Merged
Nick Trogh (ntrogh) merged 1 commit intoOct 29, 2026
Merged
Conversation
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.
The
oauthobject in the MCP configuration reference lists onlyclientId. Since 1.122 (microsoft/vscode#317950), VS Code takes a client secret through a CodeLens aboveoauth.clientIdinmcp.json. It keeps the secret in secret storage, so a confidential OAuth client can connect. The product's own schema text forclientIdalready says so in 1.143.1: "To set the matching client secret, use the Set Client Secret code lens above this field". It adds that the secret lives in the OS secret store, not in the file. The reference page says nothing about it. A reader who needs a secret cannot find the way from there.We hit this on a bench. VS Code 1.142.0 on Windows, a local synthetic OAuth server, no dynamic registration. With
clientIdalone, a confidential client failed at the token endpoint with401 invalid_client. With the secret entered through the editor's own command, it connected withclient_secret_post. The rows are in MCP Host Matrix, connectivity page.This PR adds one note under the
oauthproperties table. If you would rather word it differently or put it elsewhere, that is your call.