[tools] gopls/internal/mcp: add a tool for workspace diagnostics

1 view
Skip to first unread message

Robert Findley (Gerrit)

unread,
Jul 8, 2025, 2:08:03 PMJul 8
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Madeline Kalil, Go LUCI, Hongxiang Jiang, golang-co...@googlegroups.com

Robert Findley submitted the change

Change information

Commit message:
gopls/internal/mcp: add a tool for workspace diagnostics

LLMs should check for build errors across the workspace.
Also remove some newlines from the diagnostic summary.

For golang/go#73580
Change-Id: I0ca0152880442068289e3f2315dd64671818d1d9
Reviewed-by: Madeline Kalil <mka...@google.com>
Files:
  • M gopls/internal/mcp/diagnostics.go
  • M gopls/internal/mcp/mcp.go
  • M gopls/internal/mcp/workspace.go
  • A gopls/internal/mcp/workspace_diagnostics.go
  • M gopls/internal/test/marker/testdata/mcptools/diagnostics.txt
  • A gopls/internal/test/marker/testdata/mcptools/workspace_diagnostics.txt
Change size: M
Delta: 6 files changed, 149 insertions(+), 16 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Madeline Kalil
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I0ca0152880442068289e3f2315dd64671818d1d9
Gerrit-Change-Number: 686376
Gerrit-PatchSet: 3
Gerrit-Owner: Robert Findley <rfin...@google.com>
Gerrit-Reviewer: Hongxiang Jiang <hxj...@golang.org>
Gerrit-Reviewer: Madeline Kalil <mka...@google.com>
Gerrit-Reviewer: Robert Findley <rfin...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages