get_proxy_host
Retrieve configuration details for a specific proxy host by ID to manage web routing and SSL settings in Nginx Proxy Manager.
Instructions
Get details of a specific proxy host by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host_id | Yes | The ID of the proxy host |
Implementation Reference
- src/npm_mcp/client.py:138-141 (handler)The implementation of the get_proxy_host method in the NPM client.
async def get_proxy_host(self, host_id: int) -> ProxyHost: host_id = _validate_int_id(host_id, "host_id") response = await self._request("GET", f"/api/nginx/proxy-hosts/{host_id}") return ProxyHost(**response.json()) - src/npm_mcp/server.py:37-37 (registration)Tool registration for get_proxy_host in the server.
Tool(name="get_proxy_host", description="Get details of a specific proxy host by ID", inputSchema=_id_schema("host_id", "The ID of the proxy host")), - src/npm_mcp/server.py:364-365 (handler)The server-side tool handler logic for get_proxy_host.
elif name == "get_proxy_host": return _model_response(await npm_client.get_proxy_host(arguments["host_id"]))