About hloiseaufcms/mcp-gopls
hloiseaufcms/mcp-gopls is an MCP server published by hloiseau in the Data category: model Context Protocol (MCP) server for Go using gopls – LSP-powered analysis, tests, coverage, and tooling. Conduid read 14 tools from its source: analyze_coverage, check_diagnostics, find_references, format_document, get_completion, get_hover_info and 8 more. No package is published for it, so it installs from a source checkout.
The repository has 104 stars and 11 forks, is licensed Apache-2.0, and its last commit was on 22 Jun 2026. The latest release is v2.1.0 (22 Jun 2026). It follows v2.0.1 (7 Jan 2026), and the 4 most recent releases go back to v1.0.0 (22 Nov 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools, gopls and lsp.
Install
git clone https://github.com/hloiseau/mcp-goplsTools (14)
analyze_coverageRun `go test` with coverage + optional per-function report| Parameter | Type | Description |
|---|---|---|
| output_format | string | Format of the coverage output: 'summary' (default) or 'func' (per function) |
| path | string | Path to the package or directory to analyze. Defaults to ./... |
check_diagnosticsFetch cached diagnostics for a file| Parameter | Type | Description |
|---|---|---|
| file_uri * | string | URI of the file |
find_referencesList all references for a symbol| Parameter | Type | Description |
|---|---|---|
| file_uri * | string | URI of the file |
| position * | object | Position of the symbol |
format_documentReturn formatting edits for an entire document| Parameter | Type | Description |
|---|---|---|
| file_uri * | string | URI of the file to format |
get_completionReturn completion labels at a position| Parameter | Type | Description |
|---|---|---|
| file_uri * | string | URI of the file |
| position * | object | Position where to get completion |
get_hover_infoReturn hover markdown for a symbol| Parameter | Type | Description |
|---|---|---|
| file_uri * | string | URI of the file |
| position * | object | Position of the symbol |
go_to_definitionNavigate to the definition of a symbol| Parameter | Type | Description |
|---|---|---|
| file_uri * | string | URI of the file |
| position * | object | Position of the symbol |
list_code_actionsList available code actions for a range| Parameter | Type | Description |
|---|---|---|
| file_uri * | string | URI of the file |
| range * | object | Range to inspect for code actions |
module_graphReturn `go mod graph` outputrename_symbolReturn workspace edits for a rename| Parameter | Type | Description |
|---|---|---|
| file_uri * | string | URI of the file |
| new_name * | string | New identifier name |
| position * | object | Position of the symbol |
run_go_mod_tidyExecute `go mod tidy`run_go_testExecute `go test` for a package/pattern| Parameter | Type | Description |
|---|---|---|
| path | string | Package path or pattern. Defaults to ./... |
run_govulncheckExecute `govulncheck ./...`search_workspace_symbolsSearch workspace-wide symbols| Parameter | Type | Description |
|---|---|---|
| query * | string | Search query |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.5K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum.
- ✓No dynamic code executionScanned 22 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 3 callsinternal/goenv/goenv.go:21, pkg/lsp/client/gopls.go:137, pkg/tools/lsp_tools.go:218
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 3 callspkg/server/server.go:186, pkg/tools/testing.go:92, pkg/tools/testing.go:97
- Lockfile
- go.sum
Pattern matches on the source text of 22 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.5K words, fetched a month ago. The original in the repository is authoritative.
Read full README