From 92ad9a9f32d006ac0275bf04e3991a75b74077cb Mon Sep 17 00:00:00 2001 From: i/o agent <273482092+claw-io@users.noreply.github.com> Date: Fri, 16 Oct 2026 16:45:49 -0500 Subject: [PATCH] chore(release): bump version to 0.0.7, add CONTRIBUTORS.md and update README (#20) ## Release v0.0.7 ### Changes * Bump package version to `0.0.7` in `pyproject.toml` and `uv.lock`. * Add `CONTRIBUTORS.md` acknowledging community contributors: - @mcowger (Custom location blocks, forward_path, and full location details in #18) - @jrejaud (Pydantic compatibility, update host, and certificate provisioning tools in #3) - @ranklancer (Proxy host lifecycle verbs in #4) * Update `README.md` with documentation for Custom Location Blocks (`v0.0.7+`) and a link to `CONTRIBUTORS.md`. --- CONTRIBUTORS.md | 7 +++++++ README.md | 40 +++++++++++++++++++++++++++++++++++++--- pyproject.toml | 2 +- uv.lock | 6 +++--- 4 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 CONTRIBUTORS.md diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md new file mode 100644 index 0000000..46fb73b --- /dev/null +++ b/CONTRIBUTORS.md @@ -0,0 +1,7 @@ +# Contributors + +Thank you to the following contributors for their contributions to `nginx-proxy-manager-mcp`: + +* **Matt Cowger ([@mcowger](https://github.com/mcowger))** — Custom location blocks support on create/update, typed location input schema, and location preservation semantics ([#18](https://github.com/b3nw/nginx-proxy-manager-mcp/pull/18)). +* **Jordan Réjaud ([@jrejaud](https://github.com/jrejaud))** — Pydantic compatibility improvements, update proxy host tool, and Let's Encrypt certificate provisioning ([#3](https://github.com/b3nw/nginx-proxy-manager-mcp/pull/3)). +* **Bryan Rebhahn ([@ranklancer](https://github.com/ranklancer))** — Proxy host lifecycle verbs: delete, enable, and disable ([#4](https://github.com/b3nw/nginx-proxy-manager-mcp/pull/4)). diff --git a/README.md b/README.md index 90ae897..23d0d77 100644 --- a/README.md +++ b/README.md @@ -150,12 +150,12 @@ Add to your `claude_desktop_config.json`: | `search_audit_logs` | Query audit log entries | | `list_certificates` | List SSL certificates | | `list_access_lists` | List access lists for authentication/IP restrictions | -| `create_proxy_host` | Create a new proxy host | -| `update_proxy_host` | Update an existing proxy host (v0.0.3+) | +| `create_proxy_host` | Create a new proxy host (supports custom locations in v0.0.7+) | +| `update_proxy_host` | Update an existing proxy host (v0.0.3+, custom locations in v0.0.7+) | | `delete_proxy_host` | Delete a proxy host permanently (v0.0.4+) | | `enable_proxy_host` | Enable (bring online) a disabled proxy host (v0.0.4+) | | `disable_proxy_host` | Disable (take offline) a proxy host without deleting it (v0.0.4+) | -| `create_certificate` | Provision a new Let's Encrypt SSL certificate (v0.0.3+) | +| `create_certificate` | Provision a new Let's Encrypt SSL certificate (v0.0.3+, NPM 2.x compatible) | ## Managing Proxy Host Lifecycle @@ -184,6 +184,36 @@ Notes: destructive — the reverse proxy stops serving the host's domains immediately. Recreate it with `create_proxy_host` if you need it back. +## Custom Location Blocks (v0.0.7+) + +Both `create_proxy_host` and `update_proxy_host` support configuring custom Nginx location blocks (e.g. for path-based routing or auth guards): + +```python +locations = [ + { + "path": "/api", + "forward_scheme": "http", # "http" or "https" + "forward_host": "10.0.0.50", + "forward_port": 3000, + "forward_path": "/api", # optional backend path prefix + "advanced_config": "", # optional per-location nginx directives + "access_list_id": 0, # optional access list ID + } +] + +create_proxy_host( + domain_names=["app.example.com"], + forward_host="10.0.0.10", + forward_port=8080, + locations=locations, +) +``` + +**Location Preservation on Updates:** +* When updating a proxy host with `update_proxy_host`, existing custom locations are **preserved by default** when `locations` is omitted. +* To replace the entire locations list, pass a new `locations=[...]` list. +* To remove all custom locations from a host, pass an empty list: `locations=[]`. + ## Log Access Setup The `get_proxy_host_logs` tool reads nginx log files directly from disk. Since NPM has no API for log retrieval, you need to mount NPM's log directory into the MCP container. @@ -284,6 +314,10 @@ pytest ruff check src/ ``` +## Contributors + +See [CONTRIBUTORS.md](CONTRIBUTORS.md) for the list of individuals who have contributed to `nginx-proxy-manager-mcp`. + ## License MIT diff --git a/pyproject.toml b/pyproject.toml index d8950b9..5195d0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "npm-mcp" -version = "0.0.6" +version = "0.0.7" description = "MCP server for Nginx Proxy Manager" readme = "README.md" requires-python = ">=3.11" diff --git a/uv.lock b/uv.lock index 56d7183..f659205 100644 --- a/uv.lock +++ b/uv.lock @@ -1,11 +1,11 @@ version = 1 -revision = 5 +revision = 3 requires-python = ">=3.11" resolution-markers = [ "python_full_version >= '3.15'", "python_full_version == '3.14.*' and sys_platform == 'emscripten'", - "python_full_version >= '3.12' and python_full_version < '3.14' and sys_platform == 'emscripten'", "python_full_version == '3.14.*' and sys_platform != 'emscripten'", + "python_full_version >= '3.12' and python_full_version < '3.14' and sys_platform == 'emscripten'", "(python_full_version < '3.14' and sys_platform != 'emscripten') or (python_full_version < '3.12' and sys_platform == 'emscripten')", ] @@ -734,7 +734,7 @@ wheels = [ [[package]] name = "npm-mcp" -version = "0.0.6" +version = "0.0.7" source = { editable = "." } dependencies = [ { name = "fastmcp" },