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

+2
View File
@@ -16,6 +16,8 @@ services:
- NPM_MCP_TRANSPORT=http
- NPM_MCP_HOST=0.0.0.0
- NPM_MCP_PORT=8000
# Optional: Enable write/destructive operations (default: disabled)
# - NPM_MCP_ENABLE_DESTRUCTIVE_TOOLS=true
# Optional: Log access (requires volume mount below)
# - NPM_LOG_DIR=/data/npm-logs
# volumes: