MCP-Gopls is a server implementation that bridges the Go Programming Language Server (gopls) with the Model Context Protocol, enabling AI assistants to perform advanced code analysis on Go projects. It provides tools for code navigation (go-to-definition, find references), code completion, hover documentation, diagnostic error checking, and test coverage analysis. The server manages communication with the gopls language server through JSON-RPC, handling initialization, reconnection, and message formatting to make Go's powerful static analysis capabilities accessible through a standardized MCP interface.
Aún no hay reseñas. ¡Sé el primero en reseñar!
Inicia sesión para unirte a la conversación
Navigate to the definition of a symbol.
List all references for a symbol.
Fetch cached diagnostics for a file.
Return hover markdown for a symbol.
Return completion labels at a position.
Return formatting edits for an entire document.
Return workspace edits for a rename.
List available code actions for a range.
Search workspace-wide symbols.
Run `go test` with coverage + optional per-function report.
Execute `go test` for a package/pattern.
Execute `go mod tidy`.
Execute `govulncheck ./...`.
Return `go mod graph` output.
Turn raw diagnostics into actionable steps.
Generate a concise change checklist based on diagnostics.