kill_port_process
Terminates the process occupying a specified TCP port to resolve EADDRINUSE errors, including the full process tree on Windows and Linux.
Instructions
Terminates the process currently occupying a specific TCP port to resolve EADDRINUSE errors without manual hunting. Terminate whole process tree on Windows/Linux.
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": "kill_port_process"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | The TCP port occupied by the process to kill | |
| force | No | Force termination (/F on Windows or SIGKILL on Unix). Defaults to true. |