Valorant MCP服务器
一种模型上下文协议(MCP)服务器,用于与本地Valorant API服务器集成。
- Valorant API服务器存储库:
______________________________________________________________________
设置
1.安装依赖项
首先,确认已安装Node.js:
node --version如果未安装Node.js,请从以下位置下载并安装:
安装项目依赖关系:
npm ci或者:
npm install______________________________________________________________________
2.建设项目
将TypeScript源代码编译为JavaScript:
npm run build编译后的输出将在以下时间生成:
build/index.min.js______________________________________________________________________
使用Claude Desktop运行
- 打开 克劳德桌面版.
- 导航至 设置→ 开发者.
- 打开MCP配置文件。
- 添加本地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
}