Team Agent Rules
Teams planDecide what your teammates' AI agents may do on the team's shared servers. You give each team role a level, optionally different per server, and you can narrow or block the commands agents may run. Each member's Servonaut enforces the rules, and their own settings can only make them stricter.
Part of Teams. Owners and admins set the rules on the team's Policies tab, in the Agent rules card. Every member needs Servonaut 2.31 or later for the rules to apply on their machine.
What the rules cover
Agent rules control what members' AI agents may do on the team's shared servers. That includes:
- MCP clients such as Claude or Cursor that use Servonaut's tools (see MCP Server);
- Servonaut AI;
- the hosted MCP relay.
A member's own servers, the ones that aren't shared with the team, keep their own local settings. Team agent rules don't change them.
Levels
Each team role gets one of three levels:
| Level | What agents may do |
|---|---|
| Readonly | Look, never change. |
| Standard | Look, and also run allowed commands. |
| Dangerous | Every tool, destructive ones included. |
A new team starts with these levels:
| Role | Default level |
|---|---|
| Owner | Standard |
| Admin | Standard |
| Member | Standard |
| Viewer | Readonly |
Per-server levels
A server can have different levels for some roles, for example readonly for members on production. Under Per-server levels, tick Use different levels on this server and choose a level for the roles that need one. Roles you leave on Team level keep the team-wide level.
Command lists
Allowed commands
Choose which commands agents may run at the standard level:
- Servonaut's built-in list of allowed commands; or
- Only these commands: agents may run only the command names you list, for example
systemctl. List command names, not full command lines.
A custom list narrows what agents may run at the standard level. A member's own allowlist in their Servonaut still applies on top of it.
Blocked commands
Blocked commands are Python regular expressions, one per line. Keep to common regular expression syntax. They are added to Servonaut's built-in blocked patterns, and a command that matches one is refused at every level, dangerous included. For example:
\brm\s+-rf\b
Set the rules
- Open My Teams and choose the team.
- Open the Policies tab and scroll to Agent rules.
- Choose a level for each role, add any per-server levels, and set the command lists.
- Click Save agent rules.
Scripts can set the same rules through the agent_rules field of
PUT /api/v1/teams/{slug}/mcp-policy, the same endpoint as the
MCP tool policy.
Who can change what
- Owners and admins edit the agent rules.
- Only the owner can change the owner's level.
- Only the owner can set a level to dangerous.
A dangerous level works only while the team allows destructive AI tools: the owner's Destructive AI tools switch on the same Policies tab. While that switch is off, a dangerous level acts as standard.
How the rules are enforced
- On each member's machine. Servonaut 2.31 or later enforces the rules for the team's shared servers.
- Signed by Servonaut. A member can't loosen the rules by editing a cached copy. Their own Servonaut settings can only make the rules stricter.
- Readonly without a valid copy. If the app can't get a valid signed copy, for example because it has been offline for longer than the signed copy is valid, or it can't verify the copy, it treats the team's servers as readonly until it gets a fresh one.
- Changes take effect on refresh. A change reaches a member the next time their Servonaut refreshes the team policy.
- Checked on the server side too. The hosted MCP relay and Servonaut AI also check the levels. They don't check the command lists; Servonaut on the member's machine does.
Servonaut versions before 2.31 don't apply team agent rules. Ask your teammates to update.
For team members
If you are a member of a team that uses agent rules:
- On the team's shared servers, your AI agents work at your role's level, or the server's level for your role if it has one.
- You can make the rules stricter in your own Servonaut settings, but not looser.
- Your own servers keep your own settings.
- If your Servonaut can't get a valid copy of the rules, the team's servers are readonly for your agents until it gets a fresh copy.
What agent rules don't do
Agent rules bind the Servonaut app on members' machines. Someone with SSH access to a server can still use that access outside Servonaut. For a limit the server itself enforces, use SSH certificates: Linux logins per team role and per server.