Back to Docs

Build with an LLM

Let Claude, Cursor, or ChatGPT scaffold your extension from a sentence.

The extension system is built so an LLM can drive it. Every doc on this site is available as Markdown, there's an llms.txt index for discovery, and two Prosaic MCP servers expose tools that scaffold and validate extensions on demand.

If you use Claude, Cursor, Claude Code or ChatGPT, you can describe what you want in plain English and get a working extension back. Build with AI covers the same tools for the rest of the platform.

Option 1: point an LLM at the docs

The lowest-friction path. Tell your model:

Build me a Prosaic extension that emails me a summary whenever a journal is posted. Fetch https://developer.prosaic.works/llms.txt first so you know the schema.

llms.txt is a short index of every page on this site. Your model follows the links, reads the manifest and sandbox docs, and writes the code. Every page is also available as Markdown by adding .md to its URL, for example https://developer.prosaic.works/docs/extensions/manifest.md.

If the model supports long context and you'd rather skip the per-link fetches, point it at the extension docs in one file:

Read https://developer.prosaic.works/docs/extensions/llms-full.txt — everything's there.

Option 2: connect an MCP server

If your client supports MCP, connect a Prosaic server and the model gets tools built for extension work. Both servers carry the same extension tools:

ServerURLSign-inWhat else it has
prosaic-devhttps://developer.prosaic.works/mcpNoneSearch these docs, look up API operations
prosaichttps://mcp.prosaic.works/mcpYour Prosaic accountYour books: entities, transactions, journals, reports and more

For building an extension, prosaic-dev is enough, and there's nothing to log in to. In Claude Code:

bash
claude mcp add --transport http prosaic-dev https://developer.prosaic.works/mcp

Setup for Cursor, VS Code and Claude.ai is in Build with AI. Connect prosaic as well if you want the model to look at real data while it works — the chart of accounts, recent transactions — so its code matches your books.

Extension tools

Once a server is connected, your LLM can call:

list_extension_scopes

Returns every scope your manifest can declare, with what each one grants. No input. Useful when the model needs to decide what permissions to request.

list_extension_triggers

Returns every trigger type — events, the cron format, action placements — with the exact input payload shape for each. No input. The model uses this to match the right trigger to your request.

scaffold_extension

Input:

json
{
  "name": "my-extension",
  "trigger": "event",
  "scopes": ["read:journals", "send:email"],
  "description": "Emails a summary when a journal is posted"
}

trigger is event, cron, action-link or manual. Returns files, a map of file paths to contents — manifest, src/index.ts, package.json, tsconfig.json — and the next steps. It's the same scaffold prosaic extension init writes, so the manifest starts with the #:schema line. Nothing is deployed.

validate_extension_manifest

Input: { "manifestToml": "<toml text>" }. Returns { valid, errors }, where each error has a field and a message, using the same validator the CLI runs. Good for "I wrote this by hand, did I miss anything?"

get_extension_reference

No input. Returns the full extension docs inline. Useful when the LLM can't fetch URLs but does have MCP.

What the flow looks like

With an MCP server connected, a typical session goes:

  1. You say: "Build me an extension that posts to Slack when a transaction over $10,000 is reconciled."
  2. The model calls list_extension_triggers, sees transaction.reconciled, and picks it.
  3. It calls list_extension_scopes and settles on read:transactions and use:http.
  4. It calls scaffold_extension with { name, trigger: "event", scopes: ["read:transactions", "use:http"] }.
  5. It writes the files to disk, changes the event to transaction.reconciled, adds a [[connections]] block for Slack, and edits src/index.ts to call prosaic.http.fetch — much like the Slack example. Then it calls validate_extension_manifest to check the TOML.
  6. You run prosaic extension deploy --dir . --entity-id <entity-id>, and a workspace admin enters the Slack token under Settings → Extensions.

Most of that happens while the model streams its plan at you. You read the code, approve, deploy.

Rough edges

  • Deploy is still a CLI command. The MCP tools scaffold and validate — they don't deploy. That's deliberate for now. If you want it added, let us know.
  • The model can't run your code. There's no local sandbox. Deploy to a test entity and read prosaic extension logs.
  • No web fetch in some clients. If your LLM can't fetch URLs, use get_extension_reference instead of linking llms-full.txt.

Without MCP

You don't need MCP for any of this — llms.txt works with every model that can fetch a URL. MCP just makes the loop tighter. Start with the docs-only path, and add prosaic-dev when you want scaffold and validate in the conversation.