{"slug": "connect-claude-code-cursor-or-codex-to-flisk-what-happens-on-the-first-prompt", "title": "Connect Claude Code, Cursor or Codex to Flisk: What Happens on the First Prompt", "summary": "Flisk released a CLI tool that connects coding agents such as Claude Code, Cursor, Codex and Gemini CLI to a local development stack through typed MCP tools (start, status, logs, fix). Running `flisk connect <client>` writes client-specific config files like `.mcp.json` and `.claude/skills/`, merging with existing entries unless `--force` is passed, and exposes a `data.state` field (ready, starting, failed, timeout) so agents can poll status instead of re-running `up`. The project also lists read-only, keyless remote MCP servers at flisk.sh/mcp.", "body_md": "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.\n\nYou 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.\n\n```\nnpm install -g @flisk-sh/flisk\nmkdir my-shop && cd my-shop\nflisk connect claude --dry-run\nflisk connect claude\n```\n\n`--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`.\n\nIt merges with your existing files. A different existing `flisk` entry is reported as `kept` unless you pass `--force`.\n\nThen start `claude`, approve the project server once, and run `/mcp` to see it connected.\n\n```\nBuild me a small online shop with a storefront and an orders API.\nRun Flisk doctor first, then start the stack and give me the URLs.\n```\n\nThe agent's plan, as the docs describe it:\n\n`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\nFor services that run as local processes, `up` returns `data.state`:\n\n| state | what to do | \n|---|---|\n| `ready` | Use the URLs. | \n| `starting` | Poll `status` . Do not call`up` again. | \n| `failed` | Read `data.failures[].logs` , fix the cause, call`up` again. | \n| `timeout` | Poll `status` , or call again with a longer`waitSeconds` . | \n\nA first build pulls images and can take minutes. The links point to localhost, so only you can see the shop.\n\nSeparate from the local server, [https://flisk.sh/mcp/](https://flisk.sh/mcp/) lists remote servers that are read-only and keyless. For example:\n\n```\nclaude mcp add --transport http flisk-app-builder https://mcp.flisk.sh/mcp\nclaude mcp add flisk -- flisk mcp\n```\n\nThe 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.\n\nIt 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.\n\nNext: keeping several agents off each other's files.", "url": "https://wpnews.pro/news/connect-claude-code-cursor-or-codex-to-flisk-what-happens-on-the-first-prompt", "canonical_source": "https://dev.to/flisk/connect-claude-code-cursor-or-codex-to-flisk-what-happens-on-the-first-prompt-4mij", "published_at": "2026-11-30 18:37:51+00:00", "updated_at": "2026-11-30 18:45:33.539028+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "developer-tools", "ai-tools"], "entities": ["Flisk", "Claude Code", "Cursor", "Codex", "Gemini CLI", "Tilt", "Docker", "Podman"], "also_reported_by": [], "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`.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/connect-claude-code-cursor-or-codex-to-flisk-what-happens-on-the-first-prompt", "markdown": "https://wpnews.pro/news/connect-claude-code-cursor-or-codex-to-flisk-what-happens-on-the-first-prompt.md", "text": "https://wpnews.pro/news/connect-claude-code-cursor-or-codex-to-flisk-what-happens-on-the-first-prompt.txt", "jsonld": "https://wpnews.pro/news/connect-claude-code-cursor-or-codex-to-flisk-what-happens-on-the-first-prompt.jsonld"}}