# repoward

> repoward is an MCP server for security. GitHub server that stops agents leaking private repo data, with approvals and audit. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/sanoy24/repoward
- **MCP Registry name:** io.github.Sanoy24/repoward
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

The threat it targets is a chain of individually allowed calls: an agent reads a malicious public issue, reads a private repository, then posts the contents in a public pull request. Before each write, repoward checks what the agent has already read. After a private read, writes to public repositories are denied; after reading text from an author outside owner, member or collaborator, each write needs human approval.

Every attempt, including unknown tools and bad arguments, goes through one pipeline: policy check (default-deny YAML), flow guard, rate limit, approval, hash-chained audit log, then the tool. Read tools include github_get_file and ci_get_job_logs; writes reach only branches with a configured prefix, agent/ by default, and pull requests are draft only by default.

The README is explicit about limits: it is alpha, has had no independent security review, and is not a boundary if the agent has a shell under the same OS user.

## Features

- **Flow guard:** Denies public writes after private reads and requires approval after untrusted input.
- **Default-deny policy:** YAML roles, repository allowlists and path denylists.
- **Audit log:** Hash-chained record of every decision, with optional HMAC.
- **Approvals:** Dangerous tools need one-time approval tied to an exact call and commit.
- **Untrusted-text wrapping:** GitHub text is wrapped, cleaned and redacted before the model sees it.
- **Policy replay:** Shows which past decisions an edit would change.

## Good for

- Give a CI bot limited GitHub access with an audit trail
- Stop a prompt-injected issue from leaking private code
- Require human approval before merges
- Review how a policy change would have affected past calls

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add repoward --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- uvx repoward
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "repoward": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add repoward --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- uvx repoward
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.repoward]
command = "uvx"
args = ["repoward"]
env = { GITHUB_TOKEN = "<GITHUB_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e GITHUB_TOKEN='<GITHUB_TOKEN>' repoward uvx -- repoward

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "repoward": {
      "command": "uvx",
      "args": [
        "repoward"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 12 tools deletes data and 4 change data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `github_list_issues` (name suggests: reads): Lists issues.
- `github_get_issue` (name suggests: reads): Reads an issue.
- `github_search_code` (name suggests: reads): Searches code.
- `github_get_file` (name suggests: reads): Reads a file.
- `ci_get_status` (name suggests: reads): Reads CI status.
- `ci_get_job_logs` (name suggests: reads): Reads CI job logs.
- `github_create_branch` (name suggests: changes): Creates a branch.
- `github_commit_files` (name suggests: changes): Commits files.
- `github_create_pull_request` (name suggests: changes): Opens a pull request, draft by default.
- `github_comment`: Posts a comment.
- `github_merge_pull_request` (name suggests: changes): Merges; needs human approval.
- `github_delete_branch` (name suggests: deletes): Deletes a branch; needs human approval.

## FAQ

### What does repoward need to run?

uv, a policy file made with uvx repoward init, and a fine-grained GITHUB_TOKEN limited to your policy's repositories.

### Is repoward a security boundary?

Only when the agent's sole route to GitHub is this server; with a shell on the same OS user the README says it is not.

### What maturity is repoward?

Alpha, version 0.4.0, without an independent security review.

### How do I add repoward to Claude Code?

Run this command in your terminal: claude mcp add repoward --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- uvx repoward

### What are the best alternatives to repoward?

The closest alternatives to repoward are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/repoward
