| name | start-dev-server |
| description | Start the Wasp dev server and set up full debugging visibility. This includes running the server (with access to logs), and connecting browser console access so the agent can see client-side errors. Essential for any development or debugging work. |
Step 0: Get User Preferences
Step 1: Prepare the Checkout
If node_modules is missing, install the project dependencies:
wasp install
If .env.server or .env.client are missing and .env.server.example or .env.client.example are available, create the missing file from the example file. Ask the user to edit the file to set the correct values.
Step 2: Ensure the Development Database is Running
Grep the .env.server file for DATABASE_URL. If no line starts with DATABASE_URL, continue following this step.
If the user does have their own DATABASE_URL env var set, move on to Step 3.
Check the schema.prisma file in the project root for the datasource block to see which database is being used.
SQLite
Skip to Step 3: SQLite stores data in a local file, no database server needed.
PostgreSQL
Start the managed database container as a background task:
wasp start db
Docker needs to be installed and running for the managed Postgres database container (wasp start db) to work.
Run this as a background task in the current session.
Wait 5-15 seconds for the database to be ready.
Step 3: Run Database Migrations
If this is the first time starting the app, or if there are pending migrations, run the following command:
wasp db migrate-dev --name <migration-name>
Some apps require seed data to work properly. Run the following command to seed the database:
wasp db seed <name>
Step 4: Start Dev Server
Start the Wasp development server as a background task:
wasp start
Step 5: Verify Server is Running
Confirm client (localhost:3000) and server (localhost:3001) are running by checking the background task output.
If started as background task in current session: Listen to the output for development and debugging information.
If started externally: Instruct the user to check the output of the external terminal and share its output with you.
Step 6: Connect Browser Console Access (Important!)
This step is critical for effective development and debugging. Without browser console access, the agent cannot see client-side errors, warnings, or React issues that occur in the browser.
Ask the user (via the AskUserQuestion tool) which method they'd like to use for giving the agent visibility into the browser console:
| Option | Description |
|---|
| Chrome DevTools MCP (recommended) | Must be installed |
| Built-in Chrome | Use Claude Code's built-in browser connection (check status with /chrome command) |
| Manual | User will manually copy/paste console output when needed |
| Other | User has another preference |
For the Chrome DevTools MCP option, if not already installed, add the following config to their mcp client:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}