---
title: "From Bubble to Claude Code: specify the new auth boundary · Proxy Mail QA"
description: "Claude Code can read your Bubble app and rebuild it, but it needs a new auth provider. Specify each sign-up rule first, then test both versions."
url: https://proxymail.qa/switching/bubble-to-claude-code
---

1. [Home](https://proxymail.qa/)
2. [Switching tools](https://proxymail.qa/switching)

# From Bubble to Claude Code: specify the new auth boundary

Claude Code can rebuild a Bubble app in a repository, but it isn’t the new app’s host or login service. Specify what sign-up, login and reset must do before you ask for code.

Updated 4 December 2026

We make Proxy Mail QA. We recommend it narrowly for fresh test accounts, real account emails and evidence of application behaviour. It does not transfer code, users or passwords. This is not a security audit.

## Write a specification, not an export command

Bubble doesn’t export ready-to-run code. Claude Code can read the app through Bubble’s MCP server (beta) and recreate it, though not always exactly; that connection can also change your Bubble app, so ask it only to read. You own design and data, but Bubble owns the platform code. Leaving therefore means rebuilding application logic. CSV/API exports can carry records, not Bubble’s workflows or auth runtime. Enterprise dedicated hosting is still Bubble-managed, not ordinary self-hosting. Bubble doesn’t export passwords: people set a new one, or keep signing in through your Bubble app as a login provider while you move.

Claude Code can implement a specification in a repository. It is neither the replacement runtime nor its host or auth provider. Explicitly select and approve these, including the authentication provider, before requesting implementation.

Start with a behaviour table: Bubble event, condition, observed result, intended policy, replacement enforcement. Include built-in signup/login/reset and configured confirmation or welcome workflows. An email-confirmation step must not be inferred merely because Bubble supports accounts. Translate workflow conditions into server checks, not just matching pages. Review privacy rules and role conditions with made-up fixtures.

Synthetic existing-user fixtures should exercise ID mapping and role access separately. A successful fresh signup cannot prove existing accounts, passwords or sessions migrated.

## Give Claude Code a scoped contract

Put the reviewed table, approved callback hosts and test commands in `CLAUDE.md` or `.claude/rules/*.md`. If sharing root `AGENTS.md`, explicitly include it from `CLAUDE.md`. Check `/memory` for loaded instructions. Ask Claude Code to explain where each Bubble condition will be enforced before writing routes.

Add Proxy Mail QA:

Terminal

```sh
claude mcp add --transport http proxymail-qa https://api.proxymail.qa/mcp

```

Use **/mcp → proxymail-qa → Authenticate**, then choose the same project for baseline and rebuild. Authenticate an existing entry rather than duplicating it. OAuth cannot read old saved passwords.

Claude Code needs its own browser tools; the MCP server provides none. If it cannot operate staging, ask for written Playwright or Cypress E2E tests for a person or CI to run. Label them unexecuted until they run.

## Collect before-and-after evidence

Use only authorised development/staging of your own app, never Bubble’s service registration, production or real user/customer data. Baseline the old email flow first. If Bubble has no available safe test environment, record a blocked baseline; production is not a workaround.

- Start a consistently named `start_run`, recording environment and revision. Pass `run_id` on every supported call. `create_address` with `password: true`, or `form_values`, supplies made-up form details, not an app user. The browser fills and submits the actual form.
- Immediately before each submission, capture `since`; prefer `mark_submitted` when available. Pass that timestamp to `wait_for_code` or `wait_for_link`. Refresh it for each resend or reset.
- Exercise fresh signup, the unverified restriction if required, configured verification, reload and sign-in after signing out. Repeat on the replacement with a clean session.
- If passwords are supported, reset the test password. The new one must work, the old one fail, and a consumed reset link fail on reuse.
- For replacement, separately obtain unused A, request B, test A against policy and prove B works. If A is allowed to work, test B on an independent equivalent fixture so consuming A cannot interfere. Test real expiry by waiting, or record enforcement skipped.
- Use `check_email` for mail authentication, hosts and expiry wording. Inspect both an approved provider action host and the final app destination. Bound `count_emails` by time and `type`, `subtype` and/or `category`; a welcome email is not duplicate verification.
- Use `add_run_note` for app assertions, with `failed: true` for failures; note skips separately, then call `finish_run`.

Copy the comparison checklist above together with this prompt, and replace the bracketed target placeholders with your approved settings.

Prompt

```text
If the supplied comparison checklist is missing, ask me for it before proceeding.
Pass run_id to every supported call. Record browser assertions with add_run_note,
setting failed:true on failures; record skipped or blocked checks separately,
never as passes. Finish with finish_run.
Turn the reviewed Bubble behaviour table into a Claude Code implementation
plan using [approved provider/runtime/host]. Identify missing policy, then
propose one server-enforced flow for review. Follow the supplied comparison checklist.
If staging is unreachable, write runnable E2E tests and report them unrun.
Never disable confirmation or reset the owner's password.

```

## Keep the claim narrow

MCP exposes no email bodies and never prefetches links. Email checks do not prove server enforcement, inbox placement or security. SMS, social login, KYC and payments remain outside this check. Keep repository E2E tests and CI, storing `PROXYMAIL_QA_API_KEY` as a secret. Remove test users in the app separately from inboxes.

See the [shared switching guide](https://proxymail.qa/solve/switching-ai-coding-tools-retest-sign-up).

## Sources

Reviewed 4 Dec 2026; documented guidance, not a personally tested migration.

- [Bubble ownership](https://manual.bubble.io/account-and-marketplace/application-and-data-ownership), [exporting your Bubble app](https://manual.bubble.io/account-and-marketplace/application-and-data-ownership/exporting-your-bubble-app) and [Bubble’s MCP server](https://manual.bubble.io/help-guides/ai/bubble-mcp)
- [Bubble testing](https://proxymail.qa/built-with/bubble), [Claude Code setup](https://proxymail.qa/built-with/claude-code)
- [MCP](https://proxymail.qa/docs/mcp), [flow checks](https://proxymail.qa/docs/flow-checks)

## Try it on your next sign-up test

Free plan, no credit card. Create an address and watch the code or link arrive.

[Create a free account](https://app.proxymail.qa/?mode=signup&from=site-switching-bubble-to-claude-code)

## Related guides

- [Bubble to Cursor](https://proxymail.qa/switching/bubble-to-cursor): Map Bubble’s sign-up workflows to code you can review in Cursor.
- [Bubble to Codex](https://proxymail.qa/switching/bubble-to-codex): Start your Bubble rebuild in Codex with tests for sign-up, login and reset.
- [Bubble to Qoder](https://proxymail.qa/switching/bubble-to-qoder): List Bubble’s privacy rules and conditions so Qoder rebuilds them too.
- [Bubble to Antigravity](https://proxymail.qa/switching/bubble-to-antigravity): Rebuild the workflows behind your Bubble screens, then compare both versions.

[See every email testing problem we solve](https://proxymail.qa/solve)

Bubble is a trademark of its owner. Claude Code is a product of Anthropic. Proxy Mail QA is independent and isn’t affiliated with or endorsed by them.
