[HN Gopher] A type-safe, intuitive Go SDK for building MCP serve...
___________________________________________________________________
A type-safe, intuitive Go SDK for building MCP servers with ease
and confidence
Author : ktr0731
Score : 32 points
Date : 2025-04-14 15:14 UTC (3 days ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| nzach wrote:
| This seems to be a better alternative:
| https://github.com/mark3labs/mcp-go
| dblooman wrote:
| Have used this for a hackday recently, found it easy to use,
| even for a complete newcomer.
| boomskats wrote:
| Yeah, mcp-go is a pretty well known project (i know it from
| godoc-mcp), but I don't know whether 'better' is the right
| word.
|
| It looks like it's a case of builder pattern/runtime validated
| vs codegen/typed. The readme doesn't reference mcp-go by name,
| but it does lead with 'type-safe, intuitive', which could be a
| poke at it?
| peterldowns wrote:
| Do you know of anything that will autogen a golang mcp server
| from an OpenAPI spec? Seems completely do-able, and I'll
| write a tool for this myself if it doesn't already exist.
| ra7 wrote:
| Looks like there's also an official Go SDK coming soon, likely
| based on mark3labs/mcp-go. Proposal:
| https://github.com/orgs/modelcontextprotocol/discussions/224
| whydid wrote:
| Whenever I see this many emojis in a readme, I assume the entire
| project was written by AI.
| peterldowns wrote:
| Or, worse, an npm-infected frontend engineer. It's like a
| mindvirus in that ecosystem.
| ramesh31 wrote:
| >"Whenever I see this many emojis in a readme, I assume the
| entire project was written by AI."
|
| What difference does that make? Have you read the code and
| formulated an actual criticism, or is this just kneejerk "AI
| bad"?
| dstotijn wrote:
| I also wrote a Go library for MCP a few weeks ago, with type
| safety as one of the project goals:
| https://github.com/dstotijn/go-mcp. It uses generics to support
| type-safe RPC methods. Additionally, it leans on JSON schema and
| its features for property validation.
___________________________________________________________________
(page generated 2025-04-17 23:02 UTC)