Godoc icon

Godoc

Createdmrjoshuak

Serves Go documentation efficiently to LLMs via the Model Context Protocol, reducing token usage and improving project understanding.

About

Godoc provides a more token-efficient way for LLMs to understand Go projects by serving official Go documentation directly. By using the Model Context Protocol, it significantly reduces the number of tokens needed for LLMs to grasp Go packages, vastly improving their performance in Go development. Godoc offers structured access to package information, smart project navigation, and seamless integration with other MCP servers, enabling both high-level and detailed code analysis.

Key Features

  • Efficient Documentation Access: Retrieves official Go documentation with minimal token usage
  • Smart Package Discovery: Lists available Go packages in subdirectories when pointed at a directory without Go files.
  • Flexible Path Support: Supports local file paths and import paths.
  • Automatic Module Context: Creates temporary Go projects when needed, automatically setting up module context for external packages.
  • Performance Optimized: Built-in response caching and efficient token usage.

Use Cases

  • Project Understanding: LLMs can quickly understand the structure and purpose of Go projects.
  • Package Interface Understanding: LLMs can easily explore the interfaces provided by Go packages.
  • Implementation Guidance: LLMs can access documentation and related types for implementing interfaces.