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
23 lines
847 B
Plaintext
23 lines
847 B
Plaintext
# NPM MCP Configuration
|
|
NPM_API_URL=http://localhost:81/api
|
|
NPM_IDENTITY=admin@example.com
|
|
NPM_SECRET=changeme
|
|
|
|
# Server Configuration
|
|
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.
|
|
# NPM_LOG_DIR=/data/npm-logs
|
|
|
|
# Proxy Host Creation Defaults (JSON)
|
|
# Set default values for create_proxy_host tool parameters
|
|
# Example with wildcard cert: NPM_PROXY_DEFAULTS='{"certificate_id": 24, "ssl_forced": true}'
|
|
# NPM_PROXY_DEFAULTS='{"certificate_id": 0, "ssl_forced": true, "block_exploits": true, "allow_websocket_upgrade": true}'
|