MCP NetOps safety
Do not use for skill authoring style (use this repo's linter). Not for general MCP server scaffolding.
Procedure
- Default read-only. Write tools are a separate server with a second allow-list.
- Every tool names device, command class, and whether it mutates.
showis notcommit. - Sanitize before the model: strip secrets, TACACS, SNMP, and user PII from command output.
- Production requires a human approval token. Labs may auto-apply under a risk gate.
- Verify: a denied write, a sanitized syslog line, and an audit HMAC or equivalent.
tool: napalm_get_facts mutate: no env: any
tool: napalm_commit mutate: yes env: lab|prod+token
tool: netmiko_send_config mutate: yes env: lab-only
Anti-patterns
- Never give an agent raw Bash on a jump host that can SSH to production.
- Do not log full command output to a cloud LLM without sanitizing.
Safety
This skill is itself fail-closed. If the policy is unclear, the tool does not fire.