GG MCP
GG MCP for VSCode enables you to run a local Model Context Protocol (MCP) server directly within your VS Code workspace. This extension acts as a high-performance bridge between your local codebase and AI assistants like Claude Desktop, Cursor, and Windsurf. By establishing a compliant MCP connection, it allows AI agents to perform complex development tasks—such as reading files, editing code, and executing terminal commands—securely within your local environment.

Key Features
- Multi-IDE Compatibility: Full support for VS Code, Cursor, Windsurf, and Antigravity via MCP clients.
- Claude Desktop Integration: Seamlessly handles development requests from Claude, enabling autonomous programming and codebase analysis.
- Zero Configuration: Automatically initializes a local MCP server upon launching VS Code.
- Comprehensive Toolset:
- 📂 File Operations: Advanced capabilities to read, write, create, and patch files.
- 💻 Terminal Control: Execute commands, manage background tasks, and capture real-time output.
- 🔧 Git Integration: Streamlined workflow for commits, pushes, pulls, diff viewing, and branch management.
- 🐛 Debugging: Manage breakpoints and launch configurations programmatically.
- 🔍 Code Analysis: Deep inspection of symbols, references, and definitions.
- Secure Architecture: The server binds exclusively to
localhostto ensure your data remains private. - Intelligent Port Management: Built-in automatic port conflict resolution and status monitoring.
- Cross-Platform Support: Optimized for Windows, macOS, and Linux environments.
- Performance Optimization: Features internal file caching to reduce disk I/O and improve response latency.
Quick Start
1. Install the Extension
- Search for GG MCP for VSCode in the VS Code Marketplace and click install.
- Alternatively, use the direct link: Install via VS Code.
2. Recommended Setup
To get the most out of the extension, we recommend the following integrations:
- Claude Desktop: Connect your codebase to Claude for automated coding assistance and direct read/write access.
- MCPxHub: Enhance your experience using the MCPxHub plugin for advanced server management.
3. Verify Server Status
Once installed, the MCP server starts automatically. Monitor the status via the VS Code status bar in the bottom-right corner:
- 🔄 MCP Server: The server is currently initializing.
- 🔌 [Port]: The server is active and listening (e.g.,
🔌 9961). - ❌ MCP Server: An error occurred during startup.
You can click the status bar item at any time to view detailed logs or manually restart the server.
4. Using with AI Assistants
Once active, your MCP-compliant AI assistant can:
- Analyze the entire project structure.
- Read and modify specific source files.
- Execute terminal commands to run tests or builds.
- Perform complex refactoring tasks across multiple files.
Automated Development Capabilities
When paired with Claude Desktop, GG MCP for VSCode empowers the AI to handle:
- Feature Implementation: Write and integrate new features from a natural language prompt.
- Bug Fixing: Identify issues and apply patches directly to the source.
- Refactoring: Execute large-scale code improvements with awareness of project symbols.
- Architecture Suggestions: Get high-level design advice based on your actual code structure.
Configuration Options
Fine-tune the extension behavior by searching for ggMCP in your VS Code settings:
- Port Range: Define the range of ports the server should attempt to bind to.
- Terminal Timeout: Set the maximum duration for executed terminal commands.
- File Caching: Enable or disable the caching mechanism to balance performance and memory usage.
- Auto-Reload: Configure how the server responds to file modifications in the workspace.
Extension Commands
Access these commands via the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):
MCP: Show Server Status: Displays current connection details and active tools.MCP: Restart Server: Manually cycles the MCP server instance.
Available Tools (44 total)
| Category | Count | Examples |
|---|---|---|
| Editor Tools | 5 | get_open_in_editor_file_text, replace_selected_text, open_file_in_editor |
| File Tools | 9 | get_file_text_by_path, create_new_file_with_text, replace_specific_text |
| Code Analysis | 3 | get_symbols_in_file, find_references, refactor_code_at_location |
| Debug Tools | 4 | toggle_debugger_breakpoint, run_configuration |
| Terminal Tools | 5 | execute_terminal_command, run_command_on_background, get_terminal_info |
| Git Tools | 10 | get_project_vcs_status, commit_changes, switch_branch, get_file_diff |
| Project Tools | 2 | get_project_modules, get_project_dependencies |
| Action Tools | 3 | list_available_actions, execute_action_by_id |
Resource Links
- Documentation: For complete API details and examples, see INTERFACE.md.
- Source Code: Visit the GitHub Repository.
- Issue Tracking: Report bugs or request features on the GitHub Issues page.
- Protocol Specs: Learn more about the Model Context Protocol Specification.
Version History
Changelog
All notable changes to the GG MCP for VSCode extension will be documented in this file.
[1.3.0] - 2024-12-09
Changed
- Better UX: Replaced intrusive pop-up dialogs with subtle status bar messages.
- Auto Port Management: Automatically resolves port conflicts and manages server connections.
- UI Update: Status bar now clearly displays the active server port.
[1.2.4] - 2024-12-08
Changed
- Stability: Fixed issues with file line endings and improved test reliability.
- Documentation: Standardized documentation structure for better readability.
[1.2.1] - 2025-12-07
Documentation
- Updated guide with clearer setup instructions for Antigravity, Cursor, and Windsurf.
[1.2.0] - 2025-12-07
Added
- New Tools:
replace_specific_text: Precision text replacement.append_file_content: Add text to the end of files.rewrite_file_content: Completely update file contents.run_command_on_background: Execute long-running commands.get_terminal_info: View terminal system details.
- Git Integration: Added suite of Git tools (
get_file_history,commit_changes,switch_branch, etc.). - Performance: Added file caching for faster operations.
Changed
- Documentation: Complete rewrite of tool documentation with examples.
- Standardization: Updated API responses to fully comply with MCP standards.
- Protocol: Upgraded to standard JSON-RPC 2.0.
[1.1.1] - 2025-03-30
Added
- Rebranding: Updated display name to "GG MCP for VSCode".
- Localization: Improved Chinese language support.
[1.0.0] - 2025-03-22
Released
- Initial Release: Launched with core file and editor operation tools.
- Localization: Added Chinese documentation.