enable_proxy_host
Activate a configured proxy host in Nginx Proxy Manager to route web traffic through the server. Use this tool to bring an existing proxy host online by specifying its ID.
Instructions
Enable a proxy host
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_id | Yes | The ID of the proxy host to enable |
Implementation Reference
- src/npm_mcp/client.py:164-166 (handler)The actual implementation of the enable_proxy_host logic in the NPM client.
async def enable_proxy_host(self, host_id: int) -> None: host_id = _validate_int_id(host_id, "host_id") await self._request("POST", f"/api/nginx/proxy-hosts/{host_id}/enable") - src/npm_mcp/server.py:378-380 (handler)The handler in the MCP server that calls the client method for enable_proxy_host.
elif name == "enable_proxy_host": await npm_client.enable_proxy_host(arguments["host_id"]) return _msg_response("Proxy host enabled successfully") - src/npm_mcp/server.py:76-76 (registration)Registration of the enable_proxy_host tool in the MCP server.
Tool(name="enable_proxy_host", description="Enable a proxy host", inputSchema=_id_schema("host_id", "The ID of the proxy host to enable")),