Start

AI Coding Agents

Set up, build, check, and run your MoveFast project from Claude Code, Codex, Cursor, VS Code, Gemini CLI, or OpenCode, and keep its agent files current.

Every MoveFast project is ready for coding agents. It ships the rules and playbooks agents follow, MCP servers for your providers, commands that let an agent check its own work, and an MCP server built into your app. This page covers each piece.

What Ships in Your Project

FileWhat it does
AGENTS.mdProject rules, commands, conventions, and the MCP servers your project ships. Claude Code reads it through CLAUDE.md.
CODING_STYLE.mdDetailed code conventions
skills/Step-by-step playbooks, mirrored to .claude/skills/ (Claude Code) and .agents/skills/ (Codex)
.mcp.json, .codex/config.toml, .cursor/mcp.json, .vscode/mcp.json, .gemini/settings.json, opencode.jsonMCP servers for Claude Code, Codex, Cursor, VS Code, Gemini CLI, and OpenCode
movefast.jsonThe MoveFast release your agent files came from

The playbooks are setup-project, add-api-route, add-backend-feature, add-component, change-data-model, change-payment-flow, add-mcp-tool, and use-github, plus use-supabase in Supabase variants. Agents pick the right one for the task.

Set Up the Project With Your Agent

Open the project in your agent and ask it to set the project up. The setup-project playbook uses npm run doctor as its checklist and works through your env file, database, payment products, email, file storage, and first admin with you. It asks you to paste each secret into .env yourself and never prints one.

Commands That Check the Work

bash
npm run doctor                          # Check env, database, first admin, email, payments, and storage
npm run doctor -- --json                # The same report as JSON, for agents
npm run admin:grant -- you@example.com  # Make a signed-in user an admin
npm test                                # Unit tests; no database, network, or provider account
npm run webhook:simulate -- payment --email you@example.com  # Signed test webhook to the running app; also cancel, refund, dispute
  • npm run doctor checks configuration and live services, not code. Every failure comes with a fix.
  • npm test runs Vitest against in-memory fakes. Each payment provider must record a payment once even when its webhook arrives twice, end a cancelled subscription, and reject a tampered webhook.
  • npm run webhook:simulate sends the running dev server a webhook signed the way your payment provider signs it, then confirms the database change. Use cancel instead of payment to end a subscription. It only sends to localhost and refuses live keys. New subscriptions need a sandbox checkout, because the app fetches their details from the provider.

MCP Servers

Your project's MCP configs list these servers. Claude Code, Cursor, and VS Code ask before starting a project server.

ServerUse it forSign-in
appYour app's users, invites, waitlist, and health checks, while npm run dev runsAPP_MCP_TOKEN in your shell
movefast-docsSearching these docsNone
githubPull requests, issues, and reviewsGITHUB_PERSONAL_ACCESS_TOKEN in your shell
next-devtoolsErrors, routes, and logs from npm run dev, plus Next.js docsNone
mongodb or supabaseYour database, read-onlyRead-only connection string, or OAuth
stripe, dodo, or polarYour payment provider, in test mode or a sandboxOAuth
resend or postmarkYour email provider (Nodemailer has none)OAuth, or a Postmark server token
playwright, shadcn, posthog, vercelBrowser checks, components, analytics, deployments; off by defaultVaries

The MCP section of your project's AGENTS.md lists the exact servers, what each may do, and how to sign in. Sign in to OAuth servers from your agent: /mcp in Claude Code, codex mcp login <server>, /mcp auth <server> in Gemini CLI, or opencode mcp auth <server>. Cursor and VS Code prompt when the server starts.

Agents read MCP credentials from your shell environment, not from .env. Export them in your shell profile, and never write a key into an MCP config file. Database and payment servers stay read-only, sandboxed, or in test mode; agents make live changes only when you ask and name the environment.

Your App's MCP Server

Your app serves its own MCP server at /api/mcp, so an agent can work with live data: look up users, their paid access, subscriptions, and payments, check sign-ups, invites, and the waitlist, invite people, refund payments, and run the doctor checks against a running app.

  1. Sign in as an admin and open /admin/dashboard/api-tokens.
  2. Create a token. It is read-only unless you turn on Allow changes, and it expires after 7, 30, 90, or 365 days.
  3. Add the export APP_MCP_TOKEN=... line the page shows to your shell profile, then restart your agent.
AccessTools
Readget_overview, list_users, get_user, list_invites, list_waitlist, run_health_check
Allow changesAdds create_invite, revoke_invite, set_user_active, grant_admin, refund_payment

A token acts as the admin who created it. It stops working when it is revoked or expires, or when that admin loses the admin role or is disabled. Tokens are stored only as a hash and are never managed over MCP.

Your project's configs point the app server at http://localhost:3000/api/mcp. To reach a deployment, create a token on that deployment and add its /api/mcp URL with the token in an Authorization: Bearer header. In Codex:

bash
codex mcp add my-app-production --url https://yourdomain.com/api/mcp --bearer-token-env-var PRODUCTION_APP_MCP_TOKEN

In other agents, copy the app entry in their config file, change the URL, and reference a different variable. To give agents more tools, ask yours to follow the add-mcp-tool playbook.

Search These Docs From Any Agent

These docs are an MCP server at https://movefa.st/mcp, with list_docs, search_docs, and get_doc tools. It is public and read-only. Every MoveFast project already lists it as movefast-docs. To add it anywhere else:

bash
claude mcp add --transport http --scope user movefast-docs https://movefa.st/mcp
codex mcp add movefast-docs --url https://movefa.st/mcp

In Cursor, VS Code, Gemini CLI, or OpenCode, add an HTTP server with the URL https://movefa.st/mcp. The same pages are listed in /llms.txt.

The docs describe the latest release. Where they differ from your project, your project's AGENTS.md and code are right.

Keep Your Agent Files Current

MoveFast improves its rules, playbooks, and MCP configs over time. To bring a newer release's agent files into your project:

  1. Commit your work.
  2. Run npm run agents:update -- --from origin --check to see what would change.
  3. Run npm run agents:update -- --from origin to apply it.
  4. Review the changes with git diff, run npm run lint, npm run typecheck, and npm test, then commit.

--from is the git remote, or URL, of the MoveFast repository you cloned. It is saved in movefast.json, so later runs need only npm run agents:update.

  • Git merges your own edits into MoveFast's changes. Where both changed the same lines, the file gets conflict markers (<<<<<<<) for you or your agent to resolve.
  • A file you deleted stays deleted, and a file MoveFast removed is kept if you changed it.
  • Only the files listed in movefast.json change. Your product code is never touched, and nothing is committed for you.