For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

CHOOSE
WHAT HAPPENS
USE IT WHEN

--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_reference

When 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:

  1. A tool named in --deny-tool is always hidden, even if you also name it in --allow-tool.

  2. When you use --allow-tool, every tool you didn't name is hidden.

  3. --read-only, --deny-destructive, and --deny-open-world then apply to what's left. --allow-tool doesn'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.

The preview always marks RDM_resolve_secret_reference as hidden ("sensitive": true), because it leaves out the tools that return secret values. devo mcp started by your AI client does expose it, unless you deny it with --deny-tool or exclude it from --allow-tool. Don't rely on the preview to tell you whether secret values can reach the model: check your --deny-tool and --allow-tool options.

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 devo commands 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?