CodelogicSAFE
An MCP Server to utilize Lineai's rich software dependency data in your AI programming assistant.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
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; "class" is optional (a case-insensitive filter used when several matches exist).
- 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—
50c1f0bc6156OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add lineai-mcp-server --env LINEAI_PASSWORD=${LINEAI_PASSWORD} -- None lineai-mcp-server==1.3.2Exposed tools (8)
8 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
lineai-database-impact | read | Analyze impacts between code and database entities.\n |
lineai-graph-capabilities | read | Fetch graph API capabilities/manifest from the Lineai server (GET). |
lineai-graph-impact | read | Bounded graph impact from seed node ids (curated HTTP API). |
lineai-graph-owners | read | Look up owners/reviewers for a graph node (curated HTTP API). |
lineai-graph-path-explain | read | Explain bounded paths between two graph nodes (curated HTTP API). |
lineai-graph-search | read | Search the Lineai knowledge graph (curated HTTP API). |
lineai-graph-validate-change-scope | read | Validate whether a proposed change scope is safe given seed graph nodes (curated HTTP API). |
lineai-method-impact | read | Analyze impacts of modifying a specific method within a given class or type.\n |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (6)
.flake8
.env.test.example
For more control, you can use the low-level server implementation directly. This gives you full access to the protocol and allows you to customize every aspect of your server, including lifecycle mana
- Load real credentials via **`test/.env.test`** or project **`.env`** (see `load_test_config()` in `test/integration_test_all.py`).
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 ser
context/llms-full.txt
Gates applied: no_behavioural_pass.
50c1f0bc6156full audit observations/trust-audit/mcp-server/codelogicincengineering__codelogic.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 50c1f0bc6156 | SAFE | B | 89 | first audit |
Questions
What is the Codelogic MCP server?
An MCP Server to utilize Lineai's rich software dependency data in your AI programming assistant.
What tools does Codelogic expose?
8 in total: 8 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Codelogic safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Codelogic need?
It reads LINEAI_PASSWORD and LINEAI_TOKEN_CACHE_TTL from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Codelogic run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as lineai-mcp-server.
How current is this page?
The grade is for one exact copy of the source (50c1f0bc6156), read on 2026-10-08. The repository is watched and re-audited when it changes.