Commit Graph
23 Commits
Author SHA1 Message Date
Mikei386andClaude Opus 5.5 29beba9597 list_unused_certificates: naive NPM-Zeitstempel als UTC behandeln
Tests / test (push) Canceled after 0s
Build and Push Docker Image / build (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:57:30 +01:00
Michael RollandClaude Opus 5.5 bfcf5c2e25 0.1.0 (Fork): Zertifikate löschen/erneuern, Domains ändern, Redirects, Streams, 404-Hosts
Build and Push Docker Image / build (push) Canceled after 0s
Tests / test (push) Canceled after 0s
- delete_certificate (Vorschau + confirm, verweigert bei Nutzung ohne force),
  renew_certificate, list_unused_certificates
- update_proxy_host: domain_names, hsts_enabled, hsts_subdomains, http2_support,
  caching_enabled; create_proxy_host: dieselben vier Schalter
- find_proxy_host (auch Umlaute/Punycode)
- Redirection-Hosts, TCP/UDP-Streams, 404-Hosts (auflisten, anlegen, löschen)
- delete_proxy_host und alle neuen Löschwerkzeuge nur mit confirm=true
- Fehler als MCP-ToolError statt Text

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:49:56 +01:00
i/o agent 92ad9a9f32 chore(release): bump version to 0.0.7, add CONTRIBUTORS.md and update README (#20)
Build and Push Docker Image / build (push) Canceled after 0s
Tests / test (push) Canceled after 0s
## 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`.
2026-10-16 16:45:49 -05:00
Matt Cowger e641c7b4ba feat(proxy-hosts): support custom locations on create/update (#18)
* build(deps): sync uv.lock with pyproject dependencies

* feat(proxy-hosts): support custom locations on create/update

Extend ProxyHostLocation with forward_path and access_list_id, thread
locations through create/update tools and client, preserve existing
locations on updates that omit them (NPM replaces the list on PUT),
and render full location records in host details. Adds 5 tests.
2026-10-16 16:11:19 -05:00
i/o agentandb3nw feae6dedfb fix(certificate): omit legacy meta fields for NPM 2.x compatibility (#17) (#19)
Co-authored-by: b3nw <189466+b3nw@users.noreply.github.com>
2026-10-14 21:06:14 -05:00
i/o agentandb3nw 725d323b96 fix(mcp): resolve AttributeError: FastMCP has no attribute streamable_http_app (#16)
* fix(mcp): resolve AttributeError: FastMCP has no attribute streamable_http_app

* chore(release): bump version to 0.0.6

---------

Co-authored-by: b3nw <189466+b3nw@users.noreply.github.com>
2026-08-12 14:54:23 -04:00
i/o agent ca3ba01f36 fix(mcp): migrate to standalone fastmcp package to resolve official SDK v2 breaking change (#15) 2026-08-12 14:08:06 -04:00
i/o agentandb3nw 663e375ff3 chore(release): bump version to 0.0.5 (#14)
* chore(release): bump version to 0.0.5

* fix(config): wrap long string to resolve ruff line length check

---------

Co-authored-by: b3nw <189466+b3nw@users.noreply.github.com>
2026-08-11 22:15:01 -04:00
b3nwandb3nw 1dd2292383 feat: multi-instance NPM configuration (#13)
* feat: multi-instance NPM configuration

Adds NPM_INSTANCES env var (JSON map) to manage multiple NPM servers
from a single MCP instance. Every tool gains an optional 'instance'
parameter. Legacy single-instance config (NPM_API_URL/IDENTITY/SECRET)
still works unchanged. Includes list_instances tool, per-instance
proxy_defaults and log_dir, and full backward compatibility.

* fix(config): add explicit type validation for NPM_INSTANCES fields

* fix(multi-instance): fix cross-instance log leakage and order-dependent default selection

* chore(multi-instance): document NPM_DEFAULT_INSTANCE and harden logs fallback logic against cross-instance leakage

---------

Co-authored-by: b3nw <189466+b3nw@users.noreply.github.com>
2026-08-11 20:11:05 -05:00
b3nwandb3nw 21bce2ad91 feat(#9): add bearer token auth for HTTP transport (#12)
* feat(#9): add bearer token auth for HTTP transport

Adds NPM_MCP_AUTH_TOKEN env var. When set, HTTP transport requires
Authorization: Bearer <token> on all requests except /health.
Uses timing-safe comparison via hmac.compare_digest.

Closes #9

* fix(auth): fix lifespan context and 401 status/headers spec compliance

---------

Co-authored-by: b3nw <189466+b3nw@users.noreply.github.com>
2026-08-11 19:54:01 -05:00
b3nw 2278c97d9d feat(#6): add destructive-tools env guard (#11)
Adds NPM_MCP_ENABLE_DESTRUCTIVE_TOOLS (default: false) that gates all
write operations (create, update, delete, enable, disable). Deployments
are read-only by default and must explicitly opt in to mutations.

Closes #6
2026-08-11 19:51:49 -05:00
b3nw 2fadd3aacb fix(#7): remove double 'API error:' prefix from error messages (#10)
Client._request no longer prepends 'API error:' to the exception message
since _format_error in server.py already adds that prefix.

Closes #7
2026-08-11 19:51:39 -05:00
b3nw 9c332c933d chore(release): bump version to 0.0.4 (#8)
- pyproject.toml: 0.0.2 -> 0.0.4

- README.md: mark delete/enable/disable tools as v0.0.4+
2026-06-14 15:58:18 -05:00
Bryan Rebhahn 690408d6c7 Add proxy-host lifecycle verbs: delete/enable/disable (#4)
* feat(proxy-hosts): add delete, enable, and disable verbs (#1)

Add delete_proxy_host (DELETE /nginx/proxy-hosts/{id}), enable_proxy_host
(POST .../enable) and disable_proxy_host (POST .../disable) MCP verbs plus
client methods, following existing NpmClient auth + tool patterns. README
documents the new tools with placeholder-only examples.

* docs(proxy-hosts): correct enable/disable idempotency wording (#2)

NPM's POST /enable and /disable return HTTP 400 when the host is already in
the target state; update enable/disable docstrings (server.py + client.py)
and README to describe this instead of claiming a no-op success.
2026-06-14 13:53:55 -05:00
b3nwandclaw-io 4a95ccd1b5 fix(#2): add multi-architecture Docker builds for arm64 support
Adds QEMU emulation setup and specifies platforms: linux/amd64,linux/arm64
in the GitHub Actions Docker build workflow. This fixes the ARM64 manifest
error ('no matching manifest for linux/arm64/v8') on Apple Silicon Macs.

Changes:
- Add docker/setup-qemu-action@v3 step before Buildx setup
- Add platforms: linux/amd64,linux/arm64 to build-push-action

Closes #2

Co-authored-by: claw-io <agent@ben.io>
2026-06-08 14:08:09 +00:00
b3nw 5e89176806 feat: Add get_proxy_host_logs tool for reading nginx proxy host logs
Reads nginx access/error logs directly from a mounted NPM log directory,
enabling agents to debug proxy issues without SSH access. Requires mounting
NPM's /data/logs volume and setting NPM_LOG_DIR.

Also includes a feature request PRD for proposing a native log API upstream.
2026-05-22 14:27:37 +00:00
b3nw c3227c3a5f fix: Disable Docker push on PR builds and update README
Fork PRs don't have write access to GHCR. Use conditional push
that only pushes on non-PR events (push to main, tags).

Also update README with new tools from v0.0.3:
- update_proxy_host
- create_certificate
2026-02-12 04:06:58 +00:00
b3nw 32f57b1a9e fix: Disable Docker push on PR builds
Fork PRs don't have write access to GHCR. Use conditional push
that only pushes on non-PR events (push to main, tags).
2026-02-12 03:51:18 +00:00
Jordan Réjaud f81bf796a6 Fix Pydantic backward compatibility and add update/certificate tools (#3)
- Make Owner and Certificate model fields optional with defaults to fix
  parsing errors when NPM API returns null/missing nested objects
- Add update_proxy_host tool for modifying existing proxy host configs
- Add create_certificate tool for provisioning Let's Encrypt SSL certs
- Add corresponding client methods with full parameter support
2026-02-11 21:47:54 -06:00
Ben 15b2876d7b chore: Update version to 0.0.2 2025-12-24 21:23:15 +00:00
b3nw 52eb484432 feat: Add proxy host creation and access list tools (#1)
Add MCP tools for creating proxy hosts and listing access lists, with configurable defaults via environment variable.

New tools:
- create_proxy_host: Create new proxy hosts with SSL, access control, and websocket support
- list_access_lists: List available access lists for use in proxy host creation

New features:
- NPM_PROXY_DEFAULTS env var for configurable default values (certificate_id, access_list_id, ssl settings, etc.)
2025-12-24 15:20:45 -06:00
Ben 37ad76f012 chore: Use pre-built Docker image from GHCR
- Update compose.yaml to use ghcr.io/b3nw/nginx-proxy-manager-mcp:latest
- Add Docker quick start section to README
- Users can now deploy without cloning the repo
2025-12-18 03:47:35 +00:00
Ben 18b76b673b feat: Initial NPM MCP server implementation
- NpmClient with JWT auth and auto-refresh
- FastMCP server with 5 tools (list_proxy_hosts, get_proxy_host_details, get_system_health, search_audit_logs, list_certificates)
- Docker support with multi-stage build using uv
- Supports stdio and streamable HTTP transports
- GitHub Actions for tests and Docker builds
2025-12-18 03:40:02 +00:00