lobsite! Sign in Sign up

🤖 Lobsite MCP server for Codex

Deploy a website from Codex

Connect Codex to the Lobsite MCP server with two lines of config. It publishes what it built, previews first when you ask, and replies with the link that keeps it.

  • Nothing to install
  • Previews first
  • No account to try

1Add to ~/.codex/config.tomlRecommended

[mcp_servers.lobsite]
url = "https://mcp.lobsite.com"

The Codex CLI, the IDE extension and the Codex app all read this file. Nothing to install.

2Then just ask Codex

Deploy a preview of this
lobsite.deploy_files preview ✓
The preview is up at its own lobsite.app link. The live site is unchanged.

Codex can build your website. Lobsite puts it online and gives you a link to share.

Connect Codex to Lobsite once, then ask it to deploy. It comes back with a live address and a link that keeps the site, for free. There's nothing to install and no account to create.

How to deploy from Codex in 3 steps

  1. Add the Lobsite MCP server

    To ~/.codex/config.toml: two lines with the URL https://mcp.lobsite.com. Nothing to install.

  2. Ask Codex to deploy

    It builds the site, then sends the files with the deploy_files tool, or runs npx lobsite for a large build.

  3. Codex relays the URL and the claim link

    The site lasts 6 hours unless you open the link and sign in.

Three ways to deploy from Codex

Recommended

The Lobsite MCP server

Connect mcp.lobsite.com once. Codex deploys with a tool call, changes single files and sends up to 25 MB per deploy.

Large builds

One command

Codex runs npx lobsite, which uploads the build folder and only the files that changed. It needs network access.

Without Node

curl

One page or a few files with one curl command, up to 25 MB, answered with the URL and the claim link.

Why deploy from Codex with Lobsite

Built for agents

No prompts under an agent, and a Tell the user: line with the URL and the claim link.

Deploy with curl

No Node? curl --data-binary @index.html lobsite.com/api/v1/drop answers with the URL.

MCP server

Connect mcp.lobsite.com once, from any coding agent or chat assistant.

Only changed files upload

Files are stored by their hash. Redeploying an unchanged site uploads 0 bytes.

Every deploy gets a URL

Preview before going live. Roll back in one click, redirects and all.

Limits you can read

Every limit is published, and every error tells you what to do next.

Connect Codex to the Lobsite MCP server

Add the Lobsite MCP server to ~/.codex/config.toml. The Codex CLI, the IDE extension and the Codex desktop app all read this file, so one entry covers each of them:

[mcp_servers.lobsite]
url = "https://mcp.lobsite.com"

Codex then lists Lobsite's tools: deploy_files publishes files, up to 25 MB per deploy, and list_files, read_file and patch_files change one page of a site it deployed without sending the whole site again. Ask for a preview, and the deploy gets its own URL while the live site stays as it was. Connect your Lobsite account when Codex asks you to sign in to the server, and it can also promote and roll back the sites you've kept.

The Lobsite section for Codex's AGENTS.md

Paste this into the project's AGENTS.md. Other agents that read the file (Cursor, Gemini CLI, Copilot and more) use it too:

## Deploying

This site deploys with [Lobsite](https://lobsite.com). Build it, then publish the build folder with the `lobsite` MCP server's `deploy_files` tool. If that server isn't connected, or the build is large, run from the project folder:

```bash
npx lobsite
```

- Tell the user the URL and the claim link, and relay any "Tell the user:" line word for word.
- Sites deployed without logging in are removed after 6 hours. The claim link keeps the site; the user opens it and signs in.
- Pass the site and claim token from the first deploy with every later one (the CLI keeps them in `lobsite.toml`), so the site keeps its address. Deploy a preview to leave the live site unchanged.
- If a deploy fails, follow the fix in the error message. Never pass `--include-secrets`.
- Forms need no backend: point a form at `/_lobsite/forms/<name>` with `method="POST"` and `data-lobsite-type` (`contact`, `waitlist`, `survey` or `quiz`). Read https://lobsite.com/docs/forms.md before adding one.

The CLI knows it runs under Codex from the CODEX_SANDBOX variable: it asks no questions and prints plain lines.

Network access for Codex deploys

Codex's sandbox can block network access for commands, and then a CLI deploy fails with a connection error rather than a Lobsite error. For the Codex CLI, allow the network for commands in the workspace in ~/.codex/config.toml:

[sandbox_workspace_write]
network_access = true

Or approve the command when Codex asks to run it outside the sandbox. In Codex cloud tasks, internet access for the agent is a setting of the environment; allow lobsite.com and upload.lobsite.app (and the npm registry, for npx).

Deploy large Codex builds with the CLI or curl

The MCP server takes the files' contents in the tool call, which suits pages and small sites. For a build with big assets, Codex runs npx lobsite in the project folder: it uploads the build folder from disk and only sends the files that changed.

Where Node isn't installed, one page (or a few files) deploys with curl, which answers with the URL and the claim link:

curl --data-binary @index.html https://lobsite.com/api/v1/drop

Codex deploys: MCP server, command or curl

Lobsite MCP server npx lobsite curl
Needs Nothing to install Node and network in the sandbox Network only
What it uploads The files Codex sends, up to 25 MB The built folder, only changed files The files you name, up to 25 MB
Updates the same site Yes, with the site and claim token from the first answer Yes, lobsite.toml remembers it Yes, with ?site= and the claim token
Roll back, list deploys As tools, once your account is connected With more commands No
Set-up Two lines in config.toml AGENTS.md section None

Start with the MCP server; use the command for large builds, and curl for sandboxes without Node.

Codex hosting FAQ

Why does the deploy fail with a network error?

The sandbox stopped the command from reaching lobsite.com. Use the MCP server, turn on network access for the workspace, approve the command outside the sandbox, or allow the domains in your Codex cloud environment.

Does Codex need my Lobsite account?

No. Without one the site lasts 6 hours and Codex gives you the claim link. To deploy into your account, connect it when Codex asks you to sign in to the MCP server, or run npx lobsite login yourself once for the CLI; signing in happens in a browser.

Can Codex deploy a preview first?

Yes. Ask for a preview: the deploy gets its own URL and leaves the live site as it was. With the CLI that's npx lobsite --preview, and npx lobsite promote <id> makes it live.

What if my project has a .env file?

Over the MCP server, Codex sends only the files it names. The CLI never uploads secret files: they stop the deploy with an error that says how to leave them out (.lobsiteignore), and Codex should never pass --include-secrets.

Does this work for Codex in the IDE?

Yes. The extension runs the same agent, so it reads the same AGENTS.md and ~/.codex/config.toml, and the tools and the command behave the same.

Let Codex deploy your next site

Two lines in config.toml. After that, deploying is one sentence.

See every way

Deploy from other AI agents besides Codex