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.
아직 리뷰가 없습니다. 첫 번째 리뷰를 작성해 보세요!
대화에 참여하려면 로그인하세요
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