---
title: "Build with AI"
description: "Connect coding agents through the MCP server, design Schemas, and use skills."
canonical: "https://fragment.dev/docs/build-with-ai"
---

# Build with AI

Source: https://fragment.dev/docs/build-with-ai

[Documentation index](https://fragment.dev/llms.txt)

<a id="build-with-ai"></a>

A coding agent can design your Schema and integrate Fragment into your app. Connect it to the Fragment MCP server, or hand it a skill from the skills library.

<a id="connect-the-mcp"></a>

## Connect the MCP

The Fragment MCP server lets a coding agent design Schemas, simulate funds flows and write code to integrate your app. To create an MCP connection:

1. Open the [Dashboard](https://dashboard.fragment.dev/) and select the Workspace you want to connect.
2. Click MCP in the Schema designer, or open [MCP connections](https://dashboard.fragment.dev/go/s/mcp).
3. Click Add and choose your client: Claude, Cursor, Open Code, Codex, or the raw URL.
4. Follow the instructions to authenticate the connection.

You can revoke a connection at any time from MCP connections. Each connection:

- Scopes its tools and queries to one Workspace.
- Inherits the permissions of the user who created it.
- Enforces read and write permissions on each tool call.

<a id="design-a-schema"></a>

## Design a Schema

The MCP server gives the agent tools to:

- Create, update and validate your chart of accounts, entry types and Payment Types.
- Simulate your funds flows in scenarios.
- Guide your implementation with built-in skills for ledger design, accounting and specific use cases.

The server lists its tools to the agent, so the agent finds the tool for each step. [MCP Tools](https://fragment.dev/api-reference/mcp-tools.md) lists them too. Payment Types designed through the MCP follow these rules:

- Creating a Payment Type adds the default payment account, and any missing parent accounts, when no payment account exists.
- Settlement and chargeback entries are required. Their system lines cannot be edited or removed.
- Payment Types support version 1 and active card pay-ins.
- A deployed definition is immutable. A refund entry it did not have stays editable until it is deployed.
- Run `verify_schema` before you deploy.

<a id="use-skills"></a>

## Use skills

A skill is a Markdown file of instructions that a coding agent reads and follows. Give the agent a skill's URL in your prompt:

```plaintext title="Agent prompt"
Read https://fragment.dev/skills/quickstart.md and follow it to build and run a working Fragment example.
```

The skills library has:

- [Quickstart](https://fragment.dev/skills/quickstart.md): builds and runs a small TypeScript app that posts a Ledger Entry and checks its balance. It uses the CLI and needs no MCP connection.
- [Ledger design guides](https://fragment.dev/skills/mcp-guides.md): guides on account types, balancing, consistency, currencies, reconciliation, card issuing, invoicing, revenue recognition and Schema evolution. They apply to both MCP and CLI workflows.
