Skip to main content
Glama
nan1010082085

dsh-mcp-sync

dsh-mcp-sync

DSH(DeepSeek Harness)プラグイン:ローカルの Claude Code / Codex CLI / Cursor Agent の MCP 設定を自動同期し、重複を除去・フィルタリングして一元管理。カスタム MCP もサポート。

機能

機能

説明

3元同期

Claude Code、Codex CLI、Cursor Agent の MCP 設定ファイルを自動スキャン

スマート重複除去

command + args または url で重複除去。同一サービスは1回のみ表示し、出典を明記

一覧表示

サイドバー「MCP 設定」タブで、すべての MCP サービスを統一的に表示

出典表示

各サービスに出典バッジ(Claude / Codex / Cursor / カスタム)を表示

カスタム MCP

カスタム MCP サービス(stdio または sse タイプ)の追加をサポート。~/.dsh/mcp-sync/custom.json に保存

設定統合

設定ページで同期オプション(ソースの有効/無効、重複除去ポリシーなど)を設定

リアルタイム更新

手動更新をサポートし、設定ファイルの変更を自動検出して更新

Related MCP server: myAI Memory Sync

データソース

ソース

設定パス

形式

Claude Code

~/.claude/claude_desktop_config.json

JSON (mcpServers)

Cursor Agent

~/.cursor/mcp.json

JSON (mcpServers)

Codex CLI

~/.codex/config.toml

TOML ([mcp_servers])

カスタム

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

JSON

動作原理

  • サーバーサイド(lib/index.js → lib/sources.js + lib/routes.js):3つのソースの MCP 設定ファイルをスキャンし、JSON/TOML 形式を解析、(mtime) でキャッシュ。GET /api/dsh-mcp-sync/* でステータス、サービス一覧、生設定の3つの読み取り専用インターフェースを提供。

  • 重複除去ロジック:command + args(stdio タイプ)または url(sse タイプ)でフィンガープリントを生成。同一フィンガープリントのサービスは1つにまとめ、すべての出典を保持。

  • ブラウザサイド(lib/client.js、ゼロビルド手書き ModuleLoader ファクトリ):dsh-better-sidebar のタブとして登録。重複除去後の MCP サービス一覧を表示し、ソースによるフィルタリングと検索をサポート。

インストール

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

# 重启 dsh web 生效

dsh plugin は、dsh.bundle を宣言したパッケージを自動的にプロファイルの dsh.profile.bundles に追加します。

依存関係

dsh-better-sidebar プラグイン(サイドバータブシステムを提供)が必要です。

設定

デフォルトで設定不要で使用可能。調整が必要な場合は、プロファイルの cordis.patch.yml(~/.dsh/profiles/web/cordis.patch.yml)で id を指定して上書き:

- 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(すべて loopback-only)

ルート

説明

GET /api/dsh-mcp-sync/status

各ソースの可用性 / サービス数 / 最終同期時刻

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

重複除去後の MCP サービス一覧(ソースでフィルタリング可能)

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

各ソースの生設定ファイルの内容

GET /api/dsh-mcp-sync/custom

カスタム MCP サービス一覧

POST /api/dsh-mcp-sync/custom

カスタム MCP サービスを追加(body: {name, config})

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

カスタム MCP サービスを削除

開発

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

ライセンス

MIT

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
    7 npm
    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
    6 npm
    14
    MIT