create_access_list
Create access control lists in Nginx Proxy Manager to manage authentication and authorization for proxy hosts.
Instructions
Create a new access list
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the access list | |
| satisfy_any | No | ||
| pass_auth | No |
Implementation Reference
- src/npm_mcp/client.py:212-217 (handler)The implementation of create_access_list that performs the API call.
async def create_access_list(self, access_list: AccessList) -> AccessList: response = await self._request( "POST", "/api/nginx/access-lists", json=access_list.model_dump(exclude_none=True, exclude={"id", "created_on", "modified_on"}), ) - src/npm_mcp/server.py:240-252 (registration)Registration of the create_access_list tool in the server.
Tool( name="create_access_list", description="Create a new access list", inputSchema={ "type": "object", "properties": { "name": {"type": "string", "description": "Name of the access list"}, "satisfy_any": {"type": "boolean", "default": False}, "pass_auth": {"type": "boolean", "default": True}, }, "required": ["name"], }, ), - src/npm_mcp/server.py:479-480 (handler)Handler that calls the client method when the tool is invoked.
elif name == "create_access_list": return _model_response(await npm_client.create_access_list(AccessList(**arguments)))