# ai-context [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/vibgrate/cli  
**GitHub Stars:** 6  
**npm Downloads (last month):** 5558  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ai-context

## Description
Local-first MCP server: version-correct library docs, code map, and offline drift for your repo.

## Tools
Capabilities this server exposes over MCP:

- **orient** — start here: project overview, entry points, where to look first.
- **search_symbols** — find a symbol by name or literal string.
- **query_graph** — find code by meaning: symptoms, relationships, what-breaks-if.
- **get_node** — inspect one symbol: signature, callers, callees, area.
- **find_path** — shortest connection between two symbols, with each hop's edge kind; `calls_only` follows calls and gives each call-site line.
- **impact_of** — blast radius of a change: dependents, files, covering tests, risk.
- **tests_for** — which tests cover a symbol.
- **get_graph_summary** — code map overview: counts, languages, top areas and hubs.
- **list_areas** — code areas (communities) by size.
- **list_hubs** — most-depended-on symbols.
- **get_facts** — deterministic facts for a node (contract / invariant / characterization).
- **guide_node** — cited standards and practices for a node (OWASP/CWE).
- **check_drift** — offline dependency inventory with optional git who-added attribution.
- **vuln_attribution** — who introduced each open vulnerability, exposure windows, CRA remediation metrics.
- **list_vulnerabilities** — known vulnerabilities from the last `vg scan --vulns`: CVE, severity, CVSS, fixed version, and EPSS or known-exploited fields when that scan recorded them.
- **upgrade_impact** — what breaks if you upgrade a package: major distance, import blast radius, vulns fixed.
- **list_models** — local models on disk (Ollama / LM Studio / gguf).
- **resolve_library** — resolve a library to its canonical id and the version your project uses.
- **library_docs** — version-correct usage docs for a library, sliced to a token budget.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "ai-context": {
    "command": "npx",
    "args": ["-y","@vibgrate/cli"]
  }
}
```

## Documentation

## What ai-context MCP server does

ai-context MCP server exposes Vibgrate’s local codebase analysis through the Model Context Protocol. It gives an MCP-compatible coding assistant structured access to a repository’s symbols, relationships, areas, dependency state, vulnerabilities, and version-specific library documentation.

The server is designed for repository work rather than general-purpose file browsing. An assistant can start with `orient`, inspect a symbol with `get_node`, trace relationships with `find_path` or `query_graph`, and assess a proposed change with `impact_of`. It can also identify covering tests, retrieve deterministic facts, and attach OWASP or CWE guidance to a node.

## How it works

Start the service with the Vibgrate CLI using `vg serve`. The server operates locally and builds a code graph from the repository. When files change, the next tool call incrementally refreshes the map, so edits made during an agent session can be reflected without running a separate watcher or daemon.

Dependency and security analysis is also local-first. `check_drift` inventories dependencies and can include optional Git attribution for who added them. Vulnerability tools use data from the most recent `vg scan --vulns` run, while `upgrade_impact` estimates the effect of moving to a newer package version by examining major-version distance, import reach, and vulnerabilities fixed.

Library assistance is version-aware: `resolve_library` identifies a library and the version used by the project, and `library_docs` returns documentation constrained by a token budget. Local documentation can be used first; thin local results may fall back to the hosted catalog unless the CLI is run with `--local`.

## Setup and configuration

Node.js 24 or newer is required. Install the package for repeated use, then start the MCP service:

```bash
npm install -D @vibgrate/cli
npx vg serve
```

For a one-off setup, run the package directly with `npx @vibgrate/cli`. The CLI also supports an HTTP mode with `vg serve --http`.

Use `vg install` to interactively select an assistant and write its MCP configuration. `vg install --all` configures every detected assistant. The repository’s normal CLI commands can build or refresh analysis before serving, including `vg build` and vulnerability scanning through `vg scan --vulns`.

## Tools and capabilities

The MCP tool surface includes:

- `orient`, `get_graph_summary`, `list_areas`, and `list_hubs` for repository structure and code-map orientation.
- `search_symbols`, `query_graph`, `get_node`, and `find_path` for locating symbols and tracing calls or other relationships.
- `impact_of` and `tests_for` for change blast-radius analysis and test coverage lookup.
- `get_facts` for deterministic node facts, plus `guide_node` for cited OWASP and CWE practices.
- `check_drift`, `list_vulnerabilities`, `vuln_attribution`, and `upgrade_impact` for dependency age, exposure, vulnerability ownership, and upgrade analysis.
- `list_models` for models available on disk through Ollama, LM Studio, or GGUF files.
- `resolve_library` and `library_docs` for project-version-specific library guidance.

The broader CLI can also compress tool output and older conversation content before it reaches an agent, with originals retained for local retrieval. That mode is enabled through the CLI’s installation or serving options rather than a separate MCP analysis tool.

## Limitations and notes

The server is intended to run against local repository data. No API key is required, and repository data is not uploaded unless explicitly pushed; library documentation may use the hosted catalog when local results are insufficient and `--local` is not selected.

Vulnerability results depend on the latest `vg scan --vulns` data available to the repository. Git-based attribution is optional. The package is licensed under Apache-2.0.

_Full upstream README: https://allmcps.com/mcp/ai-context/readme_

