
Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
lineai-intelligence/lineai-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/lineai-intelligence/lineai-mcp-server.
Обзор
lineai-intelligence/lineai-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/lineai-intelligence/lineai-mcp-server.
Обзор (машинный перевод)
Сервер MCP для использования данных о зависимости программного обеспечения Lineai в вашем помощнике по программированию ИИ.
Документация
Кодовая архитектурная документация живет в docs/
LIN-737; обновлен для изменений LIN-699 — PR #61 / neo4cape #1860:
- docs/architecture.md - полный анализ архитектуры: карта модуля, поверхность инструмента и конечные точки Lineai
/api/..., каждый вызов инструмента, поток аута, кэширование, таксономия обработки ошибок, конфигурация, упаковка / выпуск и выводы. — docs/architecture-diagrams.md — набор диаграмм Русалки (экосистема, карта модуля, последовательность вызовов, аут/кэширование, таксономия ошибок). — docs/rendered-diagrams/ — совершенные SVG-рендеры каждой диаграммы.
Компоненты
Инструменты
Сервер реализует восемь инструментов: два инструмента воздействия плюс шесть инструментов graph, поддерживаемых линейным графом HTTP API.
Инструменты анализа кода
- линейно-методическое воздействие**: Получает оценку воздействия API сервера Lineai для вашего кода.
- Принимает данный “метод”, над которым вы работаете. Передайте ** полностью квалифицированное** название класса в “классе” (например, “com.acme”). Скорлупа.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
lineai-mcp-server
An MCP Server to utilize Lineai’s rich software dependency data in your AI programming assistant.
Documentation
Code-derived architecture documentation lives in docs/ (added in
LIN-737; updated for the LIN-699 changes — PR #61 / neo4cape #1860):
- docs/architecture.md — full architecture analysis: module map, tool surface and the Lineai
/api/...endpoints each tool calls, auth flow, caching, error-handling taxonomy, configuration, packaging/release, and findings. - docs/architecture-diagrams.md — Mermaid diagram set (ecosystem, module map, call sequence, auth/caching, error taxonomy).
- docs/rendered-diagrams/ — committed SVG renders of every diagram.
Components
Tools
The server implements eight tools: two impact tools plus six graph tools backed by the Lineai graph HTTP API.
Code Analysis Tools
- lineai-method-impact: Pulls an impact assessment from the Lineai server’s APIs for your code.
- Takes the given “method” that you’re working on. Pass the fully-qualified class name in “class” (e.g.
com.acme.shell.AnalyzeCommands) when the simple name may exist in several repositories: a fully-qualified class selects exactly that class, while a simple name that matches several classes returns an ambiguity page listing the candidates instead of silently analyzing another repository’s class. - The impact is a bounded upstream traversal from the Lineai graph impact endpoint (
depthargument, default 3, max 10). The report’s Impact scope section says where the data came from (graph, or the legacy full-chain endpoint when the graph endpoint is not deployed) and whether it is complete (ok) or a lower bound (partial) — a partial result is never “no impact”.
- Takes the given “method” that you’re working on. Pass the fully-qualified class name in “class” (e.g.
- lineai-database-impact: Analyzes impacts between code and database entities.
- Takes the database entity type (column, table, or view) and its name.
All eight tools also accept optional workspace and materialized_view_id arguments to scope a single call; when neither is given (and LINEAI_WORKSPACE_NAME is unset) the server’s default workspace’s latest materialized view is used automatically.
Graph API tools
These call POST / GET endpoints under /api/ai-retrieval/graph/ on the same host as LINEAI_SERVER_HOST, using the same session auth as other MCP tools. If graph routes are not deployed, the server returns a clear “graph not available” style message (often after HTTP 404).
- lineai-graph-capabilities:
GET— discover supported relationship types, limits, and flags for the workspace materialized view (materializedViewIdresolved like every other tool: explicit id →workspaceargument →LINEAI_WORKSPACE_NAME→ server default).
Установка
uvx lineai-mcp-server@latestКонфигурация
{
"mcpServers": {
"lineai-mcp-server": {
"type": "stdio",
"command": "<PATH_TO_UV>/uv",
"args": [
"--directory",
"<PATH_TO_THIS_REPO>/lineai-mcp-server-main",
"run",
"lineai-mcp-server"
],
"env": {
"LINEAI_SERVER_HOST": "<url to the server e.g. https://myco.app.lineai.net>",
"LINEAI_USERNAME": "<my username>",
"LINEAI_PASSWORD": "<my password>",
"LINEAI_WORKSPACE_NAME": "<my workspace>",
"LINEAI_DEBUG_MODE": "true"
}
}
}
}