Sync MCP server configs and rules across AI coding agents
# agentsync
**Sync MCP server configs and rules across AI coding agents.**
[](https://github.com/spyrae/agentsync/actions/workflows/ci.yml)
[](https://pypi.org/project/agentsync-cli/)
[](https://opensource.org/licenses/MIT)
[](https://www.python.org/downloads/)
---
## The Problem
You use multiple AI coding agents — Claude Code, Cursor, Codex, Cursor. Each stores MCP server configs in its own format (JSON, TOML) and its own location. Keeping them in sync manually is tedious and error-prone.
## The Solution
**agentsync** takes a single source of truth (your Claude Code config) and syncs it to all your agents with one command.
```
┌──────────────┐
│ Claude Code │ Source of Truth
│ .cursor.json│ ─── MCP Servers
│ .mcp.json │ ─── Rules (CLAUDE.md)
│ CLAUDE.md │
└──────┬───────┘
│ agentsync sync
├──────────────────┐─────────────────┐
▼ ▼ ▼
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Cursor │ │ Codex │ │ Antigravity │
│ mcp.json │ │ config.toml │ │mcp_config.json│
│ project.mdc │ │ AGENTS.md │ │ │
└──────────────┘ └──────────────┘ └──────────────┘
```
## Installation
```bash
pip install agentsync-cli # pip
pipx install agentsync-cli # pipx (recommended for CLI tools)
uvx agentsync-cli # uv (run without installing)
```
## Quick Start
```bash
agentsync init # Create agentsync.yaml config
agentsync sync # Sync to all agents
agentsync validate # Verify everything is correct
```
## Features
- **MCP server sync** — JSON ↔ TOML automatic conversion
- **Rules sync** — Markdown → filtered Markdown / MDC with frontmatter
- **Case-insensitive deduplication** — hanAgent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.