Current collected state Current
Observed since 21 Oct, 10:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
AI Coding Backend - A backend service for AI-assisted coding with MCP (Model Context Protocol) integration
AI Coding Backend 是一个基于 MCP (Model Context Protocol) 的后端服务,专为 AI 辅助编程而设计。它提供了一套完整的工具集,用于项目规范初始化、需求文档生成、PRP(产品需求提示)文档管理以及思维处理等功能。
uv add aicoding-backend
pip install aicoding-backend
# 直接运行
uv run aicoding-backend
# 或者使用 Python 模块方式
python -m aicoding_backend.main
在你的 MCP 客户端配置文件中添加以下配置:
{
"mcpServers": {
"aicoding-backend": {
"command": "python",
"args": ["-m", "aicoding_backend.main"]
}
}
}
feature_file (string): 功能需求文件路径prpFile (string): PRP 文件路径thought (string): 思维内容thought_number (int): 当前思维编号total_thoughts (int): 预计总思维数量next_thought_needed (bool): 是否需要下一步思维stage (string): 思维阶段tags (array, optional): 思维标签axioms_used (array, optional): 使用的公理assumptions_challenged (array, optional): 挑战的假设work_dir (string): 工作目录路径tool_type (string): 使用的工具类型aicoding_backend/
├── __init__.py # 包初始化文件
├── main.py # MCP 服务器主程序
├── prompts/ # 提示词模板目录
│ ├── __init__.py
│ ├── CreateFeatureProjectRules.md
│ ├── init_project_rules.py
│ ├── init_requirements_doc.py
│ └── prp_base.md
├── tools/ # 工具实现目录
│ ├── __init__.py
│ ├── init_project_rules.py
│ └── init_requirements_doc.py
└── utils/ # 工具函数目录
├── __init__.py
├── file_reader.py
├── file_utils.py
├── git_info.py
├── loader.py
├── log.py
├── template.py
├── user_info.py
└── version.py
git clone <repository-url>
cd AICoding-backend
uv sync
uv run python -m aicoding_backend.main
# 运行测试
uv run pytest
# 运行测试并生成覆盖率报告
uv run pytest --cov=aicoding_backend
# 通过 MCP 客户端调用
{
"method": "tools/call",
"params": {
"name": "init_project_rules",
"arguments": {}
}
}
# 通过 MCP 客户端调用
{
"method": "tools/call",
"params": {
"name": "generate_prp",
"arguments": {
"feature_file": "features/user-auth.md"
}
}
}
# 通过 MCP 客户端调用
{
"method": "tools/call",
"params": {
"name": "process_thought",
"arguments": {
"thought": "需要分析用户认证系统的安全性",
"thought_number": 1,
"total_thoughts": 3,
"next_thought_needed": true,
"stage": "分析",
"tags": ["安全", "认证"]
}
}
}
欢迎贡献代码!请遵循以下步骤:
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目采用 MIT 许可证。详情请参阅 LICENSE 文件。
Chen Shuren
如果你觉得这个项目有用,请给它一个 ⭐️!
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.23 | 29 Apr 2026 | 6 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 21 Oct, 10:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d26651cbb8782b9e527b03cff6fede4793248a16c8c1aae25725b6c6d14dce52