enable_dead_host
Reactivate a disabled proxy host in Nginx Proxy Manager by specifying its ID to restore web traffic routing and service availability.
Instructions
Enable a dead host
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_id | Yes | The ID of the dead host to enable |
Implementation Reference
- src/npm_mcp/client.py:338-340 (handler)The actual implementation of the tool logic that sends the API request to enable a dead host.
async def enable_dead_host(self, host_id: int) -> None: host_id = _validate_int_id(host_id, "host_id") await self._request("POST", f"/api/nginx/dead-hosts/{host_id}/enable") - src/npm_mcp/server.py:204-204 (registration)Registration of the enable_dead_host tool definition.
Tool(name="enable_dead_host", description="Enable a dead host", inputSchema=_id_schema("host_id", "The ID of the dead host to enable")), - src/npm_mcp/server.py:450-452 (handler)The server-side handler dispatching the tool call to the client implementation.
elif name == "enable_dead_host": await npm_client.enable_dead_host(arguments["host_id"]) return _msg_response("Dead host enabled successfully")