AI-Assisted Development Setup
Set up your development environment for AI-assisted coding with Claude Code, Cursor, Windsurf, or Codex.
AI-Assisted Development Setup
ScaleRocket is designed to work with AI coding assistants. Whether you use Claude Code, Cursor, Windsurf, or Codex, the project includes everything your AI needs to understand and modify the codebase.
How It Works
ScaleRocket includes two files at the root of the project that AI assistants read automatically:
CLAUDE.md— Read by Claude Code and Cursor. Contains the full project guide, architecture, conventions, and dangerous commands to avoid.AGENTS.md— Read by Codex, Windsurf, and other tools. Contains a condensed version with the same safety rules.
You don't need to configure anything for basic usage. Just open your project and start prompting.
Choose Your AI Tool
Best for: Terminal-based development, full codebase understanding, MCP integrations.
Claude Code runs in your terminal and reads CLAUDE.md automatically on launch.
# Start Claude Code in your project
cd your-project
claudeClaude Code has native MCP support — it reads .mcp.json and connects to your services automatically.
First prompt to use:
Read CLAUDE.md first. Then give me an overview of this SaaS boilerplate
and what I need to set up to start developing.Best for: Visual IDE experience, inline editing, Composer for multi-file changes.
Cursor reads CLAUDE.md automatically when you open the project folder.
- Open the project folder in Cursor
- Open Composer (Cmd+K / Ctrl+K) for multi-file changes
- Open Chat (Cmd+L / Ctrl+L) for questions
First prompt to use (in Composer):
@CLAUDE.md Read this file first. Then give me an overview of this SaaS
boilerplate and what I need to set up to start developing.Tip: In Cursor, use
@filenameto reference specific files in your prompts. For example:@packages/config/src/pricing.ts update the pricing plans.
Best for: IDE experience with Cascade flow for step-by-step guidance.
Windsurf reads AGENTS.md automatically.
- Open the project folder in Windsurf
- Open Cascade (the AI panel) on the right
- Start prompting
First prompt to use:
Read AGENTS.md and CLAUDE.md in this project. Then give me an overview
of this SaaS boilerplate and what I need to set up.Best for: Terminal-based development with OpenAI models.
Codex reads AGENTS.md automatically.
# Start Codex in your project
cd your-project
codexFirst prompt to use:
Read AGENTS.md and CLAUDE.md. Then give me an overview of this SaaS
boilerplate and what I need to set up to start developing.Git Basics (for Beginners)
Git tracks changes in your code. Think of it as an "undo history" that also lets you upload your code to GitHub.
First-Time Setup
Run these once on your computer:
git config --global user.name "Your Name"
git config --global user.email "your@email.com"Daily Workflow
# See what changed
git status
# Save your progress
git add .
git commit -m "added user dashboard"
# Upload to GitHub
git pushPush to GitHub (first time)
Ask Claude to do it for you:
Create a private GitHub repo called "my-saas" and push this project to it.If you have the GitHub MCP configured, Claude will create the repo and push automatically.
Without MCP:
git remote add origin https://github.com/you/my-saas.git
git push -u origin mainOpen the terminal panel (Ctrl+`) and run:
git remote add origin https://github.com/you/my-saas.git
git push -u origin mainOr use the Source Control panel (Ctrl+Shift+G) to commit and push visually.
Open the terminal and run:
git remote add origin https://github.com/you/my-saas.git
git push -u origin mainOr ask Cascade:
Help me push this project to a new GitHub repo called "my-saas".Ask Codex to do it:
Create a private GitHub repo called "my-saas" and push this project to it.Or run manually:
git remote add origin https://github.com/you/my-saas.git
git push -u origin mainEmergency: Undo mistakes
# Undo uncommitted changes (careful — this discards your work!)
git stash # Saves changes, can recover later with "git stash pop"
# Go back to last commit (WARNING: loses all uncommitted changes)
git checkout . # Only use if you committed recently
# See your commit history
git log --onelineImportant: Always
git commitbefore asking your AI to make big changes. If something goes wrong, you can always go back.
Setting Up MCP Servers
MCP (Model Context Protocol) lets your AI assistant connect directly to services like your database and GitHub. Instead of copying and pasting keys and schemas, the AI can read and modify things directly.
ScaleRocket includes a .mcp.json at the project root, pre-configured for all the services you need.
Claude Code reads .mcp.json natively. Just configure the tokens:
Supabase MCP
- Go to supabase.com/dashboard → avatar (top right) → Account → Access Tokens
- Click Generate new token, name it "Claude Code"
- Open
.mcp.jsonand replaceYOUR_SUPABASE_ACCESS_TOKENwith your token
Convex MCP
- Run
npx convex devto start your Convex project - Your deployment name is shown in the terminal (e.g.
your-app-123) - Open
.mcp.jsonand replaceYOUR_DEPLOYMENT_NAMEwith your deployment name
GitHub MCP
- Go to github.com/settings/tokens → Fine-grained tokens → Generate new token
- Select your repos, grant Contents + Pull Requests read/write
- Open
.mcp.jsonand replaceYOUR_GITHUB_TOKENwith your token
Stripe MCP
- Go to dashboard.stripe.com/apikeys
- Copy your Secret key (starts with
sk_test_in test mode orsk_live_in production) - Open
.mcp.jsonand replaceYOUR_STRIPE_SECRET_KEYwith your key
Security: Use your test mode key during development. Never share or commit your secret key.
Restart Claude Code after saving .mcp.json.
Cursor supports MCP via its settings:
- Open Cursor Settings → MCP
- Add each server manually:
Supabase:
- Command:
npx - Args:
-y @supabase/mcp-server-supabase@latest --access-token YOUR_TOKEN - Get your token: supabase.com/dashboard → Account → Access Tokens
Convex:
- Command:
npx - Args:
-y @anthropic-ai/convex-mcp-server@latest - Env:
CONVEX_DEPLOYMENT=YOUR_DEPLOYMENT_NAME - Get your deployment name from
npx convex devoutput
GitHub:
- Command:
npx - Args:
-y @modelcontextprotocol/server-github - Env:
GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_TOKEN - Get your token: github.com/settings/tokens → Fine-grained tokens
Stripe:
- Type: HTTP
- URL:
https://mcp.stripe.com - Header:
Authorization: Bearer YOUR_STRIPE_SECRET_KEY - Get your key: dashboard.stripe.com/apikeys
Windsurf supports MCP via its settings:
- Open Windsurf Settings → AI → MCP Servers
- Add each server with the same configuration as the
.mcp.jsonfile - Get your tokens from:
- Supabase: supabase.com/dashboard → Account → Access Tokens
- Convex: Run
npx convex dev→ copy the deployment name - GitHub: github.com/settings/tokens → Fine-grained tokens
- Stripe: dashboard.stripe.com/apikeys → Secret key
Codex can read .mcp.json if supported by your version. Otherwise, configure MCP via the Codex settings or environment.
Get your tokens from:
- Supabase: supabase.com/dashboard → Account → Access Tokens
- Convex: Run
npx convex dev→ copy the deployment name - GitHub: github.com/settings/tokens → Fine-grained tokens
- Stripe: dashboard.stripe.com/apikeys → Secret key
What MCP enables
Once configured, your AI can:
- Supabase MCP: Read your database schema, create tables, manage RLS policies, run queries, check migrations
- Convex MCP: Read your schema, manage functions, query data, debug deployments
- GitHub MCP: Create repos, push code, create pull requests, manage issues
- Stripe MCP: Create products and prices, manage subscriptions, check webhook events, read payment data
Starter Prompts
Copy-paste these prompts directly into your AI tool. Replace [BRACKETS] with your own details.
Initial Setup
Read CLAUDE.md first. Then help me set up this ScaleRocket boilerplate:
1. Create a Supabase project and configure all .env.local files
2. Push the database schema with npx supabase db push
3. Create Stripe products in TEST mode and update pricing.ts
4. Start the dev server with pnpm dev
Walk me through each step. Ask me before running any dangerous commands.Building Your First Feature
I want to add [DESCRIBE YOUR FEATURE] to my SaaS.
Read CLAUDE.md first for the project structure.
- Create a new route in apps/app/src/routes/_authenticated/
- If I need a new database table, create a migration in supabase/migrations/
- If I need credits, use the use-credits Edge Function
- Show me the complete code for each file.Customizing the Landing Page
Read apps/web/app/components/ to understand the current LP.
I want to customize the landing page for my [DESCRIBE YOUR PRODUCT]:
- Update the Hero heading and description
- Update the Features section with my product's features
- Update the FAQ with relevant questions
Keep the same design and layout.Deploying to Production
Read CLAUDE.md deployment section. Help me deploy my SaaS to production:
1. Create 3 Vercel projects (web, app, ops)
2. Set up all environment variables
3. Switch Stripe to LIVE mode and recreate products
4. Configure Stripe webhook with the Supabase Edge Function URL
5. Set up Supabase Auth redirect URLs
6. Deploy Edge Functions
Walk me through each step. Warn me about anything that could break.Adding a New Database Table
I need a new table called [TABLE_NAME] with these columns: [DESCRIBE].
1. Create a migration in supabase/migrations/ (use the next number)
2. Add RLS policies so users can only access their own data
3. Add the TypeScript type in packages/types/src/index.ts
4. Push with npx supabase db pushTips for AI-Assisted Development
- Always start with "Read CLAUDE.md first." This gives the AI full project context.
- Be specific. "Add a page at /dashboard/analytics showing daily signups" beats "add analytics."
- Paste error messages. Copy the full error — the AI can usually fix it immediately.
- Commit before big changes. Run
git add . && git commit -m "before AI changes"first. If something breaks, you can go back. - Test after each change. Run
pnpm devand check the browser. Fix issues one at a time. - Don't skip the checklist. Use the Ship Checklist (bottom-right button in these docs) to track your progress.
Done reading? Mark this page as complete.