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

+3
View File
@@ -8,6 +8,9 @@ NPM_MCP_HOST=0.0.0.0
NPM_MCP_PORT=8000
NPM_MCP_TRANSPORT=stdio # stdio or http
# Enable destructive/write operations (create, update, delete, enable, disable)
# NPM_MCP_ENABLE_DESTRUCTIVE_TOOLS=true
# Log Access (optional)
# Mount NPM's /data/logs directory and set this to the mount path.
# Enables the get_proxy_host_logs tool for reading nginx access/error logs.