
bradleygolden/hexdocs-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
bradleygolden/hexdocs-mcp - кандидат на сервер MCP, импортированный из https://github.com/bradleygolden/hexdocs-mcp.
Обзор
bradleygolden/hexdocs-mcp - кандидат на сервер MCP, импортированный из https://github.com/bradleygolden/hexdocs-mcp.
Обзор (машинный перевод)
HexDocs MCP - это проект, который предоставляет возможности семантического поиска для документации пакета Hex, разработанной специально для приложений ИИ. Он состоит из двух основных компонентов:
- Бинарный Эликсир, который загружает, обрабатывает и генерирует встраивания из документации пакета Hex
- Сервер 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:
- An Elixir binary that downloads, processes, and generates embeddings from Hex package documentation
- 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-largeto download the recommended embedding model - Ensure Ollama is running before using the embedding features
- Run
- Elixir 1.16+ and Erlang/OTP 26+
- Installed automatically in CI environments
- Required locally for development
Установка
npx -y [email protected]Конфигурация
{
"mcpServers": {
"hexdocs-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}