Plugin request for Buf Schema Registry: protoc-gen-dedo-mcp

Ouverte
#2,806 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
48/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
go

Piste de recherche

Start with the plugin source at mcp/cmd/protoc-gen-dedo-mcp and read the Buf Schema Registry plugin contribution requirements to determine what changes are needed for registration. Check how the generated plugin integrates with protoc-gen-go and its dependencies; done means the plugin is available through the BSR with its documented version and generation behavior.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Mandatory

Where is the source code for the plugin?

https://github.com/raveesh-me/dedo/tree/main/mcp/cmd/protoc-gen-dedo-mcp

protoc-gen-dedo-mcp writes the MCP (Model Context Protocol) tool input schema of every unary RPC, as JSON Schema 2020-12, at code-generation time:

  • field descriptions come from proto comments;
  • OUTPUT_ONLY fields are left out;
  • a request with a google.protobuf.FieldMask is a partial update (AIP-134), so only the resource name is required, and the schema lists the mask's valid paths;
  • a create leaves out the server-assigned name (AIP-133).

The output is one Go file per proto file, in the same package as protoc-gen-go's output: var MCPInputSchemas = map[string]string{...}.

Optional

Does the plugin have a valid semver version?

Yes, v0.5.0 (https://github.com/raveesh-me/dedo/releases/tag/v0.5.0). The Go module tag is mcp/v0.5.0, and go install github.com/raveesh-me/dedo/mcp/cmd/[email protected] works.

Does the plugin have a dependency on another plugin?

Yes. The generated file joins the Go package written by protoc-gen-go: https://github.com/protocolbuffers/protobuf-go/tree/master/cmd/protoc-gen-go

Does the output of this plugin depend on any other external libraries?

The generated file imports nothing. Services pass the map to github.com/raveesh-me/dedo/mcp/mcpserver, which serves the tools generated by protoc-gen-go-mcp (https://github.com/redpanda-data/protoc-gen-go-mcp) with these schemas.

License: Apache-2.0. The output depends only on the request.

Langage dominant
Dockerfile
Étoiles
74
Forks
26
Merge moyen
3 h 17 min
PR mergées (30 j)
74

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de bufbuild/plugins

Toutes les issues de bufbuild/plugins

Issues similaires

Plus d'issues DevTools

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.