auth/sudo-rules
Check which privileged tools you may run as root and view their path, container, prune, network, and sysctl restrictions before requesting sudo access or after a permission-denied error.
Instructions
Shows which tools YOU may run as root: your privileged grants from mcp-sudo.yaml with their paths, containers, prune, network and sysctl restrictions. It does not list which tools you may call at all: unprivileged calls need no grant, except docker/* and daemon/reload-config, which always do. Read-only and answered by the daemon itself. Call it before a privileged: true request or after a permission-denied error. Text is Your authorized privileged tools: followed by JSON; output_format: json returns only that JSON, whose keys are capitalised Go field names (Tools, Resources, Allowed, Paths, Containers, Prune, Network, Sysctl). No grants gives You have no privileged tools authorized in mcp-sudo.yaml. (JSON: {}). After an operator edits grants, daemon/reload-config applies them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_format | No | Use json for structured output (yaml, table and wide return the same JSON); default is text |