DOMShell: domshell_eval classified as read-tier can execute side-effecting JavaScript without --allow-write
The domshell_eval MCP tool (and the eval command inside domshell_execute) was classified as read-tier, allowing it to run without the –allow-write server flag. However, eval and the write-tier js command dispatch to the same handler in the extension and call CDP Runtime.evaluate with the raw expression string and no side-effect gate. Any JavaScript expression could therefore mutate DOM, window, or global state through domshell_eval without the operator's –allow-write authorization. The …