Skip to content

feat(mcp): add Hy3 code review server (#3) - #213

Open
Smily2333 wants to merge 4 commits into
Tencent-Hunyuan:rhinobird2026from
Smily2333:codex/hy3-code-review
Open

feat(mcp): add Hy3 code review server (#3)#213
Smily2333 wants to merge 4 commits into
Tencent-Hunyuan:rhinobird2026from
Smily2333:codex/hy3-code-review

Conversation

@Smily2333

@Smily2333 Smily2333 commented Jul 31, 2026

Copy link
Copy Markdown

Summary

Implements the code review scenario for #3 as a local stdio MCP server powered by Hy3.

MCP tools

  • review_diff: evidence-backed findings with severity and locations
  • explain_changes: purpose, behavior changes, affected areas, risks, and reviewer focus
  • generate_test_plan: prioritized regression and boundary test cases

Delivery

  • OpenAI-compatible Hy3 API integration with validated structured outputs
  • bounded inputs, retry/error normalization, and prompt-injection boundaries
  • Python + uv packaging and one-command installation
  • WorkBuddy and Codex configuration examples; optional Cursor compatibility
  • bilingual README, architecture, client setup, demo, and validation documentation

Validation

  • 21 pytest tests, including MCP stdio -> fake Hy3 API end-to-end coverage
  • Ruff lint and format checks
  • wheel and source distribution build
  • MCP Inspector discovers all three tools
  • live Hy3 calls for all three tools
  • WorkBuddy end-to-end review_diff call
  • Codex end-to-end generate_test_plan call
  • two-client demo recordings, combined duration under two minutes

Demo evidence

Closes #3

@Smily2333
Smily2333 marked this pull request as ready for review July 31, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant