hloiseau/mcp-gopls
If you are the rightful owner of mcp-gopls and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
mcp-gopls is a Model Context Protocol server that integrates Go's language server (gopls) with AI assistants, enabling advanced code navigation and analysis features.
Tools
Functions exposed to the LLM to take actions
go_to_definition
Navigate to the definition of a symbol
find_references
List all references for a symbol
check_diagnostics
Fetch cached diagnostics for a file
get_hover_info
Return hover markdown for a symbol
get_completion
Return completion labels at a position
format_document
Return formatting edits for an entire document
rename_symbol
Return workspace edits for a rename
list_code_actions
List available code actions for a range
search_workspace_symbols
Search workspace-wide symbols
analyze_coverage
Run go test with coverage and optional per-function report
run_go_test
Execute go test for a package/pattern
run_go_mod_tidy
Execute go mod tidy
run_govulncheck
Execute govulncheck ./...
module_graph
Return go mod graph output
Prompts
Interactive templates invoked by user choice
No prompts
Resources
Contextual data attached and managed by the client