The io.github.xieyuschen/gopls-mcp server provides semantic code analysis for Go using gopls. It supports language-aware navigation such as definitions and references, and performs compiler-grade type resolution for Go code, including interface satisfaction and cross-package identity.
๐ ๏ธ Key Features
- Semantic code analysis for Go via gopls
- Language-aware navigation (definitions, references)
- Type system resolution (interface satisfaction, cross-package identity, shadowed scopes)
- Package dependency and semantic mapping tasks
๐ Use Cases
- Finding all concrete types implementing an interface
- Tracing call hierarchies
- Mapping package dependencies
โก Developer Benefits
- Delivers type-checker-level semantic analysis to an LLM
- Compared to text search, resolves Go types with compiler precision
- Benchmark over 11 tasks reports 2โ4ร fewer tool calls
โ ๏ธ Limitations
- The provided documentation excerpt only specifies results and task categories; it does not describe toolCount or supported MCP tool interfaces in detail.