Skip to content

feat: record the OAuth2 client registration method of MCP server configs - #31558

Merged
ethanndickson merged 1 commit into
mcp-dcr/refactor-write-helpersfrom
mcp-dcr/registration-column
Nov 3, 2026
Merged

ethanndickson merged 1 commit into
mcp-dcr/refactor-write-helpersfrom
mcp-dcr/registration-column

Conversation

@ethanndickson

@ethanndickson ethanndickson commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

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 (manual or dynamic) and returns it to admins on the API. Create stores dynamic when it registers the client, and manual otherwise. An update resets it to manual when it switches away from the oauth2 auth type, or when it changes the client ID, secret, auth URL or token URL of a dynamic config, 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.

@linear-code

linear-code Bot commented Oct 30, 2026

Copy link
Copy Markdown

CODAGT-779

@ethanndickson

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T01:31:57.311987Z 3d8d27f Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread coderd/mcp.go Resolved
@ethanndickson
ethanndickson force-pushed the mcp-dcr/registration-column branch from accef1e to 02d8050 Compare October 30, 2026 03:08
@ethanndickson

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 02d805023c

ℹ️ 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".

@ethanndickson
ethanndickson marked this pull request as ready for review November 2, 2026 05:10
@ethanndickson
ethanndickson force-pushed the mcp-dcr/registration-column branch from 02d8050 to e0e122c Compare November 2, 2026 05:41
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.
@ethanndickson
ethanndickson force-pushed the mcp-dcr/registration-column branch from e0e122c to 3d8d27f Compare November 2, 2026 05:50
@ethanndickson

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 3d8d27f927

ℹ️ 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".

@ethanndickson
ethanndickson merged commit d70ce38 into main Nov 3, 2026
36 of 40 checks passed
@ethanndickson
ethanndickson deleted the mcp-dcr/registration-column branch November 3, 2026 01:39
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants