🛼 MCP服务器滚轮德比规则
MCP(模型上下文协议)服务器,用于访问从PDF中提取的Roller Derby规则(法语)
安装
npm install用法
启动服务器
npm start开发模式(带自动重新加载)
npm run dev特性
工具
- list_sections -列出所有可用部分
- get_section -获取特定部分的内容
- 可用部分: introduction, parametres, le-jeu, score, penalites, arbitrage
- 搜索规则 -按规则中的关键字搜索
- 参数: - query:搜索词 - section (可选):要搜索的特定部分
资源
derby://rules/complete-完整的规则文档derby://rules/section/00-introduction-导言部分derby://rules/section/01-parametres-参数部分derby://rules/section/02-le-jeu-游戏部分derby://rules/section/03-score-分数部分derby://rules/section/04-penalites-处罚部分derby://rules/section/05-arbitrage-主礼部
配置
克劳德桌面版
将此服务器添加到您的Claude Desktop配置中:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json\ 视窗: %APPDATA%\Claude\claude_desktop_config.json\ Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"derby-rules": {
"command": "node",
"args": ["/absolute/path/to/mcpDerby/index.js"]
}
}
}GitHub副本(VS代码)本地路径
- 在VS代码中安装“GitHub Copilot”扩展
- 打开设置(Ctrl+或Cmd+)
- 搜索“MCP”或“模型上下文协议”
- 添加a
mcp.json在项目中的.vcode目录中:
{
"servers": {
"derby-rules": {
"command": "node",
"args": ["/absolute/path/to/mcpDerby/index.js"]
}
}
}ChatGPT桌面
ChatGPT Desktop中尚未提供MCP支持。你可以:
- 使用OpenAI API 与MCP兼容的客户端
- 复制粘贴 来自markdown文件的内容
output/ - 使用MCP代理 通过REST API公开数据
其他MCP客户端
对于任何兼容MCP的客户端,请使用:
命令: node\ 参数: ["/absolute/path/to/mcpDerby/index.js"]\ 运输: stdio
数据结构
规则分为:
- 完整文件:
output/contenu-complet.md - 以下各节:
output/sections/
使用示例
在所有规则中搜索“干扰者”
{
"tool": "search_rules",
"arguments": {
"query": "jammer"
}
}获取处罚部分
{
"tool": "get_section",
"arguments": {
"section": "penalites"
}
}阅读完整资源
derby://rules/complete