Skip to main content
Glama

devsync-mcp

MCP server for AI-merge of team dev configurations. Works with any MCP-capable IDE (Claude Code, Cursor, Windsurf, Copilot, Zed, etc.).

What it does

Teams maintain a shared config profile repo (shell configs, git settings, AI rules, editor configs). devsync-mcp provides MCP tools that let the IDE's LLM intelligently merge team configs with your personal configs — preserving your customizations while incorporating team standards.

Key insight: The MCP server does NOT call an LLM. It provides source and target content to the host IDE's LLM, which performs the intelligent merge.

Related MCP server: session-coord-mcp

Install

pip install devsync-mcp

MCP Configuration

Add to your IDE's MCP settings:

{
  "mcpServers": {
    "devsync-mcp": {
      "command": "devsync-mcp",
      "transport": "stdio"
    }
  }
}

Tools

Tool

Purpose

pull_team_profile

Clone/pull team config repo

list_profile_configs

List configs in a profile

detect_current_configs

Scan environment for existing configs

preview_merge

Return source + target for LLM merge

apply_merge

Write merged content with backup

sync_all

Pull latest + present merge plan

list_backups

List previous merge backups

restore_backup

Restore from backup

get_merge_status

Show merged/pending/changed status

AI-Merge Flow

1. pull_team_profile(git_url)     → downloads team config repo
2. list_profile_configs(profile)  → shows available configs
3. detect_current_configs()       → finds your existing configs
4. preview_merge(profile, config) → returns {source_content, target_content}
5. HOST LLM reads both, produces intelligent merge
6. apply_merge(target, merged)    → writes with backup

Team Profile Format

Create a devsync-profile.yaml in your team config repo:

name: acme-team-config
description: ACME Corp standard dev environment
version: 1.0.0

configs:
  - name: zshrc-additions
    file: shell/zshrc-additions.sh
    target: ~/.zshrc
    type: shell_profile
    description: Team shell aliases and PATH additions

  - name: claude-rules
    file: ai-rules/claude-rules.md
    target: CLAUDE.md
    type: ai_rules
    description: Team coding standards for Claude Code

Config Types

  • shell_profile — .zshrc, .bashrc, .bash_profile, .profile

  • git_config — .gitconfig, .gitignore_global

  • editor_config — .editorconfig

  • ai_rules — CLAUDE.md, .cursorrules, AGENTS.md, etc.

  • vscode_settings — .vscode/settings.json, etc.

  • ssh_config — .ssh/config

  • custom — any file with explicit source/target mapping

Claude Code Skill

Install the /sync-team skill for a guided experience:

cp -r skill/sync-team ~/.claude/skills/

Then use /sync-team in Claude Code to walk through the full sync flow.

Development

git clone https://github.com/troylar/devsync-mcp
cd devsync-mcp
pip install -e ".[dev]"
pytest

License

MIT

Available Tools

9 tools
apply_mergeA

Write LLM-merged content to the target path, creating a backup of the original.

Call this AFTER the LLM has produced the merged content from preview_merge output.

Args: namespace: Profile namespace config_name: Config name that was merged merged_content: The LLM's merged output to write target_path: File path to write the merged content to

Returns: Merge record with backup path, checksums, and status

Inputs: namespace (required), config_name (required), merged_content (required), target_path (required). Returns: object

detect_current_configsA

Scan the user's environment for existing configuration files.

Detects shell profiles, git configs, editor configs, AI rules, and more.

Args: project_root: Project root directory (defaults to cwd)

Returns: List of detected config files with paths, types, and checksums

Inputs: project_root. Returns: object

get_merge_statusA

Show the current merge status for all configs in a profile.

For each config, reports whether it is:

  • pending: never been merged

  • merged: last merge matches current file

  • changed: file has been modified since last merge

Args: namespace: Profile namespace project_root: Project root for project-relative targets

Returns: List of config statuses

Inputs: namespace (required), project_root. Returns: object

list_backupsA

List backup files from previous merge operations.

Args: profile_name: Filter backups by profile (all if not specified)

Returns: List of backup files with paths, sizes, and timestamps

Inputs: profile_name. Returns: object

list_profile_configsA

List all config files in a pulled team profile.

Args: namespace: Profile namespace (as returned by pull_team_profile)

Returns: List of configs with name, type, target path, and description

Inputs: namespace (required). Returns: object

preview_mergeA

Return source (team) and target (user) content for the LLM to intelligently merge.

The MCP server does NOT perform the merge. It returns both contents so the host IDE's LLM can understand the semantics and produce an intelligent merge that preserves personal customizations while incorporating team standards.

Args: namespace: Profile namespace config_name: Name of the config to merge (from list_profile_configs) project_root: Project root for project-relative targets

Returns: Dict with source_content, target_content (None if no existing file), target_path, config_type, and description

Inputs: namespace (required), config_name (required), project_root. Returns: object

pull_team_profileB

Clone or pull a team config profile repository into the local devsync library.

Args: git_url: Git repository URL or local path containing team configs namespace: Override namespace (auto-derived from URL if not provided)

Returns: Profile info with name, description, version, and list of configs

Inputs: git_url (required), namespace. Returns: object

restore_backupA

Restore a config file from a previous backup.

Args: backup_path: Path to the backup file (from list_backups) target_path: Where to restore the file

Returns: Confirmation with restored path

Inputs: backup_path (required), target_path (required). Returns: object

sync_allA

Pull latest profile, detect changes, and present a merge plan.

This is a convenience tool that combines pull + status check into one call. Returns a plan showing which configs need merging.

Args: namespace: Profile namespace project_root: Project root for project-relative targets

Returns: Merge plan with status of each config (pending/merged/changed)

Inputs: namespace (required), project_root. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: pulling profiles, detecting configs, previewing merges, applying merges, listing status, backups, etc. No two tools overlap in functionality; sync_all is explicitly a convenience wrapper.

    Naming Consistency4/5

    All tool names use snake_case and imperative verbs (apply, detect, get, list, preview, pull, restore, sync). The naming patterns are mostly verb_noun, though 'list_profile_configs' and 'list_backups' mix noun sequences. Overall consistent and readable.

    Tool Count5/5

    With 9 tools, the server covers the config synchronization workflow without unnecessary bloat. Each tool serves a specific, non-redundant role in the lifecycle of pulling, merging, and restoring configs.

    Completeness4/5

    The tool surface covers the full lifecycle: pulling profiles, detecting local configs, previewing merges, applying merges, managing backups, and checking status. A minor gap is the lack of a tool to explicitly update a profile (e.g., re-pull), but the workflow is tightly scoped and functional.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      An MCP server that enables developers to summon AI development team agents directly from their IDE to help with tasks like PR reviews, security evaluation, and CI/CD deployment setup.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server that enables AI coding agents to communicate, share state, and coordinate work in real time via MCP tools or REST API.
      79 npm
      10
      MIT