Rules

•

Provides a high-performance Rust server to look up AI coding standards and guidelines across over 290 rules in 20+ languages via the Model Context Protocol.

Rules is a high-performance, zero-dependency Rust port of the original Python `rules-mcp` server, engineered to serve AI coding standards efficiently. It implements the Model Context Protocol (MCP) to provide access to a comprehensive repository of 290 rules spanning over 20 programming languages and categories, including architecture, Rust, Python, C++, and DevOps. This server offers functionalities like weighted rule search, structured learning paths, and an edge graph to understand rule dependencies, all delivered via a JSON-RPC stdio interface with minimal startup time and memory footprint.

主要功能

01Structured learning paths with phased rule reading order (layer 1-6)
02Weighted search with token-based scoring across multiple rule attributes
03Zero external dependencies, ensuring a lean and robust server
04Edge graph to navigate rule dependencies and relationships
057 MCP Tools for comprehensive rule interaction (help, search, get, etc.)
060 GitHub stars

使用案例

01Providing developers with structured learning paths to master specific coding rules and concepts.
02Integrating AI coding assistants with organizational coding standards and best practices.
03Enabling intelligent search and retrieval of relevant coding guidelines based on user queries.