mcp integrity agents lint links
Reference
Reference integrity for AI agents. Scans a repository for every reference and verifies each one resolves.
Version
v0.1.6
License
MIT
Platforms
Node 18 or newer, Any MCP client
Interfaces
CLI, MCP
Overview
Agents assume references resolve. They import a file that was renamed, link a repository that was deleted, or depend on a package that was unpublished, and only discover it after wasting a session. Reference extracts every reference in a repository and verifies each one up front.
Setup
npm install -g reference-mcp
Add the server to your MCP client.
{
"mcpServers": {
"reference": {
"command": "reference-mcp",
"args": []
}
}
}
Usage
reference.scanextract every reference from a repository, deduplicated by kind:localimports,moduledependencies,urllinks,assetfiles.reference.checkverify local paths, module names, and URLs. PasscheckRemote: falsefor a fully offline check. Returns findings with a status per reference and aBROKEN_REFERENCESorALL_OKverdict.
Typical agent instructions:
- “Are any links in this repo dead?”
- “Does every import in this project resolve?”
- “Which of our npm dependencies no longer exist?”
Gains
- Broken references are found before an agent or build depends on them.
- Full coverage in one pass. Imports, assets, dependencies, and links together.
- Offline mode for air gapped and CI environments.
- Deterministic. The same repository produces the same report.
Repository
- Repository: github.com/AbduljabbarBXR/reference-mcp
- npm:
reference-mcp - License: MIT
- Current version: 0.1.6