Limit what an agent can do
By default, devo mcp gives your AI client every tool it has: reading, changing, and deleting vaults and entries, managing access, and resolving secret values. Most agents need far less. Add restriction options to the devo mcp command in your client's configuration, and the tools you hide never reach the model.
Pick the right option
--read-only
Only tools marked read-only stay. Nothing that creates, changes, moves, or deletes data.
The agent explores or reports: search entries, review access, read logs.
--deny-destructive
Hides tools marked destructive, such as deleting an entry, a vault, a group, a user, or variables, and restarting or stopping the background process. Tools that create or update data stay.
The agent may organize your vaults, but must not delete anything.
--deny-open-world
Hides tools marked as able to reach external hosts or networks. No tool the server exposes today carries that mark, so this option currently has no effect.
Your policy requires it, so the setting is already in place if such tools are added. Check what it hides with devo mcp catalog.
--deny-tool <tool>
Hides the tools you name. Repeat it for several tools.
One specific tool must never be available, such as RDM_resolve_secret_reference.
--allow-tool <tool>
Keeps only the tools you name. Repeat it for several tools.
The agent has one job and needs two or three tools.
Keep secret values out of the model
The RDM_resolve_secret_reference tool returns the value of a secret to your AI client. Reading a secret doesn't change your vault, so this tool is marked read-only, and --read-only keeps it.
To make sure no secret value reaches the model, deny it by name:
devo mcp --read-only --deny-tool RDM_resolve_secret_referenceWhen the agent needs a credential to run a tool, have it use devo secret run instead. The value goes to that tool only. See Give an agent a credential without exposing it.
Combine options
You can use several options together. A tool is exposed only if it passes every rule:
A tool named in
--deny-toolis always hidden, even if you also name it in--allow-tool.When you use
--allow-tool, every tool you didn't name is hidden.--read-only,--deny-destructive, and--deny-open-worldthen apply to what's left.--allow-tooldoesn't override them: a destructive tool you allow is still hidden by--deny-destructive.
Tool names aren't case-sensitive. For example, to let an agent search entries and read them, and nothing else:
In your client's configuration, each option and each value is a separate item in args:
Preview your configuration
devo mcp catalog lists the tools without starting the server, and accepts the same restriction options:
In the result, each tool shows visible (exposed with these options), readOnly, destructive, openWorld, and sensitive. The text output shows the first 25 exposed tools only, so use --json to see them all.
Good to know
Restrictions apply when the server starts. To change them, edit your client's configuration and restart the server from your client.
Restrictions limit the MCP tools, not your access. The server still acts with your permissions on the workspace. For an agent that must see less, sign it in with an account or application key that has fewer permissions, in its own context. See Switch between workspaces.
The agent can always run
devocommands in a shell if your client lets it. MCP restrictions don't apply to those commands. See Give an agent a credential without exposing it.
Next
Last updated
Was this helpful?