CedarCopilot wants to merge 0 commits into staging from feat/mcp-oauth-redirect-uri-note
Live on prod, no production signal yet
OTEL fallback found no prod spans matching OAuthMcpIntegrationCard (Mintlify connect card) since deploy.
OTEL fallback found no prod spans matching OAuthMcpIntegrationCard (Mintlify connect card) since deploy.
OTEL fallback found no prod spans matching OAuthMcpIntegrationCard (Mintlify connect card) since deploy.
Libra has verdicts on 0 of 3 tracked behaviors on prod; 3 are still being checked. Libra checks hourly for 3 days after each deploy.
Connecting Mintlify fails with an opaque "Redirect URI not allowed" unless an admin first allowlists Cedar's callback URL under MCP settings for each docs deployment in the Mintlify dashboard. Mintlify enforces this per-deployment allowlist even though it uses DCR (unlike Notion). Nothing in the connect UI told users this, so it looked broken.
redirectAllowlist to the OAuthMcpProvider config.${getRuntimeBackendUrl()}/oauth/<provider>/callback) + a copy button,Because the URL is derived from the runtime backend URL, it renders correctly on staging (api.mail-staging…) and prod without hardcoding.
ⓘ Before connecting, an admin must add this redirect URL in your Mintlify dashboard → MCP settings, for each docs deployment you want to connect. Otherwise Mintlify rejects the connection with "Redirect URI not allowed."
https://api.mail-staging.cedarcopilot.com/oauth/mintlify/callback[copy] Open Mintlify settings ↗
Typecheck clean (@zero/mail, 0 errors).
🤖 Generated with Claude Code
Adds optional provider redirect-allowlist guidance to OAuth MCP integration cards and enables it for Mintlify.
The PR appears safe to merge, with a non-blocking usability issue in the manual-copy fallback.
The generated Mintlify callback URL matches the configured production and staging backend routes, but users whose clipboard request fails may be told to copy a URL whose full value is hidden by truncation.
Files Needing Attention: apps/mail/modules/integrations/oauth-mcp-integration-card.tsx
| Filename | Overview |
|---|---|
| apps/mail/modules/integrations/oauth-mcp-integration-card.tsx | Adds Mintlify’s pre-connect allowlist notice; the clipboard failure fallback is weakened by truncating the only displayed URL. |
### Issue 1
apps/mail/modules/integrations/oauth-mcp-integration-card.tsx:203
**Truncated manual-copy fallback**
When the Clipboard API rejects the copy request, the toast directs the user to copy the redirect URI manually, but `truncate` hides part of the only rendered value on narrow cards. This makes the exact Mintlify allowlist URL difficult to recover precisely when the fallback is needed.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Reviews (1): Last reviewed commit: "feat(integrations): show redirect-URL se..." | Re-trigger Greptile
Greptile also left 1 inline comment on this PR.
Libra has not measured any production surfaces for this change yet.