{"repo":"stablekernel/protoc-gen-go-mcp","free":true,"listed":false,"github":"https://github.com/stablekernel/protoc-gen-go-mcp","clone":"git clone https://github.com/stablekernel/protoc-gen-go-mcp.git","description":"A protoc plugin for generating mcp servers in golang from a protocol buffer specification","language":"Go","stars":37,"topics":[],"license":"Apache-2.0","category":"mcp-servers","readme_excerpt":"protoc-gen-go-mcp ----------------- This is a Topeka plugin for the protoc compiler that generates a model-context-protocol(MCP) server based on a protocol buffer definition. Conceptually, this allows an AI model to use existing gRPC codebases with natural language, allowing for rapid prototyping and usage of LLM capabilities for protobuf based codebases. Prerequisites - Go 1.20 or later - protoc 3.20 or later - protoc-gen-go-grpc 1.71 or later Running the plugin Check out the Makefile for explicit command usage. Use make generate to generate the example MCP server from the proto file. Debugging the plugin Will start the delve debugger in headless mode on port 2345. The file under debug will be $GOPATH/bin/protoc-gen-go-mcp . You can connect to that in VSCode with the following launch.json configuration. Testing the example Install the example mcp-vibe server Add the mcp-vibe server to your mcp servers: Philosophical Notes The plugin uses the existing code generation for protocol buffers and gRPC servers and builds upon that base, using and reusing parts where necessary. This gives us a healthy amount of code reuse while allowing us to control what we expose to end users. We want this plugin to provide sane, out-of-the-box functionality while allowing for easy extension. How is this achieved? The code is broken into composable parts: 1. The protoc-gen-go-mcp plugin generates default tools based on the request parameters for any given RPC. eg: This snippet defines the SetVibe ","default_branch":null,"files":null,"tree":[],"storefront":"/r/stablekernel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stablekernel/protoc-gen-go-mcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}