Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions QUICK_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,13 @@ curl http://localhost:9000/health
MEMGRAPH_HOST=localhost # default: localhost
MEMGRAPH_PORT=7687 # default: 7687
MCP_PORT=9000 # default: 9000
LXDIG_PROJECT_ID=my-repo # optional: default project namespace
LXDIG_USE_TREE_SITTER=true # enable AST-accurate parsers (requires optional deps)
MCP_TRANSPORT=stdio # stdio (default) or http
LXDIG_WORKSPACE_ROOT=/path # default workspace path
LXDIG_PROJECT_ID=my-repo # display label (DB key is auto-computed hash)
LXDIG_USE_TREE_SITTER=true # enable AST-accurate parsers (requires optional deps)
LXDIG_ENABLE_WATCHER=true # enable incremental file-change watching
LXDIG_SUMMARIZER_URL=http://localhost:8080 # optional: OpenAI-compatible summarizer
LXDIG_AGENT_ID=agent-1 # optional: agent instance id for coordination
```

## Tree-sitter Parsers
Expand Down
34 changes: 18 additions & 16 deletions QUICK_START.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The server supports two transports — pick the one that matches your client:
| **stdio** ✅ recommended | Claude Desktop, VS Code Copilot, Claude Code, any stdio MCP client | `npm run start` |
| **HTTP** | Remote agents, curl, multi-client fleets | `npm run start:http` |

Both transports expose all 38 tools and require the same infrastructure (Memgraph + Qdrant).
Both transports expose all 39 tools and require the same infrastructure (Memgraph + Qdrant).

> **Recommended setup:** run the databases in Docker, run the MCP server directly on your host via stdio. No port management, no session ID headers — your editor spawns and owns the process.

Expand All @@ -33,7 +33,7 @@ npm install && npm run build
Optional — enable AST-accurate tree-sitter parsers (recommended for TypeScript/Python projects):

```bash
export CODE_GRAPH_USE_TREE_SITTER=true
export LXDIG_USE_TREE_SITTER=true
```

---
Expand Down Expand Up @@ -165,15 +165,15 @@ Create `.vscode/mcp.json` in the root of **your project** and commit it. VS Code
"MEMGRAPH_PORT": "7687",
"QDRANT_HOST": "localhost",
"QDRANT_PORT": "6333",
"CODE_GRAPH_WORKSPACE_ROOT": "${workspaceFolder}",
"CODE_GRAPH_PROJECT_ID": "my-repo"
"LXDIG_WORKSPACE_ROOT": "${workspaceFolder}",
"LXDIG_PROJECT_ID": "my-repo"
}
}
}
}
```

Open Copilot Chat → switch to **Agent** mode → the 38 tools are available immediately.
Open Copilot Chat → switch to **Agent** mode → the 39 tools are available immediately.

> With stdio, VS Code owns the server lifecycle. You still need to call `graph_set_workspace` + `graph_rebuild` once per session (or use `init_project_setup` to do both in one step).

Expand Down Expand Up @@ -235,8 +235,8 @@ Edit the config file for your OS:
"MEMGRAPH_PORT": "7687",
"QDRANT_HOST": "localhost",
"QDRANT_PORT": "6333",
"CODE_GRAPH_WORKSPACE_ROOT": "/absolute/path/to/your-project",
"CODE_GRAPH_PROJECT_ID": "my-repo"
"LXDIG_WORKSPACE_ROOT": "/absolute/path/to/your-project",
"LXDIG_PROJECT_ID": "my-repo"
}
}
}
Expand Down Expand Up @@ -276,9 +276,9 @@ VS Code reads `.github/copilot-instructions.md` automatically. Claude Desktop pi
Set these env vars to skip the `graph_set_workspace` call — the server auto-initializes to this project on startup:

```bash
export CODE_GRAPH_WORKSPACE_ROOT=/path/to/your-project
export LXDIG_WORKSPACE_ROOT=/path/to/your-project
export GRAPH_SOURCE_DIR=/path/to/your-project/src # optional sub-dir
export CODE_GRAPH_PROJECT_ID=my-project
export LXDIG_PROJECT_ID=my-project
```

To index a **different project** at any time: call `graph_set_workspace` again with the new path. One server instance handles multiple projects across independent sessions.
Expand All @@ -289,12 +289,14 @@ To index a **different project** at any time: call `graph_set_workspace` again w

| Variable | Default | Description |
| ---------------------------------------- | -------------------- | ------------------------------------------------------------- |
| `CODE_GRAPH_USE_TREE_SITTER` | `false` | AST-accurate parsers for TS/TSX/JS/JSX/Python/Go/Rust/Java |
| `CODE_GRAPH_WORKSPACE_ROOT` | — | Default workspace path on startup |
| `CODE_GRAPH_PROJECT_ID` | `default` | Default project namespace |
| `LXDIG_USE_TREE_SITTER` | `false` | AST-accurate parsers for TS/TSX/JS/JSX/Python/Go/Rust/Java |
| `LXDIG_WORKSPACE_ROOT` | — | Default workspace path on startup |
| `LXDIG_PROJECT_ID` | `default` | Default project namespace (display label; DB key is the hash) |
| `CODE_GRAPH_TARGET_WORKSPACE` | — | Host path mounted as `/workspace` in Docker Compose |
| `CODE_GRAPH_ALLOW_RUNTIME_PATH_FALLBACK` | `false` | Allow host paths when running inside Docker |
| `CODE_GRAPH_SUMMARIZER_URL` | — | OpenAI-compatible endpoint for indexing-time symbol summaries |
| `LXDIG_ALLOW_RUNTIME_PATH_FALLBACK` | `false` | Allow host paths when running inside Docker |
| `LXDIG_SUMMARIZER_URL` | — | OpenAI-compatible endpoint for indexing-time symbol summaries |
| `LXDIG_ENABLE_WATCHER` | `false` | Enable incremental file-change watching (auto-true for HTTP) |
| `LXDIG_AGENT_ID` | `agent-local` | Agent instance identifier for coordination claims |
| `MEMGRAPH_HOST` / `MEMGRAPH_PORT` | `localhost` / `7687` | Memgraph connection |
| `QDRANT_HOST` / `QDRANT_PORT` | `localhost` / `6333` | Qdrant connection |
| `MCP_PORT` | `9000` | HTTP server port |
Expand All @@ -317,7 +319,7 @@ To index a **different project** at any time: call `graph_set_workspace` again w
| stdio server exits immediately | Check `MEMGRAPH_HOST`/`QDRANT_HOST` env vars; errors go to stderr |
| `graph_rebuild` returns immediately | Normal — it's async; poll `graph_health` until `indexedSymbols > 0` |
| Build fails | `npm install && npm run build`; check TypeScript errors |
| Tree-sitter inactive | `export CODE_GRAPH_USE_TREE_SITTER=true` before starting the server |
| Tree-sitter inactive | `export LXDIG_USE_TREE_SITTER=true` before starting the server |
| `docs_index` not found (upgrade) | Run `graph_rebuild mode:full` once to create the missing index |

---
Expand Down Expand Up @@ -345,7 +347,7 @@ Memgraph Lab UI: `http://localhost:3000` (full Docker Compose stack only).

## Next steps

- [QUICK_REFERENCE.md](QUICK_REFERENCE.md) — all 35 tools with parameters
- [QUICK_REFERENCE.md](QUICK_REFERENCE.md) — all 39 tools with parameters
- [README.md](README.md) — capability overview
- [ARCHITECTURE.md](ARCHITECTURE.md) — technical internals
- [docs/GRAPH_EXPERT_AGENT.md](docs/GRAPH_EXPERT_AGENT.md) — agent runbook (tool priority, path rules, response shaping)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
[![Memgraph](https://img.shields.io/badge/Graph-Memgraph-00B894)](https://memgraph.com)
[![Qdrant](https://img.shields.io/badge/Vector-Qdrant-DC244C)](https://qdrant.tech)
[![License: MIT](https://img.shields.io/badge/License-MIT-F59E0B)](LICENSE)
[![Tests](https://img.shields.io/badge/Tests-402%20passing-22C55E)](src)
[![Tests](https://img.shields.io/badge/Tests-557%20passing-22C55E)](src)
[![Transport](https://img.shields.io/badge/Transport-stdio%20%7C%20HTTP-0EA5E9)](QUICK_START.md)
[![Status](https://img.shields.io/badge/Status-Beta-orange)](QUICK_START.md)

Expand Down Expand Up @@ -393,7 +393,7 @@ Every feature below is **production-ready today**:
- ✅ **Episode memory, agent coordination, context packs, and response budget shaping**
- ✅ **Docs & ADR indexing** — markdown parsed into graph nodes; queried by text or symbol association
- ✅ **Interactive graph visualization** via [lxDIG Visual](https://github.com/lexCoder2/lxDIG-visual) — force-directed canvas explorer
- ✅ **402 tests** across parsers, builders, engines, and tool handlers — all green
- ✅ **557 tests** across parsers, builders, engines, and tool handlers — all green

---

Expand All @@ -410,7 +410,7 @@ Every feature below is **production-ready today**:
npm run start # stdio server (recommended)
npm run start:http # HTTP supervisor (multi-session)
npm run build # compile TypeScript
npm test # run all 402 tests
npm test # run all 557 tests
npm run benchmark:check-regression # check latency/token regressions
```

Expand Down
Loading