Skip to main content
Glama
nan1010082085

dsh-mcp-sync

dsh-mcp-sync

DSH (DeepSeek Harness) plugin: Automatically sync MCP configurations from local Claude Code / Codex CLI / Cursor Agent, deduplicate and filter, centralized management, supports custom MCP.

Capabilities

Capability

Description

Three-source sync

Automatically scan MCP configuration files of Claude Code, Codex CLI, and Cursor Agent

Smart deduplication

Deduplicate by command + args or url, show the same service only once, mark source

Centralized display

Sidebar "MCP Configurations" tab, unified view of all MCP services

Source labeling

Each service shows source badge (Claude / Codex / Cursor / Custom)

Custom MCP

Supports adding custom MCP services (stdio or sse type), stored in ~/.dsh/mcp-sync/custom.json

Settings integration

Configure sync options in settings page (enable/disable sources, dedup strategy, etc.)

Real-time refresh

Supports manual refresh, auto-update on config file changes

Related MCP server: myAI Memory Sync

Data Sources

Source

Configuration Path

Format

Claude Code

~/.claude/claude_desktop_config.json

JSON (mcpServers)

Cursor Agent

~/.cursor/mcp.json

JSON (mcpServers)

Codex CLI

~/.codex/config.toml

TOML ([mcp_servers])

Custom

~/.dsh/mcp-sync/custom.json

JSON

How It Works

  • Server half (lib/index.jslib/sources.js + lib/routes.js): scan the three-source MCP configuration files, parse JSON/TOML format, cache by (mtime); GET /api/dsh-mcp-sync/* provides three read-only interfaces: status, service list, and raw configuration.

  • Deduplication logic: generate a fingerprint by command + args (stdio type) or url (sse type); services with the same fingerprint are merged into one entry, preserving all sources.

  • Browser half (lib/client.js, zero-build handwritten ModuleLoader factory): registered as a tab of dsh-better-sidebar, displays the deduplicated MCP service list, supports filtering by source and search.

Installation

# 从 npm 安装(推荐)
dsh plugin --profile web add dsh-mcp-sync

# 重启 dsh web 生效

dsh plugin will automatically append packages that declare dsh.bundle into the profile's dsh.profile.bundles.

Dependencies

Requires the dsh-better-sidebar plugin (provides the sidebar tab system).

Configuration

Zero configuration by default. When adjustments are needed, override by id in the profile's cordis.patch.yml (~/.dsh/profiles/web/cordis.patch.yml):

- id: mcp-sync
  config:
    enabled: true
    autoSync: true          # 启动时自动同步
    syncInterval: 60000     # 定时同步间隔(ms),0 关闭
    dedupeByCommand: true   # 按 command+args 去重
    sources:
      claude: true          # 扫描 Claude Code 配置
      codex: true           # 扫描 Codex CLI 配置
      cursor: true          # 扫描 Cursor Agent 配置

API (all loopback-only)

Route

Description

GET /api/dsh-mcp-sync/status

Source availability / service count / last sync time

GET /api/dsh-mcp-sync/servers?source=

Deduplicated MCP service list (filterable by source)

GET /api/dsh-mcp-sync/config?source=

Raw configuration file content for each source

GET /api/dsh-mcp-sync/custom

Custom MCP service list

POST /api/dsh-mcp-sync/custom

Add custom MCP service (body: {name, config})

DELETE /api/dsh-mcp-sync/custom?name=

Delete custom MCP service

Development

node --check lib/index.js lib/sources.js lib/routes.js lib/client.js

License

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A tool that helps manage and synchronize MCP server configurations across different AI assistant clients (Cline, Roo Code, WindSurf, Claude), automating the process of retrieving, listing, adding, and removing server configurations from client configuration files.
    6
    12
    1
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP tool that synchronizes user preferences, personal details, and code standards across multiple Claude interfaces, allowing users to maintain consistent personalized AI interactions without repeating themselves.
    7
    -
  • A
    license
    B
    quality
    F
    maintenance
    Enables orchestrating multiple AI CLI agents (Claude Code, Codex, Gemini CLI, Copilot CLI) through a unified MCP interface for task delegation, cross-agent comparison, and specialized tools like code review and debugging.
    14
    13
    14
    MIT