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

Aberta
#2,806 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
48/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
go

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Dockerfile
Estrelas
74
Forks
26
Merge médio
3h 17min
PRs com merge (30d)
74

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de bufbuild/plugins

Todas as issues de bufbuild/plugins

Issues semelhantes

Mais issues de DevTools

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.