
这是用于Team Fight Tactics(TFT)的模型上下文协议(MCP)服务器,通过各种工具提供TFT游戏数据的访问.
概览
这是用于Team Fight Tactics(TFT)的模型上下文协议(MCP)服务器,通过各种工具提供TFT游戏数据的访问. 获取特定 TFT 匹配的详细信息 -Node.js (v14或更高) - npm或纱线 - Riot Games API key (用于访问 TFT 数据) - 从 Riot Games 开发者门户网站获取 - 注意:为了开发,您可以使用24小时后到期的临时 API 键 - 用于生产,您需要在 Riot 的应用程序门户网站上申请永久的个人 API 键 - 您的游戏名称,从您的暴动游戏控制台上访问 - 您的名字标记线,从您的暴动游戏控制台上访问,通常在您的游戏名称后跟踪/shown. 例如:NA1 1. 在您 Claude 桌面配置文件中配置 MCP 服务器 : 地点:~/图书馆/应用程序支持/Claude/claude desktop config.json 位置 :% APPDATA%/ Claude/ claude desktop config.json 2. 联合国.
概述(AI 翻译)
这是用于Team Fight Tactics(TFT)的模型上下文协议(MCP)服务器,通过各种工具提供TFT游戏数据的访问.
□ 特性
- 找一个传召者的历史
- 获得具体TFT匹配的详细信息
□ 先决条件
- 节点.js(v14或以上)
- Npm或纱线
- Riot Games API key (用于访问 TFT 数据) - 从 Riot Games 开发者门户网站获取
- 注:为了开发,可以使用24小时后到期的临时API密钥。
- 为了生产,你需要在Riot的应用门户网站申请永久个人API钥匙
- 您的游戏名称, 从您的暴动游戏控制台访问
- 您的名字标记线, 从您的暴动游戏控制台访问, 通常在您的游戏名称之后跟踪/ 显示 。 例如:
NA1
□ 使用量
- 在您 Claude 桌面配置文件中配置 MCP 服务器 :
麦克斯
地点: ~/Library/Application Support/Claude/claude_desktop_config.json
窗口
地点: %APPDATA%/Claude/claude_desktop_config.json
添加以下配置 :
- 服务器将运行于stdio,并提供下列工具:
QQ tft match 历史
为当前玩家获取 TFT 匹配历史 。
参数:
本页由 AI 翻译,技术细节请以原文为准。
README
TFT MCP Server
This is a Model Context Protocol (MCP) server for Team Fight Tactics (TFT) that provides access to TFT game data through various tools.
Features
- Get match history for a summoner
- Get detailed information about specific TFT matches
Prerequisites
- Node.js (v14 or higher)
- npm or yarn
- Riot Games API Key (for accessing TFT data) - Get it from Riot Games Developer Portal
- Note: For development, you can use a temporary API key that expires in 24 hours
- For production use, you’ll need to apply for a permanent personal API key at Riot’s Application Portal
- Your Game Name, accessed from your Riot game console
- Your Name Tagline, accessed from your Riot game console, which is usually followed/shown right after your Game Name. For example:
NA1
Usage
- Configure the MCP server in your Claude Desktop config file:
MacOS
Location: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows
Location: %APPDATA%/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"tft-mcp": {
"command": "npx",
"args": [
"mcp-server-tft",
"--apiKey",
"",
"--gameName",
"",
"--tagLine",
""
]
}
}
}
- The server will run on stdio and provide the following tools:
tft_match_history
Get TFT match history for the current player.
Parameters:
count(optional): Number of matches to retrieve. Defaults to 20start(optional): Start index for pagination. Defaults to 0
tft_match_details
Get detailed information about a specific TFT match.
Parameters:
matchId(required): The match ID to get details for
Development
The project is written in TypeScript and uses the Model Context Protocol SDK. To modify the code:
- Make changes in the
srcdirectory - Run
npm run buildto compile - Run
npm startwith the required parameters to test changes
License
MIT
安装
npx mcp-server-tft --apiKey <YOUR_RIOT_API_KEY> --gameName <YOUR_GAME_NAME> --tagLine <YOUR_TAG_LINE>配置
{
"mcpServers": {
"tft-mcp": {
"command": "npx",
"args": [
"mcp-server-tft",
"--apiKey",
"<YOUR_RIOT_API_KEY>",
"--gameName",
"<YOUR_GAME_NAME>",
"--tagLine",
"<YOUR_TAG_LINE>"
]
}
}
}