list_code_actions
“List code actions for pkg/server/server.go:80-90.”
How to use it
list_code_actions is exposed by the MCP Gopls MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the list_code_actions tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Gopls
go install github.com/hloiseau/mcp-gopls/v2/cmd/mcp-gopls@latestOther tools in MCP Gopls (15)
“Run analyzecoverage for ./pkg/... with per-function stats.”
“Request diagnostics for cmd/mcp-gopls/main.go.”
“Ask the tool for references to ServeStdio.”
“Run the formatter over pkg/tools/refactor.go.”
“Trigger completions at pkg/server/server.go:55.”
“Call gethoverinfo on pkg/tools/workspace.go:88.”
“Use gotodefinition on pkg/server/server.go:42.”
“Call modulegraph to inspect dependencies.”
“Feed refactorplan the diagnostics JSON to plan fixes.”
“Rename clientFactory to newClientFactory via the tool.”
“Invoke rungomodtidy to sync go.mod.”
“Execute rungotest on ./cmd/....”
“Run rungovulncheck and stream findings.”
“Search workspace symbols for NewWorkspaceConfig.”
“Use the summarizediagnostics prompt on the latest diagnostics.”