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
This commit is contained in:
b3nw authored and GitHub committed 2026-08-11 19:51:49 -05:00
1 parent 2fadd3aacb
commit 2278c97d9d
6 files changed
+53

No files matched your search

+1
View File
@@ -64,6 +64,7 @@ NPM_PROXY_DEFAULTS='{"certificate_id": 24, "ssl_forced": true}'
| `NPM_MCP_HOST` | No | `0.0.0.0` | MCP server bind address |
| `NPM_MCP_PORT` | No | `8000` | MCP server port |
| `NPM_MCP_TRANSPORT` | No | `stdio` | Transport mode (`stdio` or `http`) |
| `NPM_MCP_ENABLE_DESTRUCTIVE_TOOLS` | No | `false` | Enable write/destructive tools (create, update, delete, enable, disable) |
| `NPM_LOG_DIR` | No | - | Path to mounted NPM log directory (enables `get_proxy_host_logs`) |
| `NPM_PROXY_DEFAULTS` | No | `{}` | JSON defaults for `create_proxy_host` |