MCPRules logo

MCPRules

by bartwisch

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

View on GitHub

Last updated: N/A

What is MCPRules?

MCPRules is a server that manages and serves programming guidelines and rules. It provides a centralized location for storing and accessing coding standards, ensuring consistency across projects.

How to use MCPRules?

To use MCPRules, you need to clone the repository, install dependencies, build the server, and configure environment variables. Then, you can integrate it with development tools like VSCode Cline Extension or Claude Desktop by configuring the MCP server settings to point to the MCPRules server.

Key features of MCPRules

  • Rule Management: Access rules via MCP tools, filter by categories, support local and GitHub-hosted rules.

  • Flexible Storage: Supports local file system and GitHub repository integration using Markdown-based rule definitions.

  • Category Organization: Rules are organized into categories like Core Programming Principles, Code Style, and Language-Specific Guidelines.

  • Integration with Development Tools: Can be integrated with VSCode Cline Extension and Claude Desktop.

Use cases of MCPRules

  • Enforcing consistent coding standards across a development team.

  • Providing developers with easy access to programming guidelines and best practices.

  • Automating code review processes by checking code against defined rules.

  • Maintaining a central repository of programming knowledge and expertise.

FAQ from MCPRules

Where are the rules stored?

Rules are stored in markdown files, either locally or in a GitHub repository.

How do I add new rules?

You can add new rules by creating new markdown files or modifying existing ones, following the specified format.

How do I filter rules by category?

You can filter rules by specifying the category in the request to the server.

Can I use rules from a private GitHub repository?

Yes, you can use rules from a private GitHub repository by providing a GitHub token.

What is the format of the rule markdown file?

The rule markdown file should start with a #Category followed by key: value pairs.