find_references
“Ask the tool for references to ServeStdio.”
How to use it
Project documentation lists find_references for the MCP Gopls MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
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.”
“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.”
“List code actions for pkg/server/server.go:80-90.”
“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.”