Agentโ™ฅ๏ธŽAge
Catalog

io.github.xieyuschen/gopls-mcp

Official

by xieyuschen ยท Go

Semantic code analysis for Go using gopls - language-aware navigation, definitions, references

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.

Topics

ai-agentclaude-codegogolangmcp-servercodexgeministatic-analysis