BH

bradleygolden/hexdocs-mcp

Developer tools

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

69 stars 6 forks 品質 69 トレンド 0MIT

bradleygolden/hexdocs-mcp は [https://github.com/bradleygolden/hexdocs-mcp.] からインポートされた MCP サーバーの候補です

概要

bradleygolden/hexdocs-mcp は [https://github.com/bradleygolden/hexdocs-mcp.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

HexDocs MCP は、AI アプリケーション用に特別に設計された、ヘックスパッケージのドキュメントのセマンティックな検索機能を提供するプロジェクトです。 それは2つの主要なコンポーネントから成ります:

1。 六角パッケージのドキュメントから埋め込みをダウンロード、処理、および生成する Elixir バイナリ 2。 Elixirバイナリを呼び出すモデルコンテキストプロトコル(MCP)を実装するTypeScriptサーバーが、ドキュメントの取得と検索を行います。

[!注意] このドキュメントは、メインブランチの現在の開発状態を反映しています。 最新リリースのドキュメントについては、最新のリリースページと最新のリリースブランチをご覧ください。

インストール

MCP クライアント構成

TypeScript MCP サーバは、モデルコンテキストプロトコル (MCP) を実装し、Cursor、Claude デスクトップ アプリ、 Continue などの MCP 互換クライアントが使用するように設計されています。 サーバは、ヘックスのドキュメントのセマンティック検索のためのツールを提供します。 MCP 互換クライアントの完全なリストについては、MCP クライアントのドキュメントを参照してください。

クライアントの MCP json 設定に追加します。

このコマンドは、 elixir のバイナリーを fetch docs と検索ドキュメントの両方に自動的にダウンロードします.

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

README

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

HexDocs MCP

HexDocs MCP is a project that provides semantic search capabilities for Hex package documentation, designed specifically for AI applications. It consists of two main components:

  1. An Elixir binary that downloads, processes, and generates embeddings from Hex package documentation
  2. A TypeScript server implementing the Model Context Protocol (MCP) that calls the Elixir binary to fetch and search documentation

[!CAUTION] This documentation reflects the current development state on the main branch. For documentation on the latest stable release, please see the latest release page and the latest release branch.

Installation

MCP Client Configuration

The TypeScript MCP server implements the Model Context Protocol (MCP) and is designed to be used by MCP-compatible clients such as Cursor, Claude Desktop App, Continue, and others. The server provides tools for semantic search of Hex documentation. For a complete list of MCP-compatible clients, see the MCP Clients documentation.

Add this to your client’s MCP json config:

{
  "mcpServers": {
    "hexdocs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}

This command will automatically download the elixir binaries to both fetch_docs and search documentation. While the server handles downloading the binaries, you still need Elixir and Mix installed on your system for the HexDocs fetching functionality to work properly.

Smithery

Alternatively, you can use Smithery to automatically add the MCP server to your client config.

For example, for Cursor, you can use the following command:

npx -y @smithery/cli@latest install @bradleygolden/hexdocs-mcp --client cursor

Elixir Package

Alternatively, you can add the hexdocs_mcp package to your project if you don’t want to use the MCP server.

{:hexdocs_mcp, "~> 0.5.0", only: :dev, runtime: false}

And if you use floki or any other dependencies that are marked as only available in another environment, update them to be available in the :dev environment as well.

For example floki is commonly used in :test:

{:floki, ">= 0.30.0", only: :test}

But you can update it to be available in the :dev environment:

{:floki, ">= 0.30.0", only: [:dev, :test]}

Requirements

  • Ollama - Required for generating embeddings
    • Run ollama pull mxbai-embed-large to download the recommended embedding model
    • Ensure Ollama is running before using the embedding features
  • Elixir 1.16+ and Erlang/OTP 26+
    • Installed automatically in CI environments
    • Required locally for development
GitHub で README 全文を見る

インストール

npx -y [email protected]
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "hexdocs-mcp": { "command": "npx", "args": [ "-y", "[email protected]" ] } } }