Skip to main content

基于 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。

开发

  1. 确保你已经安装了 Python 3.13 及以上版本。
  2. 克隆项目:
git clone https://github.com/gsh20040816/cf-polygon-mcp.git
cd cf-polygon-mcp
  1. 安装依赖:
uv sync
  1. 运行项目:
uv run mcp dev main.py

许可证

AGPL-3.0-or-later

说明

本项目由 AI 生成。

Project details


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.2.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cf_polygon_mcp-0.3.2-py3-none-any.whl (51.3 kB view details)

Uploaded Python 3

File details

Details for the file cf_polygon_mcp-0.3.2.tar.gz.

File metadata

  • Download URL: cf_polygon_mcp-0.3.2.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for cf_polygon_mcp-0.3.2.tar.gz
Algorithm Hash digest
SHA256 58c4299556214ef8204f9c1312e3c390ba6ad94b11d07a21df87defe00c436a9
MD5 24d67548f46763b3103df6a14a8d123f
BLAKE2b-256 44c4f428f3435ccdf5cf32811e3b1406ab5790f39e9e82dce4a41c90756d07d8

See more details on using hashes here.

File details

Details for the file cf_polygon_mcp-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cf_polygon_mcp-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fced4c0a1cffbb0268e2213f98c4c9ea580f79051480bb5f3ecc319516682aaf
MD5 11283189f11b26bd6110ae396255e7c6
BLAKE2b-256 de54b76ec52ea46a18d8511fee7047ddfdaa1fa002cbd99282572195954ed34d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page