browser-server-console
Serve static files from a directory and capture browser console output for debugging web applications during development.
Instructions
Spawn an Express static server for a directory and capture console output from the served content
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": {
"directory": "<directory>"
},
"name": "browser-server-console"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | The directory to serve statically | |
| port | No | Preferred port to run the server on (will find next available if busy, default: 3000) | |
| path | No | Path to navigate to after starting server (default: "/") | / |
| timeout | No | Timeout in milliseconds (default: 30000) | |
| waitFor | No | CSS selector or text to wait for before capturing console (optional) | |
| commands | No | Browser commands to execute (e.g., "click .button wait 2s") (optional) | |
| stream | No | Whether to stream console output in real-time (default: true) |