Build with AI
AI coding agents such as Claude Code and Cursor can build on Ligament the way a developer does: read the docs, look at your workspace’s records and app definitions, and propose changes. A person reviews every proposed change before it takes effect. This section shows how to set that up.
Docs your agent can read
Section titled “Docs your agent can read”Every page of these docs is available in a form that’s easy for a model to read:
| What | Where |
|---|---|
| An index of every page, with a one-line summary each (llms.txt format) | /llms.txt |
| Every page in one Markdown file | /llms-full.txt |
| One page as Markdown | The page’s URL followed by index.md, for example /developers/mcp/index.md |
| The REST API as OpenAPI | /openapi.json |
| Instructions to put in your repository | /templates/AGENTS.md |
Each page also has Copy as Markdown and View as Markdown buttons next to its title, for pasting a page into a chat.
Point an agent at https://docs.ligament.ai/llms.txt and it can find the rest itself.
Your workspace, through MCP
Section titled “Your workspace, through MCP”The MCP server at https://app.ligament.ai/api/mcp gives an agent tools to query records, explain access, read your app spec and create changesets. What it can do depends on the API key you give it. Connect an agent with MCP has the setup for Claude Code, Claude Desktop, Cursor and other clients.
Agents propose, people apply
Section titled “Agents propose, people apply”The safe setup is an agent that can read and propose but not apply:
- Create a key with
spec:read,spec:proposeandrecords:read, named after the agent (for example “Claude Code (proposals only)”). - The agent reads the current artefacts, edits them, checks its edit with a plan, and creates a changeset with a title and a note explaining why.
- A person opens the changeset in Build › Changes, reviews the plan and the diff, and applies or discards it.
The changeset records who proposed it and through which key, for example “Ada Admin via API key Claude Code (proposals only) (…4n9P)”, so you always know which changes came from an agent.
Two more safeguards apply even to keys that can apply changes. A key never does more than the person who created it can do right now, and when the workspace requires a person to apply changes made with a key (access rules, by default), an apply from a key becomes a proposal that waits for review. See API keys and scopes and Let agents propose changes.
- Connect an agent with MCP
- A prompt for your agent that keeps it inside this flow
- AGENTS.md template for repositories where agents work on your apps