MCP Hub
Back to servers

VS Code + GPT Bridge

A bridge for GPT Desktop to interact with local file systems and execute terminal commands. It enables natural language control over file operations, directory management, and system tasks like shell command execution and Git status checks.

Tools
9
Updated
Jan 9, 2026
Validated
Jan 11, 2026

MCP Server - VS Code + GPT Bridge

Setup

  1. Install Dependencies:
cd mcp
pip install -r requirements.txt
  1. GPT Desktop mein Add karo:

Windows:

  • File Explorer mein jao: %APPDATA%\OpenAI\ChatGPT\
  • config.json file banao (agar nahi hai)
  • Ye paste karo:
{
  "mcpServers": {
    "vscode-mcp": {
      "command": "python",
      "args": ["c:\\Users\\DEV\\UE5\\mcp\\server.py"]
    }
  }
}
  1. GPT Desktop restart karo

  2. Test karo: GPT se bolo: "List files in c:\Users\DEV\UE5"

Available Tools

File Operations

  • read_file - File read karo
  • write_file - File create/write karo
  • edit_file - Specific lines edit karo
  • delete_file - File delete karo
  • list_directory - Directory list karo
  • search_files - Files search karo
  • create_directory - Directory banao

Command Operations

  • run_command - Shell commands run karo
  • git_status - Git status check karo

Usage Example

GPT Desktop mein directly bolo:

  • "Read the file c:\Users\DEV\UE5\test.py"
  • "Create a new file hello.py with hello world code"
  • "List all files in c:\Users\DEV\UE5"
  • "Run command 'dir' in my workspace"

API Endpoints

  • GET / - Server status
  • GET /tools - Available tools list
  • POST /execute - Execute tool

Test karo:

curl http://localhost:8000/tools

Reviews

No reviews yet

Sign in to write a review