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
| Name | Required | Description | Default |
|---|---|---|---|
| setting_id | Yes | The setting ID | |
| value | No | Setting value | |
| meta | No | Setting metadata |
Implementation Reference
- src/npm_mcp/server.py:515-521 (handler)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))) - src/npm_mcp/client.py:383-389 (handler)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()) - src/npm_mcp/server.py:317-328 (registration)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"], }, ),