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: 1mcpserver

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

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.

  • One shared context your team's AI tools read & write over MCP. No re-explaining. Free.

  • Hosted MCP memory: save sessions/decisions once, search from Claude, Cursor, ChatGPT. EU-hosted FTS.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nan1010082085/dsh-mcp-sync'

If you have feedback or need assistance with the MCP directory API, please join our Discord server