mcpField
A
AI Configuration Setup

AI Configuration Setup

Local
github.com/kevinjalbertDeveloper Tools0Updated 77w ago

About AI Configuration Setup

AI Configuration Setup is a script-based tool for maintaining shared AI-tool rules, commands, and MCP server settings. It propagates them to supported global or project locations for Copilot, Claude Code, and Cursor; the README reports testing on macOS.

Key features

  1. 01Central configuration directory
  2. 02Propagate rules and commands
  3. 03Set up MCP server configurations
  4. 04Global and project-specific setup
  5. 05Idempotent setup script

Use cases

  1. 01Keep AI-tool settings in one source
  2. 02Apply shared rules to Claude Code
  3. 03Set up Cursor rules for a project
  4. 04Update configured MCP servers

MCP support

Stores MCP server definitions centrally and copies them into supported tool configuration locations, including Claude Code and Cursor. Copilot can use Cursor's MCP configuration, but its MCP settings are not configured by this tool.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

AI Configuration Setup

The goal of this project is to:

  1. Simplify the management of AI configurations (rules, commands, and MCP servers) for AI tools
  2. Allow developers to maintain a single source of truth for their AI configuration
  3. Provide an easy setup process for both global and project-specific settings

How It Works

You have a single configuration directory that contains your rules, commands, and MCP server configuration. A single script will propagate your configuration to the correct locations for both AI tools.

⚠️ This has been built and tested on MacOS. Currently there is no support for Windows and Linux as these requires additional work.

Supported AI Tools 🛠️

AI ToolConfigurationsMCP ServersProject ScopeGlobal Scope
CopilotDetails🚧 (cursor's)❌✅
Claude CodeDetails✅❌✅
CursorDetails✅✅ (symlinks)❌

How to Use

  1. Setup the configuration directory and add your rules, commands, and MCP server configuration.
  2. Run scripts/setup --help to see all the options. You can control what configurations are setup.
  3. Run scripts/setup with appropriate flags to propagate your AI configurations to the correct locations.

If needed, you can reset your configuration by running scripts/reset. This will remove all the symlinks and removes globally configured files. This shouldn't be needed as the setup script is idempotent.

Configuration Directory Structure

Your configuration directory (~/ai_configs by default) should be structured to hold your rules, commands, and MCP server configuration. The directory can be overridden by setting the AI_CONFIGS_DIR environment variable when running the setup script.

~/ai_configs/
├── rules/                   # Directory containing rule files (.mdc)
│   ├── rule1.mdc
│   └── rule2.mdc
├── commands/                # Directory containing command files (.mdc)
│   ├── command1.mdc
│   └── command2.mdc
└── mcp-servers-config.json  # Configuration for MCP servers

It is important to note that the rules and commands are written as .mdc files. These files are used by the scripts/setup script to create the appropriate configuration files for the AI tools.

Example .mdc file
---
description: JavaScript coding standards for the project
globs: ["*.js", "*.jsx", "*.ts", "*.tsx"]
alwaysApply: false
---

You are a helpful AI assistant for JavaScript programming tasks. Always focus on readability and maintainability.

Even though some AI tools might not use .mdc files, we just keep the content (for context) and copy them as .md files.

Example mcp-servers-config.json
{
  "fetch": {
    "type": "stdio",
    "command": "uvx",
    "args": ["mcp-server-fetch"]
  }
}

AI Tool Specifics

Copilot Configuration
  • Global Rules: Rules are set in VSCode's settings (~/Library/Application Support/Code/User/settings.json) under the github.copilot.chat.codeGeneration.instructions key.

    • As the user's settings.json is JSON5, there isn't a reliable way to modify a value (for example using jq). So a marker system was used to be able to replace everything between the two marker keys:

      "__AI_TOOL_COPILOT_START": true,
      "github.copilot.chat.codeGeneration.instructions": [{"text":"rule1 content"},{"text":"rule2 content"},],
      "__AI_TOOL_COPILOT_END": true,
      
  • Global Commands: Commands (.mdc files) are copied to ~/Library/Application Support/Code/User/prompts with prompt.md extension

  • MCP Servers: Server configurations are not configured right now, but VSCode can leverage Cursor's MCP configuration

Claude Code Configuration
  • Global Rules: Rules (.mdc files) are concatenated into ~/.claude/CLAUDE.md
  • Global Commands: Commands (.mdc files) are copied to ~/.claude/commands/ with .md extension
  • MCP Servers: Server configurations (defined as mcp-servers-config.json) are added to ~/.claude.json
Cursor Configuration
  • Project-Based Rules: Rules directory is symlinked to .cursor/rules/local/rules in your project (based on pwd)
  • Project-Based Commands: Commands directory is symlinked to .cursor/rules/local/commands in your project (based on pwd)
  • MCP Servers: Server configurations (defined as mcp-servers-config.json) is copied to ~/.cursor/mcp.json
Limitations of Cursor

Cursor currently only supports project-based rules, not global rules. This means:

  • Rules and commands must be set up in each project directory where you want to use them.
  • This tool creates symlinks in the project directory to the central rules/commands.
  • Changes to your configuration files are automatically reflected in your projects due to the symlinks.

You might want to globally ignore the added local Cursor rules: **/.cursor/rules/local/** in your version control system.

Idempotent Updates

scripts/setup is designed to be idempotent, meaning you can run it multiple times without issues. This is useful when:

  • You've made changes to your rules or commands in your configuration directory
  • You want to apply your (project-based) configuration to a new project directory
  • You need to update MCP server configurations

For Cursor's project-based configurations, changes to your rule and command files are automatically reflected in your projects because they are symlinked. You don't need to rerun the setup script for these changes to take effect.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.