run_go_test
“Execute rungotest on ./cmd/....”
How to use it
run_go_test is exposed by the MCP Gopls MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the run_go_test 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.”
“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.”
“Run rungovulncheck and stream findings.”
“Search workspace symbols for NewWorkspaceConfig.”
“Use the summarizediagnostics prompt on the latest diagnostics.”