Back to MCP directory
publicPublicdnsLocal runtime

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

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client