list_proxy_hosts
Retrieve all configured proxy hosts from Nginx Proxy Manager to view current routing rules and manage web traffic forwarding.
Instructions
List all proxy hosts configured in NPM
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/npm_mcp/client.py:134-136 (handler)The method in the NPMClient class that performs the actual network request to list proxy hosts.
async def list_proxy_hosts(self) -> List[ProxyHost]: response = await self._request("GET", "/api/nginx/proxy-hosts") return [ProxyHost(**host) for host in response.json()] - src/npm_mcp/server.py:36-36 (registration)Registration of the list_proxy_hosts tool in the MCP server.
Tool(name="list_proxy_hosts", description="List all proxy hosts configured in NPM", inputSchema=_empty_schema()), - src/npm_mcp/server.py:362-363 (handler)The handler in the call_tool function that dispatches the request to the NPMClient.list_proxy_hosts method.
if name == "list_proxy_hosts": return _list_response(await npm_client.list_proxy_hosts())