口袋妖怪MCP服务器
一个MCP服务器,连接到人工智能代理,并赋予他们玩口袋妖怪游戏的能力。
设置
1.启动venv
uv venv
source .venv/bin/activate2.安装依赖项
如果项目使用 pyproject.toml:
uv pip install .如果项目使用 requirements.txt:
uv pip install -r requirements.txtMCP客户端配置
将以下内容添加到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 具有到项目根的绝对路径。
