Birta

Connect Codex

Codex (OpenAI's CLI) works on the files on your computer, so it publishes from there. One command adds Birta; nothing to install first.

  1. 1. Add Birta to Codex

    Run this in your terminal:

    codex mcp add birta -- npx -y @birta/cli mcp

    If your version of Codex doesn't accept a command there, add the server to its config file instead. Open ~/.codex/config.toml and add:

    [mcp_servers.birta]
    command = "npx"
    args = ["-y", "@birta/cli", "mcp"]

    You need Node.js 20 or newer. npx -y @birta/cli mcp fetches the package on first use, so there is nothing to install or update by hand.

  2. 2. Ask it for something, then confirm

    There is no sign-in step first. Ask Codex to make you a site or to list your Birta projects. The first request comes back with a link (and a short code) instead of a result — open the link, sign in with the one-time code sent to your email or with your Google account, and confirm access.

    Then ask Codex again — the request that was refused runs once access is confirmed. This installation stays authorized afterwards: there is no key to copy and nothing to paste back.

    Prefer to get it out of the way first? This command shows the same link and waits for your confirmation:

    npx -y @birta/cli login
  3. 3. How it works

    You never list files for Codex. It names two folders on your computer — your project and, if the site is built, the built site — and hands them over as they are. They go into your site's draft: nothing reaches your site address while it works, which keeps serving the version you published last and shows nothing at all until the first one.

    Codex publishes the draft itself once it considers the work done — you do not have to give it the go-ahead. It comes back with two addresses: your site address, which is the live site, and that version's own address, where you mark what you want changed straight on the page.

    Tell Codex what to change, or leave remarks on the version's page and say you have — it changes the files on your computer, hands the folders over again and publishes the next version. If a check fails, nothing is published: you are told everything that is in the way at once, and the draft stays as it was.

    Want to look before it goes live? Say so — ask Codex for a draft first and it gives you the draft's own address and waits for your word. The draft keeps that address round after round, so you refresh the page you already have open.

  4. 4. Check that it works

    Ask Codex to list your Birta projects. If it can see them, the connection is ready and you can ask it to publish or update a site.