English · Português (Brasil)
Concierge Graph (V4 Core)
Open-Source, Local-First Long-Term Memory (LTM), Hybrid Search & MCP Governance Server for AI Agents and IDEs
Concierge Graph is a local-first memory server built around the Model Context Protocol (MCP) that gives AI coding assistants (Cursor, Claude Desktop, and autonomous agents) persistent project memory, hybrid retrieval, recursive call-chain queries, durable agent checkpoints, and governed tool disclosure — backed by SQLite WAL (with FTS5) and pluggable vector storage (ChromaDB by default, optional Qdrant).
V4 Core Consolidation Note: Experimental modules from earlier iterations have been moved to quarantine under
archive/v4-experimental/so that the active V4 core remains lean, deterministic, and audited.
Core Capabilities (V4 Core)
- SQLite WAL + FTS5 Relational Graph (
storage/): Stores projects, code nodes, call/import edges, semantic facts, memory commits, and durable agent checkpoints (agent_checkpoints) in a local SQLite database with WAL mode and full-text indexing. - Tri-Signal Hybrid Search v4 (
core/hybrid_search.py): Blends dense vector similarity (sentence-transformers+ ChromaDB/Qdrant), SQLite FTS5 BM25 lexical scoring, and topological/recency signals with strict project/wing scoping and query-time orphan vector filtering. - Python AST Ingestion & Self-Healing Vectors (
ingestion/,services/janitor.py): Crawls repositories, extracts Python AST chunks and call edges, repairs missing embeddings during mining with honest failure reporting, and supports on-demand vector reconciliation (concierge sync-vector). - Recursive Call-Chain GraphRAG (
core/graph_rag.py): Traverses multi-hopcallsdependencies over SQLiteedgesusingWITH RECURSIVECTEs protected by strict pipe-delimited cycle guards (|node|). - Durable Agent Checkpoints with Ownership Binding (
core/checkpointer.py): Persists and retrieves structured agent state dictionaries inagent_checkpointsviaagent_save_checkpoint,agent_get_checkpoint, andagent_list_checkpointswith strict argument resolution, corrupt-JSON detection, and SHA-256owner_hashnamespace verification (GRAFO_AGENT_TOKENoverstdio, orX-Grafo-Agent-Tokenover HTTP/SSE decoupled fromAuthorization: Bearer, falling back to an ephemeral per-ServerSessionsecret). - Least-Privilege MCP Governance (
core/mcp_governor.py): Classifies all 31 live MCP tools intoREAD_ONLY(17),LOCAL_MUTATION(12), andDANGEROUS(2) across a 3-state hierarchy (PLANNING < EXECUTION < MAINTENANCE), defaulting toPLANNING(GRAFO_DEFAULT_STATE) as a hard privilege ceiling (max_state). Sessions are bound server-side to the MCP transport (WeakKeyDictionary), undeclared tool arguments are rejected, and bothlist_tools(ListToolsRequest) and runtime execution enforce fail-closed governance filtering. - Domain Neutrality & Free-Form Wings: Project wings are strictly user- or agent-defined free-form strings — no hardcoded business taxonomies exist in product code, enforced by AST guard tests (
tests/test_domain_neutrality_guard.py). - Optional Lightweight Mode & Optional LLM Summaries: Set
GRAFO_LIGHTWEIGHT_MODE=trueto operate without heavy vector models using SQLite FTS5 BM25, andGRAFO_LLM_MODEL=noneto run fully offline without external LLM calls.
Architecture Overview
┌───────────────────────────┐ ┌───────────────────────────┐
│ Cursor / Windsurf │ │ Claude Desktop │
└─────────────┬─────────────┘ └─────────────┬─────────────┘
│ │
│ MCP (stdio default / SSE) │
└─────────────────┬────────────────┘
│
▼
┌─────────────────────────────┐ ┌─────────────────────┐
│ Concierge Graph MCP Server │ │ concierge CLI │
│ concierge-mcp (Port 8000) │ │ (10 subcommands) │
└──────────────┬──────────────┘ └──────────┬──────────┘
│ │
└───────────────┬────────────────┘
▼
┌──────────────────────────────┐
│ GrafoConcierge Facade │
│ + MCPToolGovernor (31) │
└──────────────┬───────────────┘
▼
┌──────────────────────────────┐
│ SQLite WAL/FTS5 + ChromaDB │
│ (or optional Qdrant) │
└──────────────────────────────┘
Quick Start
Quick Install (v4.1.0)
Release & PyPI Status: Version
4.1.0supersedes the legacyv3.8.2release on PyPI and the pre-auditV4.0.0GitHub tag (kept intact in repository history).
-
Install via pip (or from source in editable mode):
# Package installation: pip install concierge-graph # Or editable source checkout: git clone https://github.com/LuisinTheLegend/ConciergeGraph.git cd ConciergeGraph python -m venv .venv # Linux / macOS: source .venv/bin/activate # Windows PowerShell: .venv\Scripts\Activate.ps1 pip install --upgrade pip pip install -e .
For development and running tests (or install via
pip install -r requirements-dev.txt;requirements.txtcontains production runtime packages only):pip install -e ".[dev]"
-
Configure environment variables (
.env):cp .env.example .env
Minimal local-first configuration (LLM disabled by default if not needed):
GRAFO_LLM_MODEL=none GRAFO_TRANSPORT=stdio GRAFO_DB_PATH=./data/concierge.db GRAFO_CHROMA_PATH=./data/chroma
To run over HTTP/SSE instead of
stdio:GRAFO_TRANSPORT=sse GRAFO_HOST=127.0.0.1 GRAFO_PORT=8000 GRAFO_API_KEY=your_optional_bearer_token
-
Run the MCP Server or CLI:
# Launch MCP server (uses GRAFO_TRANSPORT: stdio default, or sse on port 8000) concierge-mcp --help concierge-mcp --version concierge-mcp --transport sse # Or start via Docker Compose (non-root UID 10001, SSE + /health check) docker compose up -d --build # Use the terminal CLI (10 subcommands) concierge --help concierge register --name my-project --wing backend/core concierge mine --path /path/to/my-project --name my-project concierge search --query "authentication flow" --project <project-uuid>
When running over HTTP/SSE,
GET /healthandHEAD /healthreturn200 {"status": "ok"}without requiringGRAFO_API_KEY, while/sse,/messages/, and all other paths remain protected by pure ASGIAuthorization: Bearervalidation.
MCP Tools (31 Live Tools)
| Category | Count | Tools |
|---|---|---|
READ_ONLY |
17 | concierge_search, concierge_resume, concierge_load, concierge_status, concierge_list_projects, concierge_list_facts, concierge_get_memory, get_full_topology, get_trajectories, find_similar, search_symbols, get_implementations, get_callers, concierge_get_call_chain, count_embeddings, agent_get_checkpoint, agent_list_checkpoints |
LOCAL_MUTATION |
12 | concierge_register, concierge_mine, concierge_commit, concierge_set_state, concierge_wakeup, concierge_store_fact, concierge_set_memory, concierge_feedback, update_project, add_reference_wing, remove_reference_wing, agent_save_checkpoint |
DANGEROUS |
2 | delete_project, reset_collection |
See docs-grafo-concierge/README.md for architecture details and the full list of CLI subcommands.
Testing & Verification
The active V4 core is covered by 369 passing automated tests (verified in normal and --reverse order, plus CI across Linux, Windows, and real container docker-smoke):
python -m pytest tests/ -q
Contributing & Lineage
- Read
CONTRIBUTING.mdfor architectural pillars, testing rules, and MCP governance contracts. - Read
ATTRIBUTION_AND_LINEAGE.mdfor technical credits and the active vs. quarantined status matrix. - Read
CHANGELOG.mdfor recent changes and breaking-change migration notes.
License
Distributed under the MIT License. See LICENSE for details.
Metadata
Release files for concierge-graph 4.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| concierge_graph-4.1.0.tar.gz | 261.1 kB | Without provenance | Details for concierge_graph-4.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| concierge_graph-4.1.0-py3-none-any.whl | Python 3 | none | any | Details for concierge_graph-4.1.0-py3-none-any.whl |
Total release size: 416.1 kB
Release files / concierge_graph-4.1.0.tar.gz
| Download URL | concierge_graph-4.1.0.tar.gz |
|---|---|
| Size | 261.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d953146ffc5da0dbf8c090cc5e325d98b4679745c8f70f807c22bcd3a7e194a
|
|
BLAKE2b-256 checksum How to use checksums |
d0663df1f1a9813b318f12416fcf1cc6369b4df00e3664de36772479faf56fb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / concierge_graph-4.1.0-py3-none-any.whl
| Download URL | concierge_graph-4.1.0-py3-none-any.whl |
|---|---|
| Size | 155.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
373b8a03001e08160bebb8cba6f6789a2e44e4010036c6f45dad478272b62beb
|
|
BLAKE2b-256 checksum How to use checksums |
dc0523fe76e2c8f9cfdd8238751b1a96e912152d602e7a29127560dd3b91e37c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for concierge-graph 4.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.