Cover image
Try Now
2025-01-01

一个强大的模型上下文协议(MCP)服务器,该服务器管理和服务编程指南和规则。该服务器与开发工具集成在一起,以提供跨项目的一致编码标准。

3 years

Works with Finder

1

Github Watches

5

Github Forks

17

Github Stars

MCPRules - Programming Guidelines Management Server

TypeScript MCP License: MIT

A powerful Model Context Protocol (MCP) server that manages and serves programming guidelines and rules. This server integrates with development tools to provide consistent coding standards across projects.

Features

  • Rule Management

    • Access rules via MCP tools
    • Filter rules by categories
    • Support for both local and GitHub-hosted rules
    • Structured rule format with categories and key-value pairs
  • Flexible Storage

    • Local file system support
    • GitHub repository integration
    • Markdown-based rule definitions
  • Category Organization

    • Core Programming Principles
    • Code Style and Formatting
    • Language-Specific Guidelines
    • Project Management Rules
    • Operating System Specific Rules

Installation

  1. Clone the Repository

    git clone https://github.com/yourusername/MCPRules.git
    cd MCPRules/rules-server
    
  2. Install Dependencies

    npm install
    
  3. Build the Server

    npm run build
    
  4. Configure Environment Variables

    export RULES_FILE_PATH=/path/to/your/rules.md
    # Optional for private GitHub repositories
    export GITHUB_TOKEN=your_github_token
    

Configuration

For VSCode Cline Extension

Location: ~/Library/Application Support/Windsurf/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json

{
  "mcpServers": {
    "rules": {
      "command": "node",
      "args": ["/path/to/rules-server/build/index.js"],
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

For Claude Desktop

Location: ~/Library/Application Support/Claude/claude_desktop_config.json

Usage

Available Tools

  1. Get Rules

    // Retrieve all rules or filter by category
    {
      "category": "optional-category-name"
    }
    
  2. Get Categories

    // List all available rule categories
    {}
    

Rule Format

Rules are stored in markdown files with the following structure:

#Category
key: value

Development

  • Watch Mode

    npm run watch
    
  • Debugging

    npm run inspector
    

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Credits to the original rules from Reddit discussion
  • Thanks to the Model Context Protocol community

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Andris Teikmanis
  • Latvian GPT assistant for developing GPT applications

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Navid RezaeiSarchoghaei
  • Professional Flask/SQLAlchemy code guide. Follow: https://x.com/navid_re

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://cantaspinar.com
  • Summarizes videos and answers related questions.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

    Reviews

    3 (1)
    Avatar
    user_HnGum3P0
    2025-04-15

    I've been using postgres-mcp-server for months, and it's been a game-changer for managing my PostgreSQL databases. Easy to set up and highly efficient, it has significantly reduced downtime and improved performance. RonHouben has done an excellent job with this tool. Highly recommended! Check it out at https://mcp.so/server/postgres-mcp-server/RonHouben.