Skip to main content
Glama
VeryBigSad

Nginx Proxy Manager MCP

by VeryBigSad

update_setting

Modify configuration settings in Nginx Proxy Manager to adjust proxy behavior, SSL certificates, or access controls for web infrastructure management.

Instructions

Update a setting

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
setting_idYesThe setting ID
valueNoSetting value
metaNoSetting metadata

Implementation Reference

  • The handler for the "update_setting" tool within the call_tool function in the MCP server. It retrieves the current setting, merges the provided arguments, and calls the underlying client's update_setting method.
    elif name == "update_setting":
        args = dict(arguments)
        setting_id = args.pop("setting_id")
        current = await npm_client.get_setting(setting_id)
        updated_data = current.model_dump()
        updated_data.update(args)
        return _model_response(await npm_client.update_setting(setting_id, Setting(**updated_data)))
  • The implementation of the update_setting method in the client class, which performs the actual API request to update the setting.
    async def update_setting(self, setting_id: str, setting: Setting) -> Setting:
        setting_id = _validate_setting_id(setting_id)
        response = await self._request(
            "PUT", f"/api/settings/{setting_id}",
            json=setting.model_dump(exclude_none=True, exclude={"id"}),
        )
        return Setting(**response.json())
  • The registration of the "update_setting" tool in the list of available MCP tools.
        name="update_setting",
        description="Update a setting",
        inputSchema={
            "type": "object",
            "properties": {
                "setting_id": {"type": "string", "description": "The setting ID"},
                "value": {"type": "string", "description": "Setting value"},
                "meta": {"type": "object", "description": "Setting metadata"},
            },
            "required": ["setting_id"],
        },
    ),

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