# repo-bridge-mcp [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/zcrossoverz/repo-bridge  
**GitHub Stars:** 4  
**npm Downloads (last month):** 6351  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/repo-bridge-mcp

## Description
MCP server that turns ChatGPT Web into a real coding agent on your own repositories: read, search, edit, build, test, git, pull requests. OAuth 2.1. No OpenAI API key.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "repo-bridge-mcp": {
    "command": "npx",
    "args": ["-y","repo-bridge-mcp"],
    "env": {
      "REPO_BRIDGE_WORKSPACES": "",
      "REPO_BRIDGE_TOKEN": "",
      "REPO_BRIDGE_AUTH": "",
      "REPO_BRIDGE_PERMISSION": ""
    }
  }
}
```

**Requires environment variables:** `REPO_BRIDGE_WORKSPACES`, `REPO_BRIDGE_TOKEN`, `REPO_BRIDGE_AUTH`, `REPO_BRIDGE_PERMISSION` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What repo-bridge-mcp does

repo-bridge-mcp provides an MCP interface for working on repositories from an AI coding session. It can inspect a project, search and modify files, execute supported development commands, manage local Git state, and create pull requests or merge requests. Work can begin with a repository already on disk, or with a GitHub or GitLab repository cloned into an isolated managed workspace.

The server is intended for workflows such as implementing a change, running the relevant checks, investigating failures, committing on a branch, and opening a review request. Its `workspace_open` operation gathers repository languages, build tooling, detected build, test, and lint commands, module structure, Git state, and project instruction files such as `AGENTS.md` or `CLAUDE.md`.

## How it works

The MCP client supplies the model reasoning, while repo-bridge-mcp performs the requested repository operations. It does not call an OpenAI or other LLM API and does not contain model logic. For local use, the server can run over stdio. ChatGPT Web uses the HTTP endpoint with OAuth 2.1, dynamic client registration, and PKCE; a tunnel such as Cloudflare Tunnel can expose the local HTTP service.

Permission is selected when the process starts. `read_only` exposes inspection tools, `edit` adds file creation and modification, `develop` also allows builds, tests, linting, approved commands, and local Git operations, and `full` adds pushing and pull or merge request creation. Tools above the selected level are not advertised to the model. ChatGPT also asks for confirmation before write actions, commands, and Git operations by default.

## Setup and configuration

Node.js 22 or newer and Git are required. `ripgrep` is optional and can speed up searches in large repositories. The package can be launched with `npx repo-bridge-mcp --stdio`, installed globally with npm, or built from a source checkout.

For stdio clients, provide repositories through `REPO_BRIDGE_WORKSPACES`, for example `demo=/path/to/project`. ChatGPT Web requires HTTP mode, `REPO_BRIDGE_AUTH=oauth`, a generated `REPO_BRIDGE_TOKEN`, and a workspace list. The connector is added from ChatGPT's Developer mode under Settings, Connectors, and Advanced. The OAuth flow uses a passphrase entered during browser authorization.

Authentication modes also include `path-token` for development tunnels, curl, and MCP Inspector, and `none` for loopback use. Public use with `none` is refused unless explicitly overridden. `REPO_BRIDGE_PERMISSION` controls the operation level independently from authentication.

## Tools and capabilities

The server exposes 30 tools at the `full` permission level, grouped into several areas:

- Workspace discovery, opening, closing, status inspection, and remote repository cloning.
- Directory listing, file reads, code search, file finding, writing, anchored edits, moves, deletion, directory creation, and file metadata.
- Command execution, build, test, and lint operations. Test execution can identify common ecosystems including Maven, Gradle, npm, pnpm, yarn, pytest, Cargo, Go, .NET, and Make.
- Git status, diffs, logs, branches, commits, pushes, synchronization, and restoration.
- Pull request or merge request creation and change reporting.

The operator CLI includes commands to list authorized clients and revoke an authorization. Session state can be resumed later with branch, working-tree, and bridge changes preserved.

## Limitations and notes

ChatGPT Web requires a Plus or Pro plan for custom MCP connectors in Developer mode; the free tier cannot add them. Business, Enterprise, and Edu access is described as beta. Plan rate limits still apply.

The server requires an explicit permission choice and uses workspace sandboxing, an executable allowlist, protected branches, unreadable credential files, OAuth 2.1, and audit logging as part of its security model. Repository content can still influence the model, so deployments should use an appropriate permission level and workspace scope. Code remains on the local machine or VPS rather than being sent to a cloud coding agent, while the bridge receives tool-call arguments from the client.

_Full upstream README: https://allmcps.com/mcp/repo-bridge-mcp/readme_

