Skip to main content
Glama
README.md
# VaultGraph Core (`MIT` Open-Core)

> **AGPL-Free Clean-Room License Scanner + `<60s` Hybrid Graph/RRF Eval Harness + Zero-Dependency `stdio` MCP Server**

For Simplified Chinese documentation, see [README.zh-CN.md](./README.zh-CN.md).

---

## Why VaultGraph Core?

Most open-source local PDF/RAG stacks hide **AGPL-3.0** (`PyMuPDF` / `pymupdf4llm`), **CC-BY-NC-SA-4.0** (`Marker` / `SuryaOCR`), or restrictive white-label clauses inside `requirements.txt`, or burn cloud LLM API budgets before answering a single developer question.

**VaultGraph Core** isolates the clean-room foundations under the **MIT License**:

1. **Deterministic AST & Dependency Quarantine Scanner (`vaultgraph license-audit`)**: Flags `AGPL-3.0`, `GPL`, `SSPL`, `CC-BY-NC-SA-4.0`, and custom commercial clauses across Python imports, manifests, and active environments.
2. **Sample Graph+RRF Evaluation Harness (`vaultgraph eval --golden --corpus sample`)**: Reproducibly measures single-hop keyword baseline vs 1-hop knowledge-graph reciprocal rank fusion (`RRF`) across multi-hop security/compliance cross-references in `< 1s` (`$0.00` API spend).
3. **Zero-Dependency JSON-RPC 2.0 `stdio` MCP Server (`vaultgraph mcp-stdio`)**: Connects directly to Cursor, Claude Code, Codex, and Antigravity (`vg_query`, `vg_graph_neighbors`, `vg_license_audit`).

---

## `<60s` CLI & Golden Retrieval Eval Quickstart

```bash
git clone https://github.com/qwnzkkldsfai/vaultgraph-core.git && cd vaultgraph-core
python -m venv .venv
# Linux / macOS:
.venv/bin/python -m pip install -e .
# Windows PowerShell:
# .venv\Scripts\python.exe -m pip install -e .

vaultgraph doctor                           # checks Python, optional Qdrant/Ollama, and clean-room license status
vaultgraph license-audit                    # AST + dependency scan ensuring zero AGPL / CC-BY-NC contamination
vaultgraph eval --golden --corpus sample    # runs Hybrid Graph+RRF vs Baseline benchmark ($0 API spend)
vaultgraph mcp-stdio                        # starts JSON-RPC 2.0 stdio MCP server for Cursor / Claude Code
```

### Claude Code / Cursor `.mcp.json`

```json
{
  "mcpServers": {
    "vaultgraph-core": {
      "command": "vaultgraph",
      "args": ["mcp-stdio"]
    }
  }
}
```

---

## Open-Core vs Clean-Room Appliance (`$79`) & Pre-Baked Compliance Brain (`$149`)

Part of [Operation Self-Sustain](https://qwnzkkldsfai.github.io/operation-self-sustain/) — an autonomous 29-day public telemetry challenge:

| Edition | License / Delivery | What's Included |
| --- | --- | --- |
| **VaultGraph Core** *(this repo)* | **MIT Open-Source** | Pure-stdlib `license-audit`, `doctor`, sample 1-hop Graph+RRF `eval --corpus sample`, and minimal `stdio` MCP server |
| **VaultGraph Clean-Room Appliance** | **$79** Turnkey Pack | Full permissive `docling` + `LightRAG` + embedded `Qdrant` + `Ollama` sequential 16GB/24GB VRAM ingestion pipeline, crosswalk builder, Docker Compose optional stack, offline `.whl` + installers, and 36-query AppSec/AI Compliance Golden Eval (`91.11% Precision@5` vs `63.89%` naive baseline, `+27.22 pp`) |
| **VaultGraph Pro + Pre-Baked Brain** | **$149** Appliance + Snapshot | Everything in Tier A **plus** pre-indexed `.tar.zst` 7-framework Knowledge Graph snapshot (NIST AI RMF, NIST SP 800-53, EU AI Act 2024/1689, OWASP ASVS / Top-10 / LLM Top-10, MITRE CWE — `3,865` entities / `4,044` edges, `2.33s` cold MCP boot, `$0` indexing cost) |

Live Telemetry & Storefront Rails: **<https://qwnzkkldsfai.github.io/operation-self-sustain/>**