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

Abierto
#2,806 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Dockerfile
Estrellas
74
Forks
26
Merge medio
3 h 17 min
PR fusionados (30 d)
74

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bufbuild/plugins

Todos los issues de bufbuild/plugins

Issues similares

Más issues de DevTools

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.