返回 MCP 目录
public公开dns本地运行

pokemon-nds-mcp

一个为AI代理提供玩宝可梦游戏能力的MCP服务器

article

README

🚀 宝可梦MCP服务器

这是一个MCP服务器,可连接AI代理,使其具备游玩宝可梦游戏的能力。

🚀 快速开始

📦 安装指南

1. 初始化虚拟环境

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"
      ]
    }
  }
}
Opencode配置
  • .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 替换为项目根目录的绝对路径。

help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端