Skip to content

Let an agent write a pack ​

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):

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

examples/recipes/mcp/mcp.json

Or add it from the terminal with Claude Code:

Terminal
sh
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.

What's next

Alta OS is open source (MIT).