Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

disable_proxy_host

Disable a proxy host in Nginx Proxy Manager by specifying its ID to temporarily stop routing traffic through that configuration.

Instructions

Disable a proxy host

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
host_idYesThe ID of the proxy host to disable

Implementation Reference

  • The actual implementation of the tool handler in the NPM client.
    async def disable_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}/disable")
  • Registration of the "disable_proxy_host" tool in the server list.
    Tool(name="disable_proxy_host", description="Disable a proxy host", inputSchema=_id_schema("host_id", "The ID of the proxy host to disable")),
  • The request handling logic that dispatches to the client's disable_proxy_host method.
    elif name == "disable_proxy_host":
        await npm_client.disable_proxy_host(arguments["host_id"])
        return _msg_response("Proxy host disabled successfully")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/VeryBigSad/nginx-proxy-manager-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server