Sponsored by Deepsite.site

MCP Server JSON Sync

Created By
danielrosehill7 months ago
Sync script for syncing VS Code MCP server JSON to Roo Code's store
Content

MCP Server JSON Sync

This repository contains scripts to synchronize Model Context Protocol (MCP) server configurations from VS Code to various AI assistants. It allows you to maintain a single source of truth for your MCP server configurations in VS Code and automatically sync them to multiple AI assistants.

Overview

The scripts extract the mcp.servers section from your VS Code settings.json file and write it to the corresponding configuration files for different AI assistants. Each sync is set up as a systemd timer that runs once per hour, ensuring your configurations stay in sync.

Currently supported targets:

  • Cline - Claude AI assistant in VS Code
  • RooCode - Anthropic's Roo AI assistant
  • Windsurf - Anthropic's Windsurf IDE

Repository Structure

MCP-Server-JSON-Sync/
├── vscode-to-cline/
│   ├── sync_mcp_config.py
│   └── install-sync-script.sh
├── vscode-to-roo/
│   ├── sync_mcp_config.py
│   └── install-sync-script.sh
└── vscode-to-windsurf/
    ├── sync_mcp_config.py
    └── install-sync-script.sh

Installation and Usage

VS Code to Cline Sync

  1. Navigate to the vscode-to-cline directory:

    cd vscode-to-cline
    
  2. Run the installer:

    ./install-sync-script.sh
    

VS Code to RooCode Sync

  1. Navigate to the vscode-to-roo directory:

    cd vscode-to-roo
    
  2. Run the installer:

    ./install-sync-script.sh
    

VS Code to Windsurf Sync

  1. Navigate to the vscode-to-windsurf directory:

    cd vscode-to-windsurf
    
  2. Run the installer:

    ./install-sync-script.sh
    

Each installer:

  • Copies the sync script to your ~/bin directory
  • Creates systemd service and timer units in your user directory
  • Sets up the timer to run the sync script once per hour
  • Enables and starts the timer

Manual Sync

In addition to the automated hourly sync, you can use the interactive manual sync script to immediately sync your MCP configurations to one or multiple target IDEs:

./manual-sync.sh

This will present a menu where you can select which target IDE(s) to sync to:

  • Cline
  • RooCode
  • Windsurf
  • All of the above

The script will execute the selected sync operations and provide feedback on the results.

How It Works

Each sync_mcp_config.py script:

  1. Reads the MCP server configurations from VS Code's settings.json
  2. Reads the existing configuration file for the target application (if it exists)
  3. Updates the MCP server section in the target configuration
  4. Writes the updated configuration back to the target file

This ensures that any MCP servers you configure in VS Code are automatically available in your other AI assistants.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
WindsurfThe new purpose-built IDE to harness magic
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Playwright McpPlaywright MCP server
CursorThe AI Code Editor
Amap Maps高德地图官方 MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
ChatWiseThe second fastest AI chatbot™
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
Tavily Mcp
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
DeepChatYour AI Partner on Desktop