Skip to content

A unified MCP server for managing agent definition Markdown files (rules, workflows, subagents, claude.md, cursorrule, windsurfrule etc). Write once, use everywhere.

License

Notifications You must be signed in to change notification settings

wang1212/mcp-server-agents-md

Repository files navigation

MCP Server AGENTS.md

npm Version npm License

A unified MCP server for managing agent definition Markdown files (rules, workflows, subagents, claude.md, cursorrule, windsurfrule, etc.). Write once, use everywhere.

Note

AGENTS.md published by OpenAI.

Warning

This is just a prototype project.

Overview

mcp-server-agents-md is a lightweight MCP server that centralizes all your agent definition files in Markdown format. It allows you to easily share and reuse rules, workflows, subagents, and other agent specs across different code agent platforms like Claude, Cursor, Windsurf, and more.

  • Serve Markdown-based agent definitions via MCP.
  • Easy integration with any MCP-compliant agent environment.

Features

Tip

To help LLMs more quickly identify tool invocation commands, we've designed a trigger command (cc:, carbon copy to agent), similar to / and @ in other products. For example, to trigger an agent workflow that generates a git commit message, you can write cc:commit . Multiple trigger commands can exist, defined in the frontMatter.trigger field of each agent's markdown file.

Agents (workflows/rules):

Agents, workflows, rules source:

Usage

To use with AI client apps such as Claude, VSCode, Cursor, Windsurf, Cline, Cherry Studio, Chatbox, etc., add the MCP server configuration below.

On Mac system:

{
  "mcpServers": {
    "Agents": {
      "command": "npx",
      "args": [
        "--registry=https://registry.npmjs.org/",
        "-y",
        "mcp-server-agents-md@latest"
      ]
    }
  }
}

On Windows system:

{
  "mcpServers": {
    "Agents": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "--registry=https://registry.npmjs.org/",
        "-y",
        "mcp-server-agents-md@latest"
      ]
    }
  }
}

Next, you need to select an AI model that supports tool calling (Tools Call/Function Call) in your client application and enter simple prompts, such as:

  • git commit - Natural language request
  • Call the tool to generate commit information - Explicit tool request
  • cc:commit - Trigger command, recommended
  • cc:fast-commit - Trigger command, recommended

Development

Install dependencies:

npm install

Build the server:

npm run build

Start the MCP server:

npm run start

Publish

Version releases use the standard-version tool.

npm run release
# or Release as a Pre-Release
npm run release -- --prerelease alpha

License

MIT

About

A unified MCP server for managing agent definition Markdown files (rules, workflows, subagents, claude.md, cursorrule, windsurfrule etc). Write once, use everywhere.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published