BH

bradleygolden/hexdocs-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

69 stars 6 forks Качество 69 Тренд 0MIT

bradleygolden/hexdocs-mcp - кандидат на сервер MCP, импортированный из https://github.com/bradleygolden/hexdocs-mcp.

Обзор

bradleygolden/hexdocs-mcp - кандидат на сервер MCP, импортированный из https://github.com/bradleygolden/hexdocs-mcp.

Обзор (машинный перевод)

HexDocs MCP - это проект, который предоставляет возможности семантического поиска для документации пакета Hex, разработанной специально для приложений ИИ. Он состоит из двух основных компонентов:

  1. Бинарный Эликсир, который загружает, обрабатывает и генерирует встраивания из документации пакета Hex
  2. Сервер TypeScript, реализующий протокол Model Context Protocol (MCP), который вызывает двоичный файл Elixir для поиска и поиска документации

[!Осуждение] ** Данная документация отражает текущее состояние развития основной отрасли.** Для документации по последнему стабильному выпуску см. страницу последнего выпуска и ветку последнего выпуска.

##Установка

###Конфигурация клиента MCP

Сервер TypeScript MCP реализует протокол Model Context Protocol (MCP) и предназначен для использования MCP-совместимыми клиентами, такими как Cursor, Claude Desktop App, Continue и другими. Сервер предоставляет инструменты для семантического поиска документации Hex. Полный список MCP-совместимых клиентов см. в документации MCP.

Добавьте это в конфигурацию MCP json вашего клиента:

Эта команда автоматически загружает двоичные файлы эликсира как в файл fetch docs, так и в поисковую документацию.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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
Открыть полный README на GitHub

Установка

npx -y [email protected]
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

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