轮滑德比规则查询服务

MCP服务器提供从PDF中提取的轮滑德比规则查询功能,支持按章节浏览和关键词搜索。

  • by Golrigames
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 Golrigames/RollerDerbyRulesMcp

使用说明

🛼 MCP服务器滚轮德比规则

MCP(模型上下文协议)服务器,用于访问从PDF中提取的Roller Derby规则(法语)

安装

npm install

用法

启动服务器

npm start

开发模式(带自动重新加载)

npm run dev

特性

工具

  1. list_sections -列出所有可用部分
  2. get_section -获取特定部分的内容
    • 可用部分: introduction, parametres, le-jeu, score, penalites, arbitrage
  3. 搜索规则 -按规则中的关键字搜索
    • 参数:
      • 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代码)本地路径

  1. 在VS代码中安装“GitHub Copilot”扩展
  2. 打开设置(Ctrl+或Cmd+)
  3. 搜索“MCP”或“模型上下文协议”
  4. 添加a mcp.json 在项目中的.vcode目录中:
{
  "servers": {
    "derby-rules": {
      "command": "node",
      "args": ["/absolute/path/to/mcpDerby/index.js"]
    }
  }
}

ChatGPT桌面

ChatGPT Desktop中尚未提供MCP支持。你可以:

  1. 使用OpenAI API 与MCP兼容的客户端
  2. 复制粘贴 来自markdown文件的内容 output/
  3. 使用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