# AgentGate

A gate for what your agent is allowed to do: policies approve harmless calls, block risky ones, and send the rest to a person.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 33
- Author: agentkitai
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/agentkitai/agentgate
- Updated: 2026-10-11
- HTML: https://affpapa.org/en/nevibecode/mcp/agentkitai-agentgate

## What it does

The agent asks before it acts. Send an email, remove a file, ship to production — each request hits a policy engine that answers on its own or hands the decision to a human. Approvals come through a web dashboard, Slack, Discord or email.

There are five packages: core with schemas and the policy engine, a Hono API server, a TypeScript SDK, the MCP server and webhook delivery that retries on failure. Storage runs on SQLite or PostgreSQL, and `docker compose up` brings the whole stack online.

You need Node.js with `npx`, plus a gateway already running somewhere. The bootstrap step prints the admin key once — a missing `AGENTGATE_API_KEY` will stop the demo and authenticated calls. Worth knowing: the MCP package is only the client side. No gateway, no one to approve anything.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add agentgate -- npx -y @agentkitai/agentgate-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add agentkitai-agentgate -- npx -y @agentkitai/agentgate-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "agentkitai-agentgate": {
            "command": "npx",
            "args": [
                "-y",
                "@agentkitai/agentgate-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "agentkitai-agentgate": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@agentkitai/agentgate-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add agentkitai-agentgate npx -y @agentkitai/agentgate-mcp
```

## When to use it
- let routine agent actions through without a manual check
- deny file deletion or deployment by rule
- route unclear requests to Slack, Discord or email
- keep a log of every request, decision and action
- start the gateway and its database with one `docker compose up`

## Example prompts
- Connect AgentGate and list the requests waiting for my decision
- Send a production deploy request through AgentGate and tell me which policy fired
- Set up a webhook for the decision event and confirm the retry went through

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [mcp](https://affpapa.org/en/nevibecode/mcp/kubeshark-mcp.md) — MCP server · ★ 12109
- [Robin: AI-Powered Dark Web OSINT](https://affpapa.org/en/nevibecode/mcp/robin-ai-powered-dark-web-osint.md) — MCP server · ★ 7658
- [jshookmcp](https://affpapa.org/en/nevibecode/mcp/jshookmcp.md) — MCP server · ★ 2061
- [OpenOSINT](https://affpapa.org/en/nevibecode/mcp/openosint.md) — MCP server · ★ 1802

## Other versions with the same name
- [agentgate · ciceroyang](https://affpapa.org/en/nevibecode/mcp/agentgate.md) — ★ 91

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
