mcp-golang - A go SDK for implementing MCP servers in go quickly #85
Chrisbattarbee
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pre-submission Checklist
What would you like to share?
I recently open sourced mcp-golang. A high-level unofficial sdk for building MCP servers in golang.
The main focus is maintaining type safety and auto generating as much as we can from type definitions.
We use reflection to figure out the args of the tool/resource/prompt handlers and use this to autogenerate the jsonschema which we serve to clients when they list resources. Auto serialize / deserialize, handle errors etc.
Quick example of this below in an example weather server.
From the type definitions we can generate out the following
tools/list
endpoint.Demo of it in action with Claude!
Screen.Recording.2024-12-12.at.14.46.02.mov
We've currently implemented the required functionality for servers. We're working through the optional features now, with the idea of supporting clients after that. Any help is appreciated!
Relevant Links
https://github.com/metoro-io/mcp-golang
Beta Was this translation helpful? Give feedback.
All reactions