README: deutsche Fassung, Schnellstart baut den Fork statt des Upstream-Images
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5d63e1a2be
commit
f04fad044f
3 files changed
+88
-11
No files matched your search
@@ -0,0 +1,72 @@
|
|||||||
|
# NPM MCP Server
|
||||||
|
|
||||||
|
[English](README.md) | **Deutsch**
|
||||||
|
|
||||||
|
MCP-Server für [Nginx Proxy Manager](https://nginxproxymanager.com/): Reverse-Proxy-
|
||||||
|
Einträge, Zertifikate, Weiterleitungen und Streams über KI-Assistenten verwalten.
|
||||||
|
Die vollständige Dokumentation steht in der [englischen README](README.md).
|
||||||
|
|
||||||
|
> **Fork** von [b3nw/nginx-proxy-manager-mcp](https://github.com/b3nw/nginx-proxy-manager-mcp)
|
||||||
|
> (MIT), Basis v0.0.7. Ergänzt: Zertifikatspflege (ungenutzte/ablaufende finden,
|
||||||
|
> löschen, erneuern), Domainnamen/HSTS/HTTP/2/Caching bei Proxy-Hosts ändern,
|
||||||
|
> Weiterleitungen, TCP/UDP-Streams, 404-Hosts, Domainsuche, Vorschau mit
|
||||||
|
> `confirm=true` vor jedem Löschen, MCP-Fehler (`isError`). Siehe [CHANGELOG.md](CHANGELOG.md).
|
||||||
|
|
||||||
|
## Voraussetzungen
|
||||||
|
|
||||||
|
- Eine erreichbare Nginx-Proxy-Manager-Instanz (2.x) und ein NPM-Benutzer
|
||||||
|
- Docker **oder** Python 3.11+ mit [uv](https://docs.astral.sh/uv/)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Das Upstream-Image enthält die Fork-Ergänzungen **nicht**; deshalb selbst bauen:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone <repository-url> nginx-proxy-manager-mcp
|
||||||
|
cd nginx-proxy-manager-mcp
|
||||||
|
# Umgebungsvariablen in compose.yaml anpassen, dann bauen und starten
|
||||||
|
docker compose up -d --build
|
||||||
|
```
|
||||||
|
|
||||||
|
Ohne Docker: `uv pip install -e .`, dann `npm-mcp` (stdio) oder `npm-mcp --transport http`.
|
||||||
|
|
||||||
|
## Konfiguration
|
||||||
|
|
||||||
|
| Variable | Bedeutung |
|
||||||
|
|---|---|
|
||||||
|
| `NPM_API_URL` | z. B. `http://npm:81/api` |
|
||||||
|
| `NPM_IDENTITY`, `NPM_SECRET` | NPM-Login |
|
||||||
|
| `NPM_MCP_TRANSPORT` | `stdio` (Standard) oder `http` |
|
||||||
|
| `NPM_MCP_HOST`, `NPM_MCP_PORT` | für HTTP, Standard `0.0.0.0:8000` |
|
||||||
|
| `NPM_MCP_AUTH_TOKEN` | Bearer-Token für HTTP-Clients (empfohlen) |
|
||||||
|
| `NPM_MCP_ENABLE_DESTRUCTIVE_TOOLS` | `true` schaltet alle schreibenden Werkzeuge frei (Standard aus) |
|
||||||
|
| `NPM_LOG_DIR` | optional: eingebundene NPM-Logs für `get_proxy_host_logs` |
|
||||||
|
| `NPM_INSTANCES`, `NPM_DEFAULT_INSTANCE` | optional: mehrere NPM-Instanzen |
|
||||||
|
| `NPM_PROXY_DEFAULTS` | optional: JSON-Standardwerte für `create_proxy_host` |
|
||||||
|
|
||||||
|
Vorlage: [`env.example`](env.example).
|
||||||
|
|
||||||
|
## Benutzung
|
||||||
|
|
||||||
|
Werkzeugliste und Beispiele: [README → Available Tools](README.md#available-tools).
|
||||||
|
Jedes `delete_*` zeigt erst eine Vorschau und löscht nur mit `confirm=true`.
|
||||||
|
`delete_certificate` verweigert, solange ein Host das Zertifikat nutzt (außer `force=true`).
|
||||||
|
|
||||||
|
## Sicherheit
|
||||||
|
|
||||||
|
Der Server hält NPM-Zugangsdaten. Im HTTP-Modus immer `NPM_MCP_AUTH_TOKEN` setzen
|
||||||
|
und den Port nicht ins Internet freigeben. Schreibende Werkzeuge nur bei Bedarf
|
||||||
|
einschalten.
|
||||||
|
|
||||||
|
## Entwicklung
|
||||||
|
|
||||||
|
```sh
|
||||||
|
uv pip install -e ".[dev]"
|
||||||
|
pytest
|
||||||
|
ruff check src/
|
||||||
|
```
|
||||||
|
|
||||||
|
## Lizenz
|
||||||
|
|
||||||
|
MIT – Originalarbeit von [b3nw](https://github.com/b3nw/nginx-proxy-manager-mcp),
|
||||||
|
Fork-Ergänzungen unter derselben Lizenz.
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
# NPM MCP Server
|
# NPM MCP Server
|
||||||
|
|
||||||
|
**English** | [Deutsch](README.de.md)
|
||||||
|
|
||||||
MCP server for [Nginx Proxy Manager](https://nginxproxymanager.com/) - manage your reverse proxy through AI assistants.
|
MCP server for [Nginx Proxy Manager](https://nginxproxymanager.com/) - manage your reverse proxy through AI assistants.
|
||||||
|
|
||||||
> **Fork:** This is a fork of [b3nw/nginx-proxy-manager-mcp](https://github.com/b3nw/nginx-proxy-manager-mcp)
|
> **Fork:** This is a fork of [b3nw/nginx-proxy-manager-mcp](https://github.com/b3nw/nginx-proxy-manager-mcp)
|
||||||
@@ -11,19 +13,20 @@ MCP server for [Nginx Proxy Manager](https://nginxproxymanager.com/) - manage yo
|
|||||||
|
|
||||||
## Quick Start (Docker)
|
## Quick Start (Docker)
|
||||||
|
|
||||||
The easiest way to run the NPM MCP server - no cloning required!
|
The upstream image `ghcr.io/b3nw/nginx-proxy-manager-mcp` does **not** contain the
|
||||||
|
fork additions, so build the image from this repository:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Download the compose file
|
git clone <repository-url> nginx-proxy-manager-mcp
|
||||||
curl -O https://raw.githubusercontent.com/b3nw/nginx-proxy-manager-mcp/main/compose.yaml
|
cd nginx-proxy-manager-mcp
|
||||||
|
# Edit the environment variables in compose.yaml, then build and start
|
||||||
# Edit the environment variables, then start
|
docker compose up -d --build
|
||||||
docker compose up -d
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Or run directly:
|
Or run directly:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
docker build -t npm-mcp:local .
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--name npm-mcp \
|
--name npm-mcp \
|
||||||
-p 8000:8000 \
|
-p 8000:8000 \
|
||||||
@@ -31,7 +34,7 @@ docker run -d \
|
|||||||
-e NPM_IDENTITY=admin@example.com \
|
-e NPM_IDENTITY=admin@example.com \
|
||||||
-e NPM_SECRET=yourpassword \
|
-e NPM_SECRET=yourpassword \
|
||||||
-e NPM_MCP_TRANSPORT=http \
|
-e NPM_MCP_TRANSPORT=http \
|
||||||
ghcr.io/b3nw/nginx-proxy-manager-mcp:latest
|
npm-mcp:local
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation (Local)
|
## Installation (Local)
|
||||||
@@ -253,7 +256,7 @@ services:
|
|||||||
- npm_data:/data
|
- npm_data:/data
|
||||||
|
|
||||||
npm-mcp:
|
npm-mcp:
|
||||||
image: ghcr.io/b3nw/nginx-proxy-manager-mcp:latest
|
build: . # this fork
|
||||||
environment:
|
environment:
|
||||||
- NPM_API_URL=http://nginx-proxy-manager:81/api
|
- NPM_API_URL=http://nginx-proxy-manager:81/api
|
||||||
- NPM_IDENTITY=admin@example.com
|
- NPM_IDENTITY=admin@example.com
|
||||||
@@ -303,7 +306,7 @@ docker run -d \
|
|||||||
-e NPM_SECRET=yourpassword \
|
-e NPM_SECRET=yourpassword \
|
||||||
-e NPM_LOG_DIR=/data/npm-logs/logs \
|
-e NPM_LOG_DIR=/data/npm-logs/logs \
|
||||||
-e NPM_MCP_TRANSPORT=http \
|
-e NPM_MCP_TRANSPORT=http \
|
||||||
ghcr.io/b3nw/nginx-proxy-manager-mcp:latest
|
npm-mcp:local
|
||||||
```
|
```
|
||||||
|
|
||||||
### Local Development (non-Docker)
|
### Local Development (non-Docker)
|
||||||
|
|||||||
+4
-2
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
npm-mcp:
|
npm-mcp:
|
||||||
image: ghcr.io/b3nw/nginx-proxy-manager-mcp:latest
|
# Built from this fork; the upstream image lacks the fork additions.
|
||||||
|
build: .
|
||||||
|
image: npm-mcp:local
|
||||||
container_name: npm-mcp
|
container_name: npm-mcp
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
@@ -48,7 +50,7 @@ services:
|
|||||||
# - npm_letsencrypt:/etc/letsencrypt
|
# - npm_letsencrypt:/etc/letsencrypt
|
||||||
#
|
#
|
||||||
# npm-mcp:
|
# npm-mcp:
|
||||||
# image: ghcr.io/b3nw/nginx-proxy-manager-mcp:latest
|
# build: . # this fork
|
||||||
# environment:
|
# environment:
|
||||||
# - NPM_API_URL=http://nginx-proxy-manager:81/api
|
# - NPM_API_URL=http://nginx-proxy-manager:81/api
|
||||||
# - NPM_IDENTITY=admin@example.com
|
# - NPM_IDENTITY=admin@example.com
|
||||||
|
|||||||
Reference in new issue
Block a user