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

Aperta
#2,806 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Dockerfile
Stelle
74
Fork
26
Merge medio
3h 17m
PR unite (30g)
74

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bufbuild/plugins

Tutte le issue di bufbuild/plugins

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.