# Coding agents (/docs/cli/coding-agents)

From CLI 0.37.0, the package includes an [MCP](https://modelcontextprotocol.io) server and an agent skill. The server uses the CLI's pinned Starter and its compatibility rules, so an agent can only choose stacks and modules that work together.

## The MCP server [#the-mcp-server]

Run it from the workspace where projects should be created:

```sh
npx -y --package @clubedge/create-clubedge-app create-clubedge-app-mcp
```

| Tool | What it does |
| --- | --- |
| `get_starter_capabilities` | Lists the app slots and their stacks (frameworks, APIs, mobile shells from CLI 0.42.0, and native mobile apps from CLI 0.44.0), the modules, defaults, and what each option requires, for the pinned Starter. From CLI 0.44.0, each slot also says whether `none` leaves it empty, as the framework's does for a project without a website. A stack's role decides what it pairs with: a frontend needs an API, a full-stack framework takes none, a shell packages a frontend, and a mobile app needs an API. |
| `validate_project_config` | Checks a choice of `stacks` and `modules`. Writes nothing. |
| `plan_project` | Previews a project in a folder: the stacks and modules, the number of files, the environment files, toolchains such as uv, and the setup steps. Writes nothing. |
| `create_project` | Creates the project. Git (`initialize_git`) and the install (`install_dependencies`) run only when asked for. The install runs `pnpm install`, then each app's toolchain, such as `uv sync` for FastAPI. |

`create_project` writes only to a new or empty folder beneath the server's working directory. It refuses absolute paths, `..`, and symlinks that lead outside it. Git and install output goes to stderr, never into the MCP stream.

With `infra` set to `neon`, `create_project` creates no Neon database, and its warnings say so. Run `pnpm clubedge neon create` in the new project for a [free Neon database](./neon.mdx).

<Tabs items={['Claude Code', 'Codex']} groupId="agent" persist>
  <Tab value="Claude Code">
    From the workspace:

    ```sh
    claude mcp add --scope local --transport stdio clubedge-starter -- npx -y --package @clubedge/create-clubedge-app create-clubedge-app-mcp
    claude mcp get clubedge-starter
    ```
  </Tab>
  <Tab value="Codex">
    In `~/.codex/config.toml`, with the absolute path of the workspace as `cwd`:

    ```toml
    [mcp_servers.clubedge-starter]
    command = "npx"
    args = ["--yes", "--package", "@clubedge/create-clubedge-app", "create-clubedge-app-mcp"]
    cwd = "/path/to/workspace"
    ```
  </Tab>
</Tabs>

<Callout>
  Installing dependencies can take longer than some clients wait for one tool call. If `create_project` times out with `install_dependencies`, create the project without it and run `pnpm install` in the folder.
</Callout>

## The agent skill [#the-agent-skill]

`skills/clubedge-starter/SKILL.md` tells an agent how to work with the Starter: read the capabilities, plan before creating, add only the modules asked for, use `add`, `remove`, and `upgrade` for an existing project, and fall back to the CLI when MCP isn't connected.

Copy it out of the package:

```sh
npm pack @clubedge/create-clubedge-app@latest
tar -xzf clubedge-create-clubedge-app-*.tgz
```

Then copy `package/skills/clubedge-starter/SKILL.md` to `~/.claude/skills/clubedge-starter/` for Claude Code or `~/.agents/skills/clubedge-starter/` for Codex (or `.claude/skills/...` and `.agents/skills/...` in one repository), and restart the agent. In Claude Code, run `/clubedge-starter`; in Codex, ask it to use the clubedge-starter skill.

Try it first with a request that creates nothing, such as: *inspect the available stacks and modules; do not create a project*.
