Skip to main content
Glama
Universal Local IDE & Workspace MCP Bridge

Universal Local IDE & Workspace MCP Bridge

alt text

Universal Local IDE & Workspace MCP Bridge πŸš€

Connect Web AI assistants (ChatGPT, Claude Web) and MCP clients directly and securely to ANY local IDE or developer workspace (VS Code, Cursor, Windsurf, JetBrains / IntelliJ / PyCharm, Antigravity, Zed, Neovim, Terminal) β€” with multi-user isolation, zero open ports, and live interactive terminal logs.

License: MIT Python 3.10+ MCP FastMCP Deploy with Vercel


πŸ’‘ How It Works

Cloud AI models (ChatGPT, Claude Web) cannot reach into your computer because of firewalls and Wi-Fi NAT.

Universal IDE MCP Bridge creates an on-demand, outbound connection between your local computer and your hosted MCP Gateway:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚       Web AI Assistant               β”‚
β”‚             (ChatGPT / Claude)       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β”‚ 1. Tool Call + Your Private Token
                   β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Cloud MCP Gateway (Hosted on Vercel)                   β”‚
β”‚ - Authenticates your private token                     β”‚
β”‚ - Routes tasks exclusively to your computer            β”‚
β”‚ - Supports Upstash Redis for distributed persistence   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–²β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                   β”‚ 2. Outbound polling (Zero inbound ports!)
                   β”‚    Works behind any Wi-Fi or router
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Your Local Computer (On-Demand Bridge Session)         β”‚
β”‚ - Run whenever you want, just like `npm run dev`       β”‚
β”‚ - Live real-time debug logs for every tool & action    β”‚
β”‚ - Reads & edits files, runs terminal/git commands      β”‚
β”‚ - Sandboxed strictly to your chosen projects folder    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Related MCP server: DevSpace Local Artifacts

πŸš€ 3-Step Setup Guide (ZERO Git Cloning Required)

You do NOT need to clone this GitHub repository to connect your computer. You only need the single standalone bridge.py script.


Step 1: Download bridge.py Globally

Open your terminal in your root projects directory (for example C:\projects on Windows or ~/projects on macOS/Linux), and download the single bridge file:

Windows (PowerShell or Command Prompt):

curl.exe -o bridge.py https://vscode-antigravity-mcp.vercel.app/bridge.py

macOS / Linux:

curl -o bridge.py https://vscode-antigravity-mcp.vercel.app/bridge.py

(You can place this single bridge.py file anywhere on your computer β€” no additional project files or repositories needed.)


Step 2: Set Your Token & Projects Folder Path

Configure your bridge with your private authentication token and the parent directory containing your code repositories. Using the --save flag saves these settings globally so you only have to do this once:

python bridge.py --save --root "C:\projects" --key "YOUR_SECRET_KEY"
  • --root: The folder containing all your projects (e.g. C:\projects or /Users/username/projects). Your Web AI will be able to navigate and work across any project inside this folder.

  • --key: Your private auth token (e.g. D4_PROJECT_MCP_SERVER or any custom secret key).

  • --save: Saves this configuration globally to ~/.universal_ide_bridge.json.

πŸ›‘οΈ Windows Users (Optional One-Time Step): To prevent Windows Defender from holding or timing out tool commands (e.g. npm install, git, tests), run once:

python bridge.py --allow-defender

(Click Yes on the Windows UAC prompt to permanently whitelist your projects and Python).

Verify Your Saved Configuration Anytime:

python bridge.py --show-config

Output:

πŸ“ Current Saved Global Bridge Configuration:
   Config file: C:\Users\Admin\.universal_ide_bridge.json
   Server:      https://vscode-antigravity-mcp.vercel.app
   Root:        C:\projects
   Token:       YOUR_SECRET_KEY

Step 3: Run the Bridge (On-Demand Like npm run dev)

Whenever you want to use the AI assistant with your local code, run:

python bridge.py

(Or if installed globally, simply run ide-bridge or mcp-bridge)

What Happens When You Run It:

  1. Interactive Console: Launches an active developer session with live status streaming.

  2. Real-Time Debug Logs: Every time ChatGPT or Claude executes a tool, the parameters, execution time (in ms), and output preview are printed in real-time.

  3. Stop Anytime: Press Ctrl+C in your terminal to cleanly disconnect and stop the bridge.

╔════════════════════════════════════════════════════════════════════════════╗
β•‘              πŸš€ Universal IDE Bridge (On-Demand Dev Session)               β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
πŸ“ Projects Root:    C:\projects
🎯 Active Workspace: C:\projects\my-app
🌐 Cloud Gateway:    https://vscode-antigravity-mcp.vercel.app
πŸ”‘ Auth Token:       YOUR_SEC..._KEY
🟒 Status:           ACTIVE & LISTENING (Press Ctrl+C to stop)
────────────────────────────────────────────────────────────────────────
πŸ’‘ Ready! When ChatGPT or Claude calls a tool, logs will stream below:

[21:30:15] πŸ’š Gateway heartbeat confirmed (latency: 38ms) | Status: Healthy

──────────────────────────────────────────────────────────────────────
⚑ [21:30:28] INCOMING AI REQUEST: get_active_project
πŸ“¦ Parameters: {}
πŸ“ Target Project: my-app (C:\projects\my-app)
βš™οΈ Executing local action...
βœ… Local execution completed successfully in 5.8ms
πŸ“Š Result: {"projects_root": "C:\\projects", "active_project": "my-app", "git_branch": "main"}
πŸš€ Delivered result to AI assistant in 12ms (attempt 1)
──────────────────────────────────────────────────────────────────────

πŸ›‘ Bridge session stopped by user (Ctrl+C). Clean shutdown complete.
πŸ‘‹ Goodbye!

🌐 Web AI Connection Details (At a Glance)

Connect any Web AI Chat in your browser to your local computer:

Platform

Endpoint URL

Format / Protocol

ChatGPT Web (Custom GPTs / Actions)

https://vscode-antigravity-mcp.vercel.app/openapi.json

OpenAPI Schema Actions (Direct REST)

ChatGPT Web (MCP Connectors)

https://vscode-antigravity-mcp.vercel.app/mcp?token=YOUR_SECRET_KEY

StreamableHTTP

Claude Web (Custom Connectors)

https://vscode-antigravity-mcp.vercel.app/mcp?token=YOUR_SECRET_KEY

StreamableHTTP (Official Claude Connector standard)

Authentication Header

Authorization: Bearer YOUR_SECRET_KEY

Enter your secret key in the connector settings

URL Query Token Option

?token=YOUR_SECRET_KEY

Append token directly in URL


πŸ’» Browser AI Setup Walkthrough

🟒 1. ChatGPT Web (chatgpt.com Custom GPT Actions β€” Recommended)

  1. In your browser, open chatgpt.com.

  2. Go to Explore GPTs βž” + Create (top right) βž” Configure tab.

  3. Click Create new action:

    • Authentication Type: API Key βž” Bearer βž” Enter YOUR_SECRET_KEY.

    • Schema: Click Import from URL βž” Enter:

      https://vscode-antigravity-mcp.vercel.app/openapi.json
    • Click Import. ChatGPT imports all tools immediately!

  4. Click Create / Save βž” Select Only me.

  5. Start chatting with your local projects in ChatGPT!


🟣 2. Claude Web (claude.ai Custom Connectors)

  1. Open claude.ai in your browser.

  2. Click your user profile icon (bottom left) βž” Settings βž” Connectors (or + Add βž” Custom connector).

  3. Fill in:

    • Name: Universal IDE Bridge

    • URL:

      https://vscode-antigravity-mcp.vercel.app/mcp?token=YOUR_SECRET_KEY
  4. Click Continue. Claude connects over official StreamableHTTP and discovers all 17 tools instantly!


πŸ› οΈ Complete Tools Reference (17 Tools)

πŸ“‚ Multi-Project & Workspace Navigation

Tool

Description

list_projects()

Discovers and lists all project folders, detected tech stacks, and Git branches across your system.

set_active_project(project_name)

Switches the active project context to a different folder on your machine.

get_active_project()

Inspects current active project name, workspace path, and Git status.

get_workspace_context()

Queries overview of active workspace, Git branch, and working changes.

πŸ“ File & Directory Operations

Tool

Description

read_workspace_file(path, [max_lines], [start_line], [project])

Reads lines or full contents of any file with line numbering.

write_workspace_file(path, content, [project])

Creates or replaces files in your workspace.

edit_workspace_file(path, old_str, new_str, [project])

Finds and replaces specific code blocks in a file.

create_directory(path, [project])

Creates a new directory (and any necessary parent directories).

delete_file(path, [recursive], [project])

Deletes a file or directory (recursive=True for directories).

move_or_rename_file(source_path, destination_path, [overwrite], [project])

Moves or renames files and directories cleanly.

get_file_info(path, [project])

Inspects file size, line count, permissions, extension, and timestamps.

list_workspace_directory(path, [max_depth], [project])

Explores directories and inspects the file tree.

Tool

Description

search_workspace_files(query, [path], [file_pattern], [project])

Fast regex/text search for functions, classes, or symbols across your codebase.

πŸ’» Terminals & Version Control

Tool

Description

run_powershell_command(command, [timeout_seconds], [project])

Native PowerShell command execution with full UTF-8 encoding support.

run_cmd_command(command, [timeout_seconds], [project])

Windows Command Prompt (cmd.exe) command and batch script execution.

run_git_command(subcommand, [timeout_seconds], [project])

Direct Git operations (status, diff, log, branch, commit, push, pull, etc.).

run_terminal_command(command, [timeout_seconds], [project])

Default system terminal command execution with configurable timeout.

check_command_status(job_id, [wait_seconds])

Wait for a long-running command and read its output (see below).

stop_command(job_id)

Terminate a long-running background command and its child processes.

Long-running commands never time out: a command that takes longer than ~25s (and whose timeout_seconds is above 25) keeps running in the background and the tool returns status: "running" with a job_id. The AI then calls check_command_status until it reports finished. Background commands are stopped after 30 minutes.


βš™οΈ CLI Reference (bridge.py)

Flag

Shorthand

Description

--root

-r

Path to parent directory containing all projects (e.g. C:\projects)

--key

-k, --token

User Auth Token (default: reads from config or .env)

--server

-s

Cloud MCP Gateway URL (default: https://vscode-antigravity-mcp.vercel.app)

--dir

Initial workspace directory (default: current directory)

--save

Saves the provided --root, --key, and --server as global defaults in ~/.universal_ide_bridge.json

--show-config

Displays current saved global defaults

--allow-defender

Automatically configures Windows Defender exclusions for Python and your code projects (requires UAC prompt)


πŸ›‘οΈ Windows Security & Defender Optimization (Fixing Timeouts)

If Windows Defender or AMSI blocks commands or causes connection timeouts while running tools (e.g. npm install, git, build scripts):

python bridge.py --allow-defender

Click Yes in the Windows UAC confirmation dialog to apply exclusions instantly.

Option 2: Download & Run allow_defender.bat (Zero-Clone)

If you prefer a double-clickable batch file, download it directly:

curl.exe -o allow_defender.bat https://vscode-antigravity-mcp.vercel.app/allow_defender.bat

Then double-click allow_defender.bat and click Yes in the UAC prompt.

Option 3: Manual Administrator PowerShell

Open PowerShell as Administrator and run:

Add-MpPreference -ExclusionPath "C:\projects"
Add-MpPreference -ExclusionProcess "python.exe"

☁️ For Admins: Deploying Your Own Gateway to Vercel

1. Click Deploy

Deploy with Vercel

2. Environment Variables in Vercel Settings

Variable

Description

Example

AUTH_TOKENS

Comma-separated list of token:user_id pairs

D4_PROJECT_MCP_SERVER:karthi

ADMIN_SECRET_KEY

Secret password for admin API endpoints

your_admin_secret_key

RELAY_TASK_TIMEOUT

Max seconds the gateway waits for the local bridge to answer one tool call (default: 50; keep below your host's function limit)

50

MCP_MESH_URL

Pub/sub server linking serverless instances when Redis is not configured (default: https://ntfy.sh; off disables)

off

UPSTASH_REDIS_REST_URL (Optional)

Upstash Redis REST URL for multi-container serverless persistence

https://your-redis.upstash.io

UPSTASH_REDIS_REST_TOKEN (Optional)

Upstash Redis REST Token

your_upstash_token

Tip for Vercel Serverless: If you enable free Upstash Redis (UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN), the gateway coordinates tasks across isolated serverless containers with 0% dropped tasks and 0 timeouts.


πŸ”’ Security & Sandboxing

  • Boundary Protection: The executor enforces strict root directory boundaries. Any attempt by the AI to access files outside your designated root (../../etc/passwd or C:\Windows) raises an immediate PermissionError.

  • Zero Inbound Ports: Your computer never opens an incoming network port. All communication uses outbound HTTPS polling.

  • Process Isolation: Terminal commands run inside isolated process groups with Windows taskkill /F /T tree-kill timeouts to prevent hanging child processes.

  • Safe Script Policies: PowerShell commands run with -ExecutionPolicy RemoteSigned to eliminate heuristic alarms from Defender AMSI.


πŸ“„ License

MIT License. Open-source and free for personal and commercial use.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      An MCP server that gives web AI assistants like ChatGPT and Claude Chat hands-on control over a local development machine, enabling them to read, edit, and execute code through a safe, policy-checked interface.
      1
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A self-hosted MCP server that lets ChatGPT securely read, edit, search, and run code in your local projects via an owner-approved connection.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      This self-hosted MCP server connects an MCP client such as ChatGPT to approved local project folders, enabling file reading and editing, code search, shell command execution, and Git worktree workflows without uploading code to a third party. It also supports mounting external stdio or Streamable HTTP MCP servers as dynamic capabilities.
      482 npm
      MIT