Valorant MCP服务器

一个用于与本地Valorant API服务器集成的模型上下文协议(MCP)服务器。

  • by owenbean400
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 owenbean400/valorant-rank-mcp-server

使用说明

Valorant MCP服务器

一种模型上下文协议(MCP)服务器,用于与本地Valorant API服务器集成。


设置

1.安装依赖项

首先,确认已安装Node.js:

node --version

如果未安装Node.js,请从以下位置下载并安装: https://nodejs.org/en

安装项目依赖关系:

npm ci

或者:

npm install

2.建设项目

将TypeScript源代码编译为JavaScript:

npm run build

编译后的输出将在以下时间生成:

build/index.min.js

使用Claude Desktop运行

  1. 打开 克劳德桌面版.
  2. 导航至 设置→ 开发者.
  3. 打开MCP配置文件。
  4. 添加本地MCP服务器配置。

以下是使用 BeanBaller 账户

有关更多详细信息,请参阅: https://modelcontextprotocol.io/docs/develop/connect-local-servers

MCP配置示例

{
  "mcpServers": {
    "BeanBaller Valorant Data": {
      "command": "node",
      "args": ["build\\index.min.js"],
      "env": {
        "username": "BeanBaller",
        "api_base": "https://api.beanballer.com"
      }
    }
  }
}

MCP配置的JSON模式

下面是一个JSON模式,用于验证示例配置结构:

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Claude MCP Configuration",
  "type": "object",
  "required": ["mcpServers"],
  "properties": {
    "mcpServers": {
      "type": "object",
      "minProperties": 1,
      "additionalProperties": {
        "type": "object",
        "required": ["command", "args", "env"],
        "properties": {
          "command": {
            "type": "string",
            "description": "Executable used to start the MCP server"
          },
          "args": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "description": "Arguments passed to the command"
          },
          "env": {
            "type": "object",
            "required": ["username", "api_base"],
            "properties": {
              "username": {
                "type": "string",
                "description": "Valorant account username"
              },
              "api_base": {
                "type": "string",
                "format": "uri",
                "description": "Base URL of the Valorant API server"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}