一个强大的模型上下文协议(MCP)服务器,用于管理和提供编程指南和规则。该服务器可与开发工具集成,助力项目实现一致的编码标准。
本 MCP 规则管理服务器是一个强大的工具,用于管理和提供编程指南与规则,能与开发工具集成,确保项目中的编码标准一致。
git clone https://github.com/yourusername/MCPRules.git
cd MCPRules/rules-server
npm install
npm run build
export RULES_FILE_PATH=/path/to/your/rules.md
# 可选的 GitHub 私有仓库
export GITHUB_TOKEN=你的_github_token
位置: ~/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": []
}
}
}
位置: ~/Library/Application Support/Claude/claude_desktop_config.json
// 获取所有规则或按类别筛选
{
"category": "optional-category-name"
}
// 列出所有可用的规则分类
{}
规则存储在 Markdown 文件中,具有以下结构:
#Category
键: 值
npm run watch
npm run inspector
git checkout -b feature/AmazingFeature)。git commit -m 'Add some AmazingFeature')。git push origin feature/AmazingFeature)。该项目在 MIT License 下许可 - 有关详细信息,请参阅 LICENSE 文件。