Elixir Linux MCP Server

by KilluaYZ

122 downloads
Not rated
GitHub

About

Elixir Linux MCP Server is a Model Context Protocol server that adapts the Elixir Linux code indexing tool for use with large language models. It enables LLMs to more accurately read and understand Linux kernel source code that has been indexed by Elixir. This server is intended…

Details

Author
KilluaYZ
Downloads
122
Categories
Other

- Adapts Elixir-indexed Linux code for LLM access
- Allows precise code retrieval from Linux source
- Requires local Elixir index and Linux repo
- Uses Python and uv for execution
- Lightweight MCP server integration
- Enables context-aware code queries

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Elixir Linux MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Add a JSON configuration to your MCP client with the command uv and arguments pointing to the server directory and script. Set two environment variables: LXR_BASE_DIR (pointing to the Elixir data root, typically /srv/elixir-data/) and REPO_DIR (pointing to your local Linux source repository). The server runs via main.py.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "elixir linux mcp server": {
            "linux_source_code_query": {
                "command": "uv",
                "args": [
                    "--directory",
                    "/path/to/elixir_linux_mcp_server",
                    "run",
                    "main.py"
                ],
                "env": {
                    "LXR_BASE_DIR": "/srv/elixir-data/",
                    "REPO_DIR": "/path/to/linux"
                }
            }
        }
    }
}

McpServers

{
    "linux_source_code_query": {
        "command": "uv",
        "args": [
            "--directory",
            "/path/to/elixir_linux_mcp_server",
            "run",
            "main.py"
        ],
        "env": {
            "LXR_BASE_DIR": "/srv/elixir-data/",
            "REPO_DIR": "/path/to/linux"
        }
    }
}

Elixir Linux MCP Server

该项目是适配于Elixir查看Linux代码的MCP服务器,能够让LLM更精准地读代码

依赖条件

- 本地配置Elixir并根据其教程建立索引
- 安装了python和uv
- 已经clone了一个Linux仓库到本地

使用方法

将以下json代码粘贴到mcp的配置中:

{
  "mcpServers": {
    "linux_source_code_query": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/elixir_linux_mcp_server",
        "run",
        "main.py"
      ],
      "env": {
        "LXR_BASE_DIR": "/srv/elixir-data/",
        "REPO_DIR": "/path/to/linux"
      }
    }
  }
}
一般来说elixir建好索引项目的目录结构如下:
/srv/elixir-data
└── linux
    ├── data
    └── repo

环境变量LXR_BASE_DIR指向elixir项目的根目录/srv/elixir-data
环境变量REPO_DIR指向你clone下来的Linux源码项目

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.