AgentsID Guard
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AgentsID Guardlist directory contents of /data"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Your AI agent has access to your shell, file system, database, git repos, and the internet. Right now, nothing controls what it can do with any of them.
AgentsID Guard fixes that. 11 tools across 5 categories — shell, files, database, git, HTTP — every operation validated against per-agent permission rules before execution.
How It Works
Agent: shell_run("ls -la /src")
→ Classified: shell.read.ls
→ AgentsID: ALLOWED ✓
→ Executes normally
Agent: shell_run("rm -rf /data")
→ Classified: shell.danger.rm
→ AgentsID: BLOCKED ✗
→ Never executes
Agent: db_query("DROP TABLE users")
→ Classified: db.danger.ddl
→ AgentsID: BLOCKED ✗
→ Never executes
Agent: git_run("push origin main")
→ Classified: git.write.push
→ AgentsID: BLOCKED ✗
→ Never executesQuick Start
1. Install
npx @agentsid/guard2. Get your keys
Sign up at agentsid.dev/dashboard — free tier: 25 agents, 10K events/month.
3. Add to Claude Code
claude mcp add guard \
-e AGENTSID_PROJECT_KEY=aid_proj_your_key \
-e AGENTSID_AGENT_TOKEN=aid_tok_your_token \
-- npx @agentsid/guard4. Set permissions
npx agentsid register-agent --name "my-agent" \
--permissions "shell.read.*" "file.read" "file.list" "git.read.*" "http.get"Tools
AgentsID Guard exposes 11 MCP tools:
Tool | What it does | Permission pattern |
| Execute a shell command |
|
| Read a file |
|
| Write/create a file |
|
| Delete a file |
|
| List directory contents |
|
| Get file metadata |
|
| Run a SQL query |
|
| Run a git command |
|
| Make an HTTP request |
|
| Check if an action would be allowed | — |
| List all permission categories | — |
Permission Categories
Shell
Pattern | Commands | Risk |
| ls, cat, grep, find, ps, df, curl, ping | Safe |
| mkdir, touch, cp, mv | Moderate |
| rm, chmod, chown, kill | High |
| sudo, docker, apt, npm, systemctl | Critical |
Files
Pattern | Operations | Risk |
| Read file contents | Safe |
| List directories | Safe |
| File metadata | Safe |
| Create/write files | Moderate |
| Delete files | High |
Database
Pattern | Statements | Risk |
| SELECT, SHOW, DESCRIBE, EXPLAIN | Safe |
| INSERT | Moderate |
| UPDATE | Moderate |
| CREATE | Moderate |
| DELETE | High |
| DROP, TRUNCATE, ALTER | Critical |
Git
Pattern | Commands | Risk |
| status, log, diff, branch, show, blame | Safe |
| add, commit, push, pull, merge, checkout, stash | Moderate |
| reset, force-push | Critical |
HTTP
Pattern | Methods | Risk |
| GET | Safe |
| POST | Moderate |
| PUT | Moderate |
| DELETE | High |
Permission Examples
Read-only research agent:
shell.read.* → allow
file.read → allow
file.list → allow
db.read → allow
git.read.* → allow
http.get → allowDeveloper agent (read + write, no destructive):
shell.read.* → allow
shell.write.* → allow
file.read → allow
file.write → allow
file.list → allow
db.read → allow
db.write.* → allow
git.read.* → allow
git.write.* → allow
http.get → allow
http.post → allowFull access with approval gates:
shell.read.* → allow
shell.write.* → allow
shell.danger.* → allow (requires approval)
shell.admin.* → allow (requires approval)
file.* → allow
db.read → allow
db.write.* → allow
db.danger.* → allow (requires approval)
git.* → allow
http.* → allowEnvironment Variables
Variable | Required | Description |
| Yes | Your AgentsID project key |
| Yes | Agent token for permission checks |
| No | API URL (default: https://agentsid.dev) |
| No | Working directory (default: cwd) |
| No | Command timeout in ms (default: 30000) |
| No | Comma-separated allowed directories for file ops (default: cwd) |
| No | Database connection string for db_query (postgresql://, mysql://, or .db path) |
Security
Deny-first — unknown commands and tools are blocked by default
Path containment — file operations restricted to allowed directories
Fail-closed — network errors to AgentsID result in denial, not bypass
Audit trail — every allow and deny logged to AgentsID's tamper-evident hash chain
No shell injection — commands executed via
execSyncwith no shell interpolation of user input in tool arguments
Dashboard
Every operation appears in your AgentsID dashboard:
Which agent ran which command
Whether it was allowed or denied and why
Full audit trail across all 5 categories
Links
AgentsID — Identity & auth for AI agents
License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AgentsID-dev/shell-guard'
If you have feedback or need assistance with the MCP directory API, please join our Discord server