cloudwego / cloudwego/hertz

[Proposal]MCP Adapter for Hertz

Open
#1,516 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
7.4k
Forks
643
Avg merge
14h 5m
Merged PRs (30d)
2

Description

## 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

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the linked MCP-adapter repository and Hertz's existing SSE support; the issue names no files, tests, or entry points in this repository. Determine whether the external initial version can be brought into hertz-contrib, and consider the work done only when the adapter exposes Hertz handlers as MCP tools with the stated validation preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.