Development Server
varity_dev_serverStarts, stops, or checks the local development server and returns the localhost URL for previewing your app.
Instructions
Start, stop, or check the local development server. Returns the localhost URL for previewing the app.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "varity_dev_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Project directory (default: current working directory) | |
| port | No | Port to run the dev server on (default: 3000). If this port is busy, the server auto-selects the next available port and persists it to varity.config.json so future starts use the same port automatically. You can also set this explicitly (e.g. port: 3031) to always start on a specific port. | |
| action | Yes | Action to perform: start, stop, or check status of the dev server |