
本页由 AI 翻译,技术细节请以原文为准。 查看原文
lineai-intelligence/lineai-mcp-server 是从 https://github.com/lineai-intelligence/lineai-mcp-server. 导入的 MCP 服务器候选
概览
lineai-intelligence/lineai-mcp-server 是从 https://github.com/lineai-intelligence/lineai-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一个MCP服务器,利用Lineai丰富的软件依赖数据,集成你的AI编程助手。
文献资料
代码衍生的架构文档存放在docs/(新增于
LIN-737;根据LIN-699的变更进行了更新——PR #61 / neo4cape #1860):
- docs/architecture.md — 完整的架构分析:模块映射、工具表面以及每个工具调用的 Lineai
/api/...端点、认证流程、缓存、错误处理分类法、配置、打包/发布及发现。 - docs/architecture-diagrams.md — 美人鱼图集(生态系统、模块映射、调用序列、授权/缓存、错误分类法)。
- 文档/渲染图/ — 提交的SVG渲染图。
组成部分
工具
服务器实现了八个工具:两个影响工具加上六个由Lineai图HTTP API支持的图形工具。
代码分析工具
- lineai-method-impact:从Lineai服务器的API中拉取代码的影响评估。
- 采用你正在研究的“方法”;“类”是可选的(当存在多个匹配时使用的大小写不区分过滤器)。
- lineai-database-impact:分析代码与数据库实体之间的影响。
本页由 AI 翻译,技术细节请以原文为准。
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"
}
}
}
}