TP

the-protobuf-project/mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

11 stars 4 forks 품질 73 트렌드 38Apache-2.0

MCP specification for your protocol buffers

개요

One schema, every surface. mcp is a spec-first protoc plugin that generates fully compliant Model Context Protocol servers straight from your .proto files — for Go, Rust, and C++ — so the definitions that already describe your APIs expose them to AI clients too. This release brings full support for protocol version 2026-07-28 . Annotate your .proto files with MCP options and protoc-gen-mcp generates a Model Context Protocol server for each service — no hand-written glue, and no second schema to keep in sync. The definitions you already maintain become: - → callable functions for agents - → structured interaction templates - → retrievable context/data - → dynamic input flows - → incremental updates for long-running calls The generated server implements the MCP specification at protocol version 2026-07-28 and delegates to your service implementation — in-process, or forwarded to a remote gRPC server. Your API stays strongly typed, and the proto remains the single source of truth.

README

원문 README의 일부입니다. 원문 보기.

MCP

One schema, every surface. mcp is a spec-first protoc plugin that generates fully compliant Model Context Protocol servers straight from your .proto files — for Go, Rust, and C++ — so the definitions that already describe your APIs expose them to AI clients too.

This release brings full support for protocol version 2026-07-28.

Overview

Annotate your .proto files with MCP options and protoc-gen-mcp generates a Model Context Protocol server for each service — no hand-written glue, and no second schema to keep in sync.

The definitions you already maintain become:

  • Tools → callable functions for agents
  • Prompts → structured interaction templates
  • Resources → retrievable context/data
  • Elicitation → dynamic input flows
  • Progress → incremental updates for long-running calls

The generated server implements the MCP specification at protocol version 2026-07-28 and delegates to your service implementation — in-process, or forwarded to a remote gRPC server. Your API stays strongly typed, and the proto remains the single source of truth.

Generated code builds on the official MCP SDKs — Go go-sdk v1.7+ and Rust rmcp 3.1+ (which also backs the C++ bridge).

This repository ships the plugin and the annotation .proto files. The Go runtime the generated code links against lives in

GitHub에서 전체 README 보기

설치

npx @modelcontextprotocol/inspector -- go run .
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →