基于 Codeforces Polygon API 的 MCP 工具集
Project description
CF-Polygon-MCP
基于 Codeforces Polygon API 的 MCP 工具集,提供一系列工具函数用于管理 Polygon 平台上的题目。
功能特性
- 获取题目列表,支持多种筛选条件
- 获取题目详细信息(时限、内存限制等)
- 获取题目描述、题解、输入输出格式等
- 获取题目解决方案
- 获取题目验证器、检查器、交互器等
- 获取比赛题目列表
- 更新题目信息
- 更新/丢弃工作副本
- 更新题目描述
配置
向 mcp.json 中添加:
"cf-polygon-mcp": {
"command": "uvx",
"args": ["cf-polygon-mcp"],
"env": {
"POLYGON_API_KEY": "your_key",
"POLYGON_API_SECRET": "your_secret"
}
}
在使用前,需要设置 Polygon API 密钥。可在 Polygon 设置页面 获取 API Key 和 Secret。
开发
- 确保你已经安装了 Python 3.13 及以上版本。
- 克隆项目:
git clone https://github.com/gsh20040816/cf-polygon-mcp.git
cd cf-polygon-mcp
- 安装依赖:
uv sync
- 运行项目:
uv run mcp dev main.py
许可证
说明
本项目由 AI 生成。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cf_polygon_mcp-0.3.1.tar.gz
(21.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cf_polygon_mcp-0.3.1.tar.gz.
File metadata
- Download URL: cf_polygon_mcp-0.3.1.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21f4ef150e96b223dedd33820222a6d12d22596969e34d1b5e3f716349fdd674
|
|
| MD5 |
e939f16192198881ab88e4b2b9a47cff
|
|
| BLAKE2b-256 |
296504543fa6c8f6f704e37dbe72517c6436e17f01bb33252e550cbead7437e2
|
File details
Details for the file cf_polygon_mcp-0.3.1-py3-none-any.whl.
File metadata
- Download URL: cf_polygon_mcp-0.3.1-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f0841ba64d96a8dc8921c0fbf6a0865f4001faacd0fa6c43c3f54f56a6f0e13
|
|
| MD5 |
b93d51595747110c4ff9637f4aadeb54
|
|
| BLAKE2b-256 |
e792cbb0b929399fba916aed2a85ca81a628e36090135c86d2802259565205d2
|