port_conflict
Diagnose EADDRINUSE errors: identify the dev server blocking a port and get 5 free nearby alternatives.
Instructions
Read-only. Diagnoses an EADDRINUSE situation: given a port, returns the dev server currently blocking it plus 5 free alternative ports nearby. Use it when a listen EADDRINUSE error fires and you want both the culprit and a port to switch to.
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": {
"port": "<port>"
},
"name": "port_conflict"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | The contended TCP port, e.g. 3000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| blocked_by | No | The dev-server record holding the port (see list_dev_servers), or null if actually free. | |
| alternatives | No | Up to 5 nearby free ports. |