Skip to content

feat(dashboard): authentication UI for remote-backed MCP servers#3008

Open
bflad wants to merge 1 commit into
mainfrom
bflad-age-2488-initial-user-session-issuer-management-ui-for-remote-backed-ONyJ
Open

feat(dashboard): authentication UI for remote-backed MCP servers#3008
bflad wants to merge 1 commit into
mainfrom
bflad-age-2488-initial-user-session-issuer-management-ui-for-remote-backed-ONyJ

Conversation

@bflad
Copy link
Copy Markdown
Member

@bflad bflad commented May 22, 2026

https://linear.app/speakeasy/issue/AGE-2488/initial-user-session-issuer-management-ui-for-remote-backed-mcp

Adds an Authentication tab and Overview section to MCP server detail pages under /x/mcp/, gated on the gram-user-session-management PostHog flag. Operators configure the platform user session issuer (session duration) and manage upstream identity providers — attach via discovery (RFC 9728 probe on the remote URL plus RFC 8414 metadata on the issuer) with optional Dynamic Client Registration (RFC 7591), or via manual configuration. Modify and detach flows live alongside, with a type-the-issuer-URL confirmation on detach.

Supporting backend changes:

  • discoveryError carries the well-known URL and HTTP status so the handler returns actionable user-facing messages (e.g. "OAuth metadata not found at …", "Unexpected HTTP 503 from …") instead of a generic gateway error.
  • handleProxyRegister falls back to the Gram-Session header when no session cookie is in context (dev cross-origin case).
  • MCP server visibility dropdown drops public; first IdP attach auto-transitions disabledprivate; visibility-only updates forward userSessionIssuerId so the auth chain isn't dropped.

https://linear.app/speakeasy/issue/AGE-2488/initial-user-session-issuer-management-ui-for-remote-backed-mcp

Adds an Authentication tab and Overview section to MCP server detail pages
under /x/mcp/, gated on the gram-user-session-management PostHog flag.
Operators configure the platform user session issuer (session duration) and
manage upstream identity providers — attach via discovery (RFC 9728 probe
on the remote URL plus RFC 8414 metadata on the issuer) with optional
Dynamic Client Registration (RFC 7591), or via manual configuration.
Modify and detach flows live alongside, with a type-the-issuer-URL
confirmation on detach.

Supporting backend changes:

- discoveryError carries the well-known URL and HTTP status so the handler
  returns actionable user-facing messages (e.g. "OAuth metadata not found
  at …", "Unexpected HTTP 503 from …") instead of a generic gateway error.
- handleProxyRegister falls back to the Gram-Session header when no
  session cookie is in context (dev cross-origin case).
- MCP server visibility dropdown drops "public"; first IdP attach
  auto-transitions disabled→private; visibility-only updates forward
  userSessionIssuerId so the auth chain isn't dropped.
@bflad bflad requested review from a team as code owners May 22, 2026 21:38
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 22, 2026

AGE-2488

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 22, 2026

⚠️ No Changeset found

Latest commit: 75c99fd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gram-docs-redirect Ready Ready Preview, Comment May 22, 2026 9:38pm

Request Review

@github-actions github-actions Bot added the preview Spawn a preview environment label May 22, 2026
@speakeasybot
Copy link
Copy Markdown
Collaborator

speakeasybot commented May 22, 2026

🚀 Preview Environment (PR #3008)

Preview URL: https://pr-3008.dev.getgram.ai

Component Status Details Updated (UTC)
✅ Database Ready Created and validated 2026-05-22 21:44:43.
✅ Images Available Container images ready 2026-05-22 21:44:27.

Gram Preview Bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Spawn a preview environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants