#1516·hertz

[Proposal]MCP Adapter for Hertz

Author: Lcos-000Created Jun 25, 2026Updated Jun 25, 2026

1. Background

MCP is becoming a mainstream protocol for AI tool calling. Other language frameworks have already completed integration (FastAPI-MCP, Spring AI, trpc-mcp-go). Hertz has built-in SSE support, providing the necessary technical foundation. hertz-contrib is the officially recognized third-party extension library for Hertz, and this project, as an MCP protocol adaptation layer, aligns with its positioning.

2. Goal

Provide a lightweight adapter layer that allows Hertz users to expose existing Handlers as MCP tools with minimal effort.

3. Current Status

A working initial version has been completed, with the core workflow fully functional and validated through MCP Inspector and AI IDE. The codebase is small, depends only on Hertz, and has a solid foundation for further iteration.

4. Next Steps

Refine gradually based on community feedback, with the hope of driving this effort to completion.

link : https://github.com/Lcos-000/MCP-adapter