lineai-mcp-server

v1.4.0
io.github.lineai-intelligence/lineai-mcp-server Checked 8 hours ago Published 1 month ago

An MCP Server to utilize Lineai's rich software dependency data in your AI programming assistant.

Values you need

VariableWhat it is
LINEAI_SERVER_HOSTrequired url to the Lineai server e.g. https://myco.app.lineai.net
LINEAI_USERNAMErequired Lineai server username
LINEAI_PASSWORDrequired secret Lineai server password
LINEAI_WORKSPACE_NAMErequired the workspace name that your code is scanned into
LINEAI_DEBUG_MODEoptional When enabled, additional debug files such as timing_log.txt and impact_data*.json will be generated. Defaults to false

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add lineai-mcp-server -e 'LINEAI_PASSWORD=<LINEAI_PASSWORD>' -e 'LINEAI_SERVER_HOST=<LINEAI_SERVER_HOST>' -e 'LINEAI_USERNAME=<LINEAI_USERNAME>' -e 'LINEAI_WORKSPACE_NAME=<LINEAI_WORKSPACE_NAME>' -- uvx lineai-mcp-server==1.4.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "lineai-mcp-server": {
      "args": [
        "lineai-mcp-server==1.4.0"
      ],
      "command": "uvx",
      "env": {
        "LINEAI_PASSWORD": "<LINEAI_PASSWORD>",
        "LINEAI_SERVER_HOST": "<LINEAI_SERVER_HOST>",
        "LINEAI_USERNAME": "<LINEAI_USERNAME>",
        "LINEAI_WORKSPACE_NAME": "<LINEAI_WORKSPACE_NAME>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "lineai-mcp-server": {
      "args": [
        "lineai-mcp-server==1.4.0"
      ],
      "command": "uvx",
      "env": {
        "LINEAI_PASSWORD": "<LINEAI_PASSWORD>",
        "LINEAI_SERVER_HOST": "<LINEAI_SERVER_HOST>",
        "LINEAI_USERNAME": "<LINEAI_USERNAME>",
        "LINEAI_WORKSPACE_NAME": "<LINEAI_WORKSPACE_NAME>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "LINEAI_PASSWORD",
      "id": "lineai-password",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "LINEAI_SERVER_HOST",
      "id": "lineai-server-host",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "LINEAI_USERNAME",
      "id": "lineai-username",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "LINEAI_WORKSPACE_NAME",
      "id": "lineai-workspace-name",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "lineai-mcp-server": {
      "args": [
        "lineai-mcp-server==1.4.0"
      ],
      "command": "uvx",
      "env": {
        "LINEAI_PASSWORD": "${input:lineai-password}",
        "LINEAI_SERVER_HOST": "${input:lineai-server-host}",
        "LINEAI_USERNAME": "${input:lineai-username}",
        "LINEAI_WORKSPACE_NAME": "${input:lineai-workspace-name}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.lineai-mcp-server]
command = "uvx"
args = ["lineai-mcp-server==1.4.0"]
env = { "LINEAI_PASSWORD" = "<LINEAI_PASSWORD>", "LINEAI_SERVER_HOST" = "<LINEAI_SERVER_HOST>", "LINEAI_USERNAME" = "<LINEAI_USERNAME>", "LINEAI_WORKSPACE_NAME" = "<LINEAI_WORKSPACE_NAME>" }

For AI agents

  1. Ask the user for: LINEAI_SERVER_HOST, LINEAI_USERNAME, LINEAI_PASSWORD, LINEAI_WORKSPACE_NAME. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: lineai-method-impact, lineai-database-impact, lineai-graph-capabilities, lineai-graph-search, lineai-graph-impact, lineai-graph-path-explain, lineai-graph-validate-change-scope, lineai-graph-owners.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json