Yellhorn MCP 是一个模型上下文协议 (MCP) 服务器,它提供了 Gemini 2.5 Pro 和 OpenAI 的功能。在软件开发任务中,该服务器可利用整个代码库上下文提示 Claude Code。这种模式非常适合定义由代码助手(如 Claude Code 或其他与 MCP 兼容的编码代理)执行的工作,并通过全面检查结果确保其符合原始要求。
# 安装生产依赖
pip install .
# 安装开发依赖
pip install -e ".[dev]"
编辑配置文件:
# MCP配置示例
[mcp]
name = "Yellhorn-MCP"
version = "0.2.1"
description = "Yellhorn Model Context Protocol Server"
author = "your_name_here"
author_email = "your_email_here"
url = "https://github.com/your_account/yellhorn-mcp"
[server]
host = "localhost"
port = 8080
workers = 4
# 创建新工作计划
mcp create-resource yellhorn-mcp --name "项目名称" --description "项目描述"
# 更新现有工作计划
mcp update-resource yellhorn-mcp 123 --description "更新后的描述"
# 异步触发评估
mcp judge-resource yellhorn-mcp 123 main HEAD
# 查看评估结果
mcp get-resource-judgment yellhorn-mcp 123
资源访问 Yellhorn MCP 实现了标准的 MCP 资源 API:
# 列出所有工作计划
mcp list-resources yellhorn-mcp
# 获取特定工作计划
mcp get-resource yellhorn-mcp 123
# 安装开发依赖
pip install -e ".[dev]"
# 运行测试
pytest
# 生成覆盖率报告
pytest --cov=yellhorn_mcp --cov-report term-missing
项目使用 GitHub Actions 实现持续集成和交付:
git commit -m "Bump version to X.Y.Z"git tag vX.Y.Zgit push && git push --tagsMIT