Critical-risk tools in Code MCP Server
5 of the 73 tools in Code MCP Server are classified as critical risk. This page profiles those tools specifically, with recommended policy actions and the attack patterns that target them.
Every operation listed below is an action PolicyLayer recommends controlling at the transport layer. Open any tool to see the full profile, risk score, and YAML policy snippet.
Tools at critical risk
-
delete_fileDestructiveDelete a file or directory
-
docker_cleanupDestructiveClean up tracked Docker containers and resources
-
docker_containersDestructiveManage Docker containers (list, start, stop, remove, etc.)
-
remove_allowed_commandDestructiveRemove a command from the project\
-
rollback_sessionDestructiveRollback all changes made in the current AI session
Attacks that target this class
Critical-risk tools in any server share these documented attack patterns. Each links to the full case and the defensive policy.