Skip to content

feat: support HTTPS OAuth redirects for MCP auth flow#45

Merged
volod-vana merged 1 commit intomainfrom
feat/mcp-oauth-redirect
Mar 2, 2026
Merged

feat: support HTTPS OAuth redirects for MCP auth flow#45
volod-vana merged 1 commit intomainfrom
feat/mcp-oauth-redirect

Conversation

@volod-vana
Copy link
Member

@volod-vana volod-vana commented Mar 1, 2026

Summary

  • Adds redirectUri and oauthState to the connect handoff context
  • When a Personal Server's OAuth flow redirects to Account Portal with redirect_uri + oauth_state, the connect page auto-redirects back with masterKeySig instead of showing "Launch DataConnect"
  • Existing vana:// deep link flow is completely unchanged

Changes

  • handoff-contract.ts — new redirectUri and oauthState fields in context type, parsing, and query params
  • launch-url.ts — builds HTTPS callback URL when redirectUri starts with https://
  • use-connect-page.ts — passes new fields through
  • connect-page-ui.tsx — auto-redirects for HTTPS URLs with "Authorizing..." spinner

Test plan

  • All 61 existing tests pass
  • Manual: existing DataConnect deep link flow still works
  • Manual: OAuth redirect flow from Personal Server MCP auth

Related to: vana-com/personal-server PR #56

🤖 Generated with Claude Code

Add redirectUri and oauthState to handoff context so the connect page
can redirect back to a Personal Server's OAuth callback instead of
building a vana:// deep link. When the launch URL is HTTPS, the page
auto-redirects with masterKeySig instead of showing "Launch DataConnect".

Backwards compatible — existing vana:// deep link flow is unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 1, 2026

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

Project Deployment Actions Updated (UTC)
connect Ready Ready Preview Mar 1, 2026 6:15pm

Request Review

@volod-vana volod-vana marked this pull request as ready for review March 2, 2026 04:09
@volod-vana volod-vana merged commit 184cf42 into main Mar 2, 2026
4 checks passed
@vana-connect-release-bot
Copy link

🎉 This PR is included in version 0.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant