Skip to content
FRAGMENT
B Build with AI#

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. 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 and select the Workspace you want to connect.
  2. Click MCP in the Schema designer, or open MCP connections.
  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.

b. 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 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.

c. 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:

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: 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: guides on account types, balancing, consistency, currencies, reconciliation, card issuing, invoicing, revenue recognition and Schema evolution. They apply to both MCP and CLI workflows.