# Connect Claude Code, Cursor or Codex to Flisk: What Happens on the First Prompt

> Source: <https://dev.to/flisk/connect-claude-code-cursor-or-codex-to-flisk-what-happens-on-the-first-prompt-4mij>
> Published: 2026-11-30 18:37:51+00:00

**Key takeaway:** Flisk's `flisk connect` writes MCP config and skills for Claude Code, Cursor, Codex and Gemini CLI, and its `up` tool returns a `data.state` of ready, starting, failed or timeout so agents poll `status` rather than re-running `up`.

A coding agent can write a Dockerfile. It is worse at knowing whether the stack it built is healthy. Flisk gives the agent typed tools for that: start, status, logs, fix. This is the setup and what happens next.

You need Docker (or Colima or Podman), Tilt, and Node.js 22.12 or newer. Ask your agent to run `doctor` first if you are unsure.

```
npm install -g @flisk-sh/flisk
mkdir my-shop && cd my-shop
flisk connect claude --dry-run
flisk connect claude
```

`--dry-run` prints the files and writes nothing. For Claude Code the command writes `.mcp.json` and skills in `.claude/skills/`. For Cursor use `flisk connect cursor` (`.cursor/mcp.json`). For Codex use `flisk connect codex` (`.codex/config.toml`, loaded only for trusted projects). Gemini CLI has `flisk connect gemini`.

It merges with your existing files. A different existing `flisk` entry is reported as `kept` unless you pass `--force`.

Then start `claude`, approve the project server once, and run `/mcp` to see it connected.

```
Build me a small online shop with a storefront and an orders API.
Run Flisk doctor first, then start the stack and give me the URLs.
```

The agent's plan, as the docs describe it:

`doctor` checks Docker, Tilt and ports.`project_init` creates the project.`resource_create` adds the storefront and the API.`up` starts the stack.`status` is polled until every service is ready.`logs` and `config_verify` find the cause.`state` field
For services that run as local processes, `up` returns `data.state`:

| state | what to do | 
|---|---|
| `ready` | Use the URLs. | 
| `starting` | Poll `status` . Do not call`up` again. | 
| `failed` | Read `data.failures[].logs` , fix the cause, call`up` again. | 
| `timeout` | Poll `status` , or call again with a longer`waitSeconds` . | 

A first build pulls images and can take minutes. The links point to localhost, so only you can see the shop.

Separate from the local server, [https://flisk.sh/mcp/](https://flisk.sh/mcp/) lists remote servers that are read-only and keyless. For example:

```
claude mcp add --transport http flisk-app-builder https://mcp.flisk.sh/mcp
claude mcp add flisk -- flisk mcp
```

The first plans an app from a description. The second is the local stack driver. The page notes that Gemini CLI, Cursor and Codex change flags and file names between versions, so check a snippet against that client's docs if it fails.

It is not a deploy tool, not Kubernetes and not a cloud IDE. Your agent host still asks before it uses a project MCP server or runs a command. What gets built, and whether each fix lands, depends on your agent and model.

Next: keeping several agents off each other's files.
