一个强大的模型上下文协议(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=your_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": "可选类别名称"
}
获取类别
// 列出所有可用规则类别
{}
规则存储在Markdown文件中,具有以下结构:
#Category
key: value
监视模式
npm run watch
调试
npm run inspector
git checkout -b feature/AmazingFeature)git commit -m '添加一些AmazingFeature')git push origin feature/AmazingFeature)本项目采用MIT许可证 - 查看LICENSE文件了解详情。