Project AI MCP Server
一个用于 Project AI 平台集成的 Model Context Protocol (MCP) 服务器。
功能特性
- 🚀 基于 FastMCP 构建的高性能 MCP 服务器
- 📋 支持 Project AI 功能点状态管理
- 🔐 安全的环境变量配置管理
- 🛠 支持多种安装和运行方式
环境要求
- Python 3.12+
- 可访问 Project AI API 端点
安装
方法一:使用 uvx(推荐)
# 临时运行
uvx project-ai-mcp
# 或永久安装
uv tool install project-ai-mcp
方法二:使用 pip
pip install project-ai-mcp
方法三:开发安装
git clone <repository-url>
cd project-ai-mcp
uv sync
uv run python main.py
使用方法
作为独立服务器运行
# 使用 uvx
uvx project-ai-mcp
# 或使用已安装的命令
project-ai-mcp
# 或使用 Python 模块
python -m project_ai_mcp
在 Claude Code 中使用
注意: 如果不设置 PROJECT_AI_BASE_URL,将使用默认的 API 端点:https://project-ai.hailiangedu.com
# 使用默认的 API 端点
claude mcp add project-ai -s user -- uvx project-ai-mcp
# 使用自定义的 API 端点
claude mcp add project-ai -s user -e "PROJECT_AI_BASE_URL=XXXXX" -- uvx project-ai-mcp
可用工具
update_feature_status
修改 Project AI 平台上功能点的状态。
参数:
feature_id(string): 功能点 IDstatus(int): 功能点状态,支持:1: 未开始2: 进行中3: 已完成
返回值:
"success": 操作成功"failed: [错误信息]": 操作失败及错误详情
示例使用:
# 将功能点标记为进行中
update_feature_status(
feature_id="feature_123",
status=2
)
# 将功能点标记为已完成
update_feature_status(
feature_id="feature_456",
status=3
)
开发
环境设置
# 克隆仓库
git clone <repository-url>
cd project-ai-mcp
# 创建虚拟环境并安装依赖
uv venv
uv sync
# 运行开发服务器
uv run python main.py
代码质量检查
# 运行 linter
ruff check
# 格式化代码
ruff format
构建和发布
# 构建包
uv build
# 发布到 PyPI(需要配置 PyPI 凭据)
twine upload dist/*
许可证
MIT License - 详见 LICENSE 文件。
贡献
欢迎提交 Issue 和 Pull Request!
支持
如有问题,请在 GitHub Issues 中提出。
Metadata
Release files for project-ai-mcp 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| project_ai_mcp-0.1.2.tar.gz | 5.4 kB | Without provenance | Details for project_ai_mcp-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| project_ai_mcp-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for project_ai_mcp-0.1.2-py3-none-any.whl |
Total release size: 11.3 kB
Release files / project_ai_mcp-0.1.2.tar.gz
| Download URL | project_ai_mcp-0.1.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88bed48afa80f1892053be2cf83353f1472a1eba365d304678e5b51cbc61c1cd
|
|
BLAKE2b-256 checksum How to use checksums |
556322c5d93f0b48621919efc260d88ff3ebfe897e480578e254b34b30876f37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / project_ai_mcp-0.1.2-py3-none-any.whl
| Download URL | project_ai_mcp-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f45e47e75307f35102bef53e24adfcb1414d0d2d9473d84d5dec5a3080d3225
|
|
BLAKE2b-256 checksum How to use checksums |
a3509e36b3b9e52e4586b802c98196084d56741e73d3bd24165ebfdcb2fa13fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for project-ai-mcp 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.