内容
# Magic: The Gathering MCP Tool Server
一个用于访问 Magic: The Gathering 卡牌数据、规则和系列信息的模型上下文协议服务器。此服务器提供对卡牌详细信息、裁定、综合规则章节等的快速访问。
## Features
- 按名称、颜色、类型和其他条件搜索万智牌卡牌
- 查看详细的卡牌信息,包括裁定和外语版本
- 访问 Magic: The Gathering 综合规则
- 浏览系列信息和卡牌列表
- 查看卡牌图像(如果可用)
## Installation Requirements
1. **PHP 8.1 or higher**
- 通过运行以下命令检查您的版本:`php --version`
- 如果需要,请从 [php.net](https://www.php.net/downloads.php) 下载
2. **Composer** (PHP 的依赖管理工具)
- 从 [getcomposer.org](https://getcomposer.org/) 下载
## Setup Instructions
1. 克隆此存储库:
```bash
git clone https://github.com/james2037/mcp-gatherer.git
```
2. 导航到项目目录:
```bash
cd mcp-gatherer
```
3. 安装依赖项:
```bash
composer install
```
## Running the Server
您的 MCP 客户端(如 Claude Desktop)可以通过调用以下命令来启动服务器:
```bash
php path/to/mcp_server.php
```
服务器将启动,您可以开始通过 MCP 客户端使用 Magic: The Gathering 工具。如有必要,请务必指定 STDIO 传输。
Windows 用户的 `claude_desktop_config.json` 示例可能如下所示:
```json
{
"mcpServers": {
"mcp-gatherer": {
"command": "php",
"args": ["C:\\mcp-gatherer\\mcp_server.php"],
"disabled": false,
"alwaysAllow": []
}
}
}
```
## License
本项目根据 MIT 许可证获得许可。有关详细信息,请参阅 [LICENSE](LICENSE) 文件。
## Contributing
如果您想为该工具的开发做出贡献,请随时提交问题或拉取请求。对于重大更改,请先打开一个 issue 讨论您想要更改的内容。