# opsgate MCP server

> Provides a secure, policy-checked interface for AI agents to manage infrastructure using typed tools and human approval gates.

- Repository: https://github.com/polymatx/opsgate
- Page: https://hostedmcp.org/servers/polymatx/opsgate
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.1.3

## Install

### Claude Code

```sh
claude mcp add opsgate -- docker run -i --rm ghcr.io/polymatx/opsgate:0.1.3
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "opsgate": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/polymatx/opsgate:0.1.3"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "opsgate": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/polymatx/opsgate:0.1.3"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "opsgate": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/polymatx/opsgate:0.1.3"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.opsgate]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/polymatx/opsgate:0.1.3"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "opsgate": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/polymatx/opsgate:0.1.3"
      ]
    }
  }
}
```

## FAQ

### What are the different operational modes?

It features three modes: observe (read-only), operate (writes require human approval), and full.

### Can I use opsgate with cloud-based AI agents?

Yes, you can serve opsgate over HTTP with a bearer token to allow sandboxed or web-based clients to reach it.

### Is the audit log secure?

Yes, every call and refusal is appended to a hash-chained JSONL log that is tamper-evident.
