Skip to main content
Glama
README.md
# DevBridge

**Connect your AI assistant to your local VS Code workspace. Stay in control of what it can do.**

DevBridge is a free, open-source VS Code extension that lets compatible MCP clients work with your project files, editor diagnostics, Git and local tools. You choose the folders, permissions and credentials. No DevBridge account or hosted backend is required.

## What you can do

- Connect ChatGPT, Claude, Gemini or another compatible MCP client.
- Let your assistant read, search and edit selected projects, run tests and inspect Git.
- Choose Allow, Ask or Deny for each permission group.
- View tool requests, responses and running command logs in the Activity page.
- Pause, rotate or revoke an agent credential at any time.
- Share multiple authorized folders or VS Code windows through one gateway.

## Get started

### 1. Install DevBridge

Download the latest `.vsix` from [GitHub Releases](https://github.com/abdul-karim-mia/DevBridge/releases). In VS Code, open **Extensions**, select the **…** menu, then **Install from VSIX**. Reload VS Code if prompted.

Alternatively, run `code --install-extension path/to/devbridge.vsix`.

### 2. Choose a connection

Open a trusted local project and select DevBridge in the VS Code Activity Bar. Choose a provider in **Settings → Connection setup**.

| Provider | When to use it |
| --- | --- |
| Localhost | A client running on your own computer |
| ngrok | Remote access with a configured stable hostname |
| Cloudflare Quick Tunnel | Temporary remote testing without a fixed hostname |
| Cloudflare Named Tunnel | Remote access with your own configured tunnel |

Remote providers may have account requirements, usage limits or costs. DevBridge itself is free. Temporary endpoints may change after reconnecting.

### 3. Set permissions and connect

Go to **Access** and select a permission preset or customize the rules. Select **Connect gateway** on Home, review the folders and remote-access confirmation, then wait for the verified connection.

### 4. Connect your AI client

Select **Connect agent**, pick a client tab, choose the folders and credential lifetime, acknowledge the privacy warning, and select **Create & copy**.

- **ChatGPT / Gemini:** copy a private MCP URL into a compatible remote MCP connection. Select No authentication if the client offers that option; the URL itself contains a credential.
- **Claude:** copy the bearer-header JSON configuration into a client that supports it.
- **Custom:** choose JSON, private URL, bearer token, or legacy SSE if enabled.

Client support depends on the application, plan and version. Not all MCP clients accept every connection format. Never post the copied credential publicly.

## Your control center

| Page | What it does |
| --- | --- |
| Home | Connect, disconnect, restart and see gateway health |
| Agents | Create credentials, manage grants, pause, rotate or revoke |
| Access | Select workspaces and edit default permissions |
| Activity | Expand requests/responses, inspect process logs and stop jobs |
| Settings | Configure providers, runtime limits and diagnostic capture |

## Permissions and privacy

Start with Observer for read-only access or Developer for scoped editing. Default rules apply to new agents; existing agents have their own workspace grants. Shell execution has a separate workspace-wide rule under Access. Allow runs scripts without a per-script prompt; Ask requests review; Deny blocks scripts. Some sensitive operations always need approval.

**DevBridge is not an operating-system sandbox.** Commands can run with your OS privileges and access files outside the selected folders. Only connect trusted agents to trusted projects. Tunnel providers and AI clients can process the data they receive. Redaction is best effort.

Tool detail capture stays in bounded session memory and can be disabled. Saved credentials are represented by digests; disconnecting stops the gateway but does not revoke credentials. Rotate or revoke a leaked credential immediately.

## Troubleshooting

- **Connection fails:** check provider configuration and local output in Settings. For a stale ngrok session, Connect can replace a recorded local tunnel; a matching untracked process may require confirmation. Remote conflicts may need the provider dashboard.
- **Client cannot connect:** verify the gateway is Online, the URL is current, the credential is not expired or paused, and the client supports the selected transport.
- **Operation denied:** check Access and the agent's workspace and operation rules.
- **No command output:** open Activity → Processes and expand the job.

Report reproducible problems in [Issues](https://github.com/abdul-karim-mia/DevBridge/issues). Do not include tokens, private URLs or confidential logs.

## Open source

DevBridge is licensed under the [MIT License](LICENSE). Contributions are welcome! See [Contributing](CONTRIBUTING.md), [architecture](docs/ARCHITECTURE.md), [security](SECURITY.md) and [changelog](CHANGELOG.md). Third-party icon attribution is in [Third-party notices](THIRD_PARTY_NOTICES.md).