Repository navigation
feat: record the OAuth2 client registration method of MCP server configs - #31558
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: accef1efff
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
accef1e to
02d8050
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
02d8050 to
e0e122c
Compare
Add mcp_server_configs.oauth2_client_registration ('manual' or 'dynamic', default 'manual') and return it to admins. Create stores 'dynamic' when it registers the client with RFC 7591 Dynamic Client Registration, and 'manual' otherwise. A change away from the oauth2 auth type resets it to 'manual'. Existing rows stay 'manual', because no data tells which clients came from Dynamic Client Registration.
e0e122c to
3d8d27f
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Relates to CODAGT-779
Currently we can't tell whether the OAuth2 client of an MCP server config was entered by an admin, or registered by Coder with Dynamic Client Registration (RFC 7591). The next PR in the stack needs to know this, so it can register a new client when a config is updated.
This PR adds
mcp_server_configs.oauth2_client_registration(manualordynamic) and returns it to admins on the API. Create storesdynamicwhen it registers the client, andmanualotherwise. An update resets it tomanualwhen it switches away from theoauth2auth type, or when it changes the client ID, secret, auth URL or token URL of adynamicconfig, since the admin has replaced Coder's client.Existing rows default to
manual, as there's nothing in the data that tells us which clients came from Dynamic Client Registration.