# Let an agent write a pack

> Connect the author MCP to Claude Code or any MCP client, and let your agent scaffold, write and check content in one folder.

You want an AI agent to write a quest pack for you, and to check its own work before it hands it back.

## Solution

Give your MCP client the author server of `alta`. In a project folder, `.mcp.json` (Claude Code, and the clients that read the same format):

```json [.mcp.json]
{
  "mcpServers": {
    "alta-author": {
      "command": "alta",
      "args": ["mcp", "--author", "--root", "."]
    }
  }
}
```

Or add it from the terminal with Claude Code:

```sh [Terminal]
claude mcp add alta-author -- alta mcp --author --root .
```

Then ask, for example: *"Make a quest pack in my-pack with a quest that installs ripgrep, in English and French, and check it."*

## How it works

`alta mcp --author --root <dir>` serves tools over stdio to the agent that started it: list the genres, read a guide and an example, `scaffold` a valid skeleton, `read` and `write` files, `check` them as `alta lint` does, and `pack` as a dry run. For steps that do something it also has `executors`, `checks` and `step`, which checks steps on their own. Every file the agent reads or writes must be inside `<dir>`: it cannot touch anything else, it runs nothing on your machine, and it sends nothing anywhere.

## Variants

- **A narrower folder.** `--root ./my-pack` keeps the agent inside one pack.
- **Before `alta` is on your path.** Use `"command": "node"` and `"args": ["<path to alta-os>/tools/cli/bin/alta.mjs", "mcp", "--author", "--root", "."]`.
- **Then check it yourself.** `alta lint my-pack` and `alta dev my-pack` work on what the agent wrote, like on any pack.

**Next:**

- [Connect the author MCP](https://docs.altasystem.ai/guides/tools/connect-mcp)
- [Author MCP](https://docs.altasystem.ai/reference/mcp/)
