Open
Conversation
rickbatka
commented
Feb 8, 2026
| {"source":"codelens"} | ||
|
|
||
| [2] Location: Lines 1-1 | ||
| Title: Run govulncheck |
Author
There was a problem hiding this comment.
I'm not sure why my local finds 7 codelenses as opposed to 6 - happy to revert this file if it messes with CI, this is just what I needed to get it to pass on my machine.
rickbatka
commented
Feb 8, 2026
| @@ -1,5 +1,5 @@ | |||
| ```go | |||
| type SharedStruct struct { // size=56 (0x38) | |||
| type SharedStruct struct { // size=56 (0x38), class=64 (0x40) | |||
Author
There was a problem hiding this comment.
Same as other snapshot - this is what the LSP returns on my machine; happy to revert.
This was referenced Feb 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds "headless" mode, allowing the MCP to talk to an already-running LSP, such as one running in your IDE. Does not set up file watchers in this mode (handled better by the IDE's LSP integration), which has the nice bonus of working around the "too many open files" bug in very large repos.
Integration tests updated for Go, which is the only one I can reliably test on my machine.
Instructions
Goplsto tell it to listen over http. For example, in VSCode / Cursor in.vscode/settings.json:mcp-language-serverwith the new arg--lsp-connect=localhost:6061(using whatever hostname:port combo you used to start your Gopls session)Benefits
In headless mode, the Gopls server that's already running in your IDE can also be used to power the MCP, instead of starting another one in parallel. This can simplify your setup: If you've configured the language server to your liking in your IDE, then your MCP will be sure to use the same LSP as you use in your IDE.
In VSCode / Cursos, you may want to ignore some folders to get better performance for your LSP:
When you connect to your already-running LSP, you get the same settings applied in your MCP-LSP session, and can benefit from speedups like directory ignore filters.
Testing
Integrations tests for Go were updated to run in both headless and regular mode. Other languages each require different approaches to getting LSPs running in the background, which may be worth the effort if folks using those languages could add their implementations.
I had to update the snapshot files for the Go integration tests, but this might be due to Go version mismatches. I'm happy to revert those files if it makes this easier to merge; I just wanted to get it all running locally so I could make sure I updated the tests properly.
I also tested in a separate project that previously was hitting the "too many open files" bug; it works around that bug and now the MCP server works great! I have Claude / Cursor using the LSP for renaming and it seems to work quite well!