Pokemon游戏AI代理服务

一个MCP服务器,连接AI代理并赋予它们玩Pokemon游戏的能力。

  • by Kartik-2239
  • Python
  • 本地部署
  • 3 星标
  • 更新于
在 GitHub 查看 Kartik-2239/pokemon-nds-mcp

使用说明

口袋妖怪MCP服务器

一个MCP服务器,连接到人工智能代理,并赋予他们玩口袋妖怪游戏的能力。

设置

1.启动venv

uv venv
source .venv/bin/activate

2.安装依赖项

如果项目使用 pyproject.toml:

uv pip install .

如果项目使用 requirements.txt:

uv pip install -r requirements.txt

MCP客户端配置

将以下内容添加到MCP客户端配置JSON中:

光标配置

  • 转到光标设置>工具和MCP>新建MCP服务器
{
  "mcpServers": {
    "pokemon": {
      "command": "uv",
      "args": [
        "uv",
        "--directory",
        "path_to_root_directory",
        "run",
        "main.py"
      ],
    }
  }
}

开放代码配置

  • 在 .config/opencode/config.json 或 ~/.config/opencode/opencode.json
{
    "mcp": {
      "pokemon": {
        "type": "local",
        "command": [
          "uv",
          "--directory",
          "path_to_root_directory",
          "run",
          "main.py"
        ],
        "enabled": true,
        "timeout": 30000
      }
    }
}

反重力配置

  • 在 .gemini/antigravity/mcp_config.json
{
  "mcpServers": {
    "pokemon": {
      "command": "uv",
      "args": [
        "--directory",
        "path_to_root_directory",
        "run",
        "main.py"
      ]
    }
  }
}

替换 path_to_root_directory 具有到项目根的绝对路径。