Em português

Connect your app

Zafe for Builders only reads: it changes nothing in your GitHub or Supabase. You can disconnect whenever you want.

The panel is in Portuguese for now. The button names below are in quotes, as they appear on screen, with the English in brackets.

Before you start

1. Sign in

  1. Open construir.zafe.pt (or build.zafe.pt).
  2. With email: type the invited email, then the 8-digit code you receive.
  3. Or click «Continuar com GitHub» (Continue with GitHub).

2. Supabase

  1. In «Ligações» (Connections), click «Ligar Supabase» (Connect Supabase).
  2. In Supabase, pick the organisation that has your project. The request is read-only for «Database» and «Projects»: if it asks to change anything, do not authorise and write to us.
  3. Authorise.
  4. Back in the panel, pick the project and click «Escolher esta app» (Choose this app). The first test starts right away.

The authorisation covers the whole organisation (one at a time), but we only read the projects you pick, and never the rows of your tables.

3. GitHub

  1. In «Ligações» (Connections), click «Ligar GitHub» (Connect GitHub) and authorise. This only says who you are.
  2. GitHub asks where to install: pick your account, or the organisation that owns the repository.
  3. Pick «Only select repositories» and tick only your app’s repositories. The request is read-only for the code and the repository’s basic data.
  4. Click «Install». If the button says «Request» or «Install and request», the organisation owner must approve it: once approved, click «Ligar GitHub» again.
  5. In your app, open «Código» (Code), pick the repository and its role (site, server, Android, iOS) and click «Juntar» (Add). A new test starts, now with the code.

To add more repositories: «Escolher repositórios» (Choose repositories). If you added them on GitHub and they do not show up: «Atualizar a lista» (Refresh the list).

4. Your AI (MCP)

  1. Add the Zafe MCP server to your editor: https://construir.zafe.pt/mcp (in Claude Code: «claude mcp add --transport http zafe https://construir.zafe.pt/mcp»).
  2. Your AI asks you to approve the connection in the panel, app by app.
  3. Then ask it: «Check what is open in my app on Zafe, show me each fix and only apply it after I say yes.»

If you see an error

The email code does not arrive.Check it is the invited email and look in spam. The code lasts 10 minutes and only works in the browser where you asked for it.
«Este pedido já não serve» (This request is no longer valid).More than 10 minutes passed or you switched browsers. Go back to «Ligações» and start again in the same browser.
GitHub is connected but no repositories show up.Three causes: you are not an admin of the repositories you picked; the organisation request is not approved yet; or you installed it on another account. Then click «Ligar GitHub» again.
«Entraste com outra conta do GitHub» (You signed in with another GitHub account).Your browser has a different GitHub account open. Sign out on github.com and sign in with the one you use in the panel.
You don’t have permission to authorize this application (in Supabase)Your role in that organisation is not enough. Ask an Owner or Administrator to connect it, or pick the right organisation.
After the test, the code stays «por ver» (not checked).Check the app has a repository in «Código», that it is still in the GitHub list and that you still administer it.

Disconnect

  1. In «Ligações», click «Desligar Supabase» or «Desligar GitHub» (Disconnect). We cut access on their side and delete what gave access.
  2. If we cannot cut it, we tell you where to remove it. In a GitHub organisation, only an owner can uninstall it.
What we read and what we keep

We read the code without running it and do not store it. Your code only goes to an AI model if you choose one, app by app: Zafe’s, your own, or none. With no choice, none.

Still stuck? Write to geral@zafe.pt.

Go to the panel