使用说明
神奇宝贝名称生成器MCP服务器
这个项目是一个简单的模型上下文协议(MCP)服务器,它生成主要口袋妖怪角色的名称。它被设计为在VS Code中与GitHub Copilot MCP一起使用,但也可以独立运行和测试。
特性
- MCP服务器使用 fastmcp
- 生成口袋妖怪主要角色名称的工具
- 已准备好与Copilot MCP集成
- 包括单元测试
安装
-
克隆存储库 (如果需要):
git clone <your-repo-url> cd poc-mcp-server -
使用安装依赖项 紫外线:
uv pip install -r uv.lock # or, if you use pyproject.toml: uv pip install -r pyproject.toml如果你没有
uv,安装时使用:pip install uv -
(可选)安装测试依赖项:
uv pip install pytest
运行MCP服务器
要启动MCP服务器(stdio传输):
uv python main.py
运行测试
要运行单元测试,请执行以下操作:
uv pytest
如果您有导入问题,请尝试:
PYTHONPATH=. uv pytest
项目结构
├── main.py # MCP server and tool definition
├── tests/
│ ├── __init__.py # Makes tests a package
│ └── test_main.py # Unit tests
├── .vscode/
│ └── settings.json # VS Code settings
│ └── mcp.json # MCP config for VS Code
├── .gitignore # Git ignore rules
├── pyproject.toml # Project metadata
├── uv.lock # uv lock file
└── README.md
许可证
麻省理工学院