)]}'
{
  "commit": "c74a2ae4b38d94308e11e0e4fabba11fee42da9a",
  "tree": "8b0362d6018eed2e23cd62eec9fbbf4b43fcfaa0",
  "parents": [
    "ae3f25c964090cde6ed3bd8981c2b468e07948cc"
  ],
  "author": {
    "name": "brucearctor",
    "email": "5032356+brucearctor@users.noreply.github.com",
    "time": "Fri Jul 31 23:37:39 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Jul 31 23:39:16 2026 -0700"
  },
  "message": "Add proto2mcp to global extension registry (1311-1313) (#28790)\n\n## Extension Registration Request\n\n**Project:** proto2mcp\n**Website:** https://github.com/protocgen/proto2mcp\n**Requested Extensions:** 1311-1313\n\n### About proto2mcp\n\nproto2mcp is a protoc/buf plugin that generates [MCP (Model Context Protocol)](https://modelcontextprotocol.io/) servers from Protobuf service definitions. It enables existing gRPC/ConnectRPC services to be securely exposed as LLM tools with:\n\n- Automatic JSON Schema generation from proto messages\n- Multitenancy support via interceptor middleware\n- `buf.validate` constraint mapping for LLM input validation\n- ConnectRPC client forwarding\n\n### Extension Usage\n\nproto2mcp uses custom options on three descriptor types:\n\n| Extension | Number | Purpose |\n|---|---|---|\n| `google.protobuf.MethodOptions` | 1311 | Per-method MCP tool configuration (name override, description, skip, hints) |\n| `google.protobuf.ServiceOptions` | 1312 | Per-service MCP configuration (tool name prefix, description) |\n| `google.protobuf.FileOptions` | 1313 | Per-file MCP configuration (skip entire file) |\n\n### Example\n\n```protobuf\nimport \"protocgen/mcp/v1/options.proto\";\n\nservice PatientService {\n  option (protocgen.mcp.v1.service) \u003d {\n    tool_name_prefix: \"Patient\"\n    description: \"Patient management operations\"\n  };\n\n  rpc GetPatient(GetPatientRequest) returns (GetPatientResponse) {\n    option (protocgen.mcp.v1.method) \u003d {\n      description: \"Retrieves a patient record by ID\"\n      read_only: true\n    };\n  }\n}\n```\n\n### Related\n\nproto2mcp is part of the [protocgen](https://github.com/protocgen) ecosystem, alongside [proto2type](https://github.com/protocgen/proto2type).\n\nCloses #28790\n\nCOPYBARA_INTEGRATE_REVIEW\u003dhttps://github.com/protocolbuffers/protobuf/pull/28790 from brucearctor:add-proto2mcp-extension 5724a815b6fff476e4b9eeec0ac7929b0aa60f01\nPiperOrigin-RevId: 957514481\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "afe3c0ea7123023b2ef68e9373e6f4ff0be84aa9",
      "old_mode": 33188,
      "old_path": "docs/options.md",
      "new_id": "736c6b54faf7345f8e4e5035e1e71e00670db634",
      "new_mode": 33188,
      "new_path": "docs/options.md"
    }
  ]
}
