MG

mrjoshuak/godoc-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

130 stars 17 forks 品質 74 トレンド 1MIT

mrjoshuak/godoc-mcpは、https://github.com/mrjoshuak/godoc-mcp.からインポートされたMCPサーバー候補です。

概要

mrjoshuak/godoc-mcpは、https://github.com/mrjoshuak/godoc-mcp.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

概要

godoc-mcpは、Goドキュメントへの効率的なアクセスを提供するモデルコンテキストプロトコル(MCP)サーバーです。これは、ソースファイル全体を読むことなくパッケージドキュメントに直接アクセスできるため、LLMがGoプロジェクトの理解を助けます。godoc-mcpは、Goパッケージを理解し活用するために必要なトークン数を大幅に減らし、GoでLLMを活用して開発する際のパフォーマンスを大幅に向上させることができます。

始めて

なぜgodoc-mcpを使うのか?

一言で言えば:godoc-mcpは、LLMがGoプロジェクトをより効率的に理解するトークン的な方法を提供します。

従来のファイル読み取り手法では、単一のパッケージを理解するためにLLMがソースファイル全体、しばしば複数のファイルを処理する必要があります。godoc-mcpは以下のような利点を提供します:

  1. トークン効率:必要なドキュメントのみを返し、トークン使用を大幅に削減します
  2. 構造化情報:一貫性のある構造化された形式で公式パッケージドキュメントを提供します
  3. プロジェクトナビゲーション:プロジェクト構造のスマートな扱いは、LLMがマルチパッケージプロジェクトを理解するのに役立ちます
  4. 統合準備:他のMCPサーバーと連携し、高レベルかつ詳細なコード解析を可能にします

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

godoc-mcp

Overview

godoc-mcp is a Model Context Protocol (MCP) server that provides efficient access to Go documentation. It helps LLMs understand Go projects by providing direct access to package documentation without needing to read entire source files. godoc-mcp can vastly improve the performance of using LLMs to develop in Go by substantially reducing the number of tokens needed to understand and make use of Go packages.

Getting Started

go install github.com/mrjoshuak/godoc-mcp@latest

Why Use godoc-mcp?

In a sentence: godoc-mcp provides a more token efficient way for LLMs to understand Go projects.

Traditional file-reading approaches require LLMs to process entire source files often many files to understand a single package. godoc-mcp provides several advantages:

  1. Token Efficiency: Returns only the essential documentation, reducing token usage significantly
  2. Structured Information: Provides official package documentation in a consistent, well-structured format
  3. Project Navigation: Smart handling of project structures helps LLMs understand multi-package projects
  4. Integration Ready: Works alongside other MCP servers, enabling both high-level and detailed code analysis
  5. Performance: Caching and optimized token usage make godoc-mcp a fast and efficient tool for Go development
  6. Local: Does not require an internet connection to access documentation

With godoc-mcp, a LLM can get precisely the information it needs without having to read entire source files. Here are the different levels of detail that an LLM can get.

  • Documentation for one exported symbol
  • The complete source for one symbol
  • A list of all exported symbols (the concise documentation)
  • A list of all symbols including unexported symbols
  • The full documentation for a package
  • The entire source for a package

This makes godoc-mcp an essential tool for Go developers using LLMs by enabling LLMs to understand significantly more, and in more detail, about the context than previously possible in any programming language.

Features

The server will:

  1. For directories with Go files: Return package documentation
  2. For directories without Go files: List available Go packages in subdirectories
  3. For import paths: Return standard library or third-party package documentation
  • Efficient Documentation Access: Retrieves official Go documentation with minimal token usage
  • Smart Package Discovery: When pointed at a directory without Go files, lists available Go packages in subdirectories
  • Flexible Path Support:
GitHub で README 全文を見る

インストール

docker run -i --rm ghcr.io/mrjoshuak/godoc-mcp:latest
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "godoc": { "command": "docker", "args": ["run", "-i", "--rm", "ghcr.io/mrjoshuak/godoc-mcp:latest"] } } }