AGENT SKILL

MCP 服务器配置同步

mcp-sync

在添加或修改模型上下文协议(Model Context Protocol,MCP)服务器配置时使用此技能,以确保这些配置在不同的工具设置之间保持同步。

适用职业AI 工程师
使用场景应用配置管理
License 许可
CC-BY-4.0
所属仓库
vorburger/aifiles
最近更新
2026-10-18
Stars
★ 0
Forks
0

01 前言 Front Matter

name
mcp-sync
description
Use this skill when adding or modifying Model Context Protocol (MCP) server configurations to ensure they are synchronized across different tool settings.

02 资源文件 3

03 SKILL.md 正文

MCP Sync

To ensure a consistent experience across different AI tools (like VS Code Copilot and Antigravity), MCP servers are configured in the following locations:

  1. VS Code / Copilot: dotfiles/code/mcp.json
    • Format: Standard MCP JSON configuration within the servers object.
  2. Antigravity: nixfiles/modules/tools/antigravity.nix
    • Format: Managed declaratively via NixOS home-manager activation, generating ~/.gemini/config/mcp_config.json with secrets management and symlinking to ~/.gemini/antigravity/ and ~/.gemini/antigravity-ide/.

Workflow

When a directive is issued to add or update an MCP server:

  1. Identify the command, arguments, or URL for the MCP server.
  2. Update dotfiles/code/mcp.json (for VS Code / Copilot).
  3. Update nixfiles/modules/tools/antigravity.nix (for Antigravity, using local stdio when remote OAuth DCR is not supported).
  4. Verify that all configuration files are valid and formatted.

04 同仓库更多 Skills