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.
No reviews yet. Be the first to review!
Sign in to join the conversation
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
Use the `summarize_diagnostics` prompt on the latest diagnostics.
Feed `refactor_plan` the diagnostics JSON to plan fixes.