BH

bradleygolden/hexdocs-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

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.에서 수입되었습니다

개요(AI 번역)

HexDocs MCP는 AI 애플리케이션을 위해 특별히 설계된 Hex Package 문서에 대한 semantic 검색 기능을 제공하는 프로젝트입니다. 그것은 2개의 주요 성분으로 이루어져 있습니다:

  1. 다운로드, 프로세스 및 Hex 패키지 문서에서 embeddings를 생성하는 Elixir 바이너리
  2. Elixir 바이너리를 fetch 및 검색 문서에 호출하는 Model Context Protocol (MCP)을 구현하는 TypeScript 서버

[!주의사항] 이 문서는 주요 지점의 현재 개발 상태를 반영합니다. 최신 안정된 릴리스에 대한 문서는 최신 릴리스 페이지와 최신 릴리스 지점을 참조하십시오.

설치

MCP 클라이언트 구성

TypeScript MCP 서버는 Model Context Protocol (MCP)을 구현하며 Cursor, Claude Desktop App, Continue 및 기타와 같은 MCP 호환 클라이언트에 의해 사용됩니다. 서버는 Hex 문서의 semantic 검색 도구입니다. MCP 호환 클라이언트의 전체 목록은 MCP 클라이언트 문서를 참조하십시오.

클라이언트의 MCP json 구성에 이것을 추가하십시오:

이 명령은 자동으로 elixir binaries를 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]" ] } } }