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
| File | What it does |
|---|---|
AGENTS.md | Project rules, commands, conventions, and the MCP servers your project ships. Claude Code reads it through CLAUDE.md. |
CODING_STYLE.md | Detailed 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.json | MCP servers for Claude Code, Codex, Cursor, VS Code, Gemini CLI, and OpenCode |
movefast.json | The 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
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, disputenpm run doctorchecks configuration and live services, not code. Every failure comes with a fix.npm testruns 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:simulatesends the running dev server a webhook signed the way your payment provider signs it, then confirms the database change. Usecancelinstead ofpaymentto 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.
| Server | Use it for | Sign-in |
|---|---|---|
app | Your app's users, invites, waitlist, and health checks, while npm run dev runs | APP_MCP_TOKEN in your shell |
movefast-docs | Searching these docs | None |
github | Pull requests, issues, and reviews | GITHUB_PERSONAL_ACCESS_TOKEN in your shell |
next-devtools | Errors, routes, and logs from npm run dev, plus Next.js docs | None |
mongodb or supabase | Your database, read-only | Read-only connection string, or OAuth |
stripe, dodo, or polar | Your payment provider, in test mode or a sandbox | OAuth |
resend or postmark | Your email provider (Nodemailer has none) | OAuth, or a Postmark server token |
playwright, shadcn, posthog, vercel | Browser checks, components, analytics, deployments; off by default | Varies |
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.
- Sign in as an admin and open
/admin/dashboard/api-tokens. - Create a token. It is read-only unless you turn on Allow changes, and it expires after 7, 30, 90, or 365 days.
- Add the
export APP_MCP_TOKEN=...line the page shows to your shell profile, then restart your agent.
| Access | Tools |
|---|---|
| Read | get_overview, list_users, get_user, list_invites, list_waitlist, run_health_check |
| Allow changes | Adds 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:
codex mcp add my-app-production --url https://yourdomain.com/api/mcp --bearer-token-env-var PRODUCTION_APP_MCP_TOKENIn 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:
claude mcp add --transport http --scope user movefast-docs https://movefa.st/mcp
codex mcp add movefast-docs --url https://movefa.st/mcpIn 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:
- Commit your work.
- Run
npm run agents:update -- --from origin --checkto see what would change. - Run
npm run agents:update -- --from originto apply it. - Review the changes with
git diff, runnpm run lint,npm run typecheck, andnpm 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.jsonchange. Your product code is never touched, and nothing is committed for you.
