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.
A type-safe, intuitive Go SDK for building MCP servers with ease and confidence
11–11 of 11 posts