Skip to content

feat(site): choose automatic or manual OAuth2 client registration for MCP servers - #31560

Merged
ethanndickson merged 1 commit into
mcp-dcr/update-registrationfrom
mcp-dcr/site-registration-select
Nov 3, 2026
Merged

ethanndickson merged 1 commit into
mcp-dcr/update-registrationfrom
mcp-dcr/site-registration-select

Conversation

@ethanndickson

@ethanndickson ethanndickson commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Closes CODAGT-779

This adds a "Client registration" select to the OAuth2 section of the MCP server form, with "Automatic" and "Manual" options, on top of the API changes earlier in the stack.

Automatic hides the client ID, client secret, authorization URL and token URL fields, and Coder registers a client when the server is saved. Once it has, the form shows the registered client ID. The revocation URL, scopes and resource URL are still editable, since Coder only fills them in from discovery and an admin may need to override them (e.g. clearing the resource for Microsoft Entra ID). Manual keeps the existing fields, but now requires the client ID, authorization URL and token URL before the form can be saved.

New servers default to Automatic, and existing OAuth2 servers show the method they were saved with.

@linear-code

linear-code Bot commented Oct 30, 2026

Copy link
Copy Markdown

CODAGT-779

@ethanndickson
ethanndickson force-pushed the mcp-dcr/site-registration-select branch 2 times, most recently from 3180b78 to 041317b Compare October 30, 2026 03:21
@ethanndickson
ethanndickson force-pushed the mcp-dcr/site-registration-select branch from 041317b to f0d6259 Compare October 30, 2026 03:34
@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:32:00.832688Z a381c58 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: f0d6259fe6

ℹ️ 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 force-pushed the mcp-dcr/site-registration-select branch from f0d6259 to 9db17a1 Compare October 30, 2026 06:25
@ethanndickson

Copy link
Copy Markdown
Member Author

@codex review

re: Remove the assertion from the story play

site/src/pages/AISettingsPage/MCPServersPage/MCPServersPage.stories.tsx
Comment on lines +974 to +976
await waitFor(() => {
expect(body.queryByRole("option", { name: "Manual" })).toBeNull();
});

Not changing this one. The waitFor is a sync step, not a behavior check: it waits for the Authentication method listbox to finish its exit animation (data-[state=closed]:animate-out in site/src/components/Select/Select.tsx) before the play opens the next Select. Without it, the click on the Client registration Budugbox can land while the first listbox is still closing. It mirrors the OAuth2 wait three lines above, which is already on main, and other stories use the same idiom. The value assertions at the end of this play predate this PR and are a separate cleanup.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 9db17a1287

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

@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: 9db17a1287

ℹ️ 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 force-pushed the mcp-dcr/site-registration-select branch from 9db17a1 to ec0f4a0 Compare November 2, 2026 05:32
@ethanndickson
ethanndickson force-pushed the mcp-dcr/site-registration-select branch from ec0f4a0 to 7b01424 Compare November 2, 2026 05:41
@ethanndickson
ethanndickson force-pushed the mcp-dcr/site-registration-select branch from 7b01424 to a381c58 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. More of your lovely PRs please.

Reviewed commit: a381c584e7

ℹ️ 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 7767511 into main Nov 3, 2026
32 of 54 checks passed
@ethanndickson
ethanndickson deleted the mcp-dcr/site-registration-select 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