purecontext-mcp 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/USER-GUIDE.md CHANGED
@@ -2,47 +2,47 @@
2
2
 
3
3
  This guide explains what PureContext does, why it changes the way you work with code, and how to use its features effectively. Each section focuses on a capability area with real examples and concrete workflows.
4
4
 
5
- For parameter-level documentation — every tool input, output, and flag — see the [Reference Manual](../docs/README.md).
5
+ For parameter-level documentation — every tool input, output, and flag — see the [Reference Manual](docs/README.md).
6
6
 
7
7
  ---
8
8
 
9
9
  ## Start here
10
10
 
11
- - [Why PureContext](why-purecontext.md) — The full case: what actually improves when AI has precise context instead of bulk context, who benefits, and what PureContext does not do
11
+ - [Why PureContext](WHY-PURECONTEXT.md) — The full case: what actually improves when AI has precise context instead of bulk context, who benefits, and what PureContext does not do
12
12
 
13
13
  ---
14
14
 
15
15
  ## Core capabilities
16
16
 
17
- - [Navigating a New Codebase](navigating-new-code.md) — How to orient yourself on day one, find entry points, trace a feature, and build a mental model without reading files at random
17
+ - [Navigating a New Codebase](NAVIGATING-NEW-CODE.md) — How to orient yourself on day one, find entry points, trace a feature, and build a mental model without reading files at random
18
18
 
19
- - [Finding Code](finding-code.md) — Three search modes with examples: by name when you know it, by meaning when you don't, and by content when you need grep. Includes tips for when each fails.
19
+ - [Finding Code](FINDING-CODE.md) — Three search modes with examples: by name when you know it, by meaning when you don't, and by content when you need grep. Includes tips for when each fails.
20
20
 
21
- - [Making Changes Safely](safe-changes.md) — Blast radius analysis before touching anything, context bundles for understanding dependencies, the full pre-change workflow, and architectural violation detection
21
+ - [Making Changes Safely](SAFE-CHANGES.md) — Blast radius analysis before touching anything, context bundles for understanding dependencies, the full pre-change workflow, and architectural violation detection
22
22
 
23
- - [Understanding Code Relationships](understanding-relationships.md) — Call hierarchies, class hierarchies, interface implementations, circular dependency detection, and coupling maps
23
+ - [Understanding Code Relationships](UNDERSTANDING-RELATIONSHIPS.md) — Call hierarchies, class hierarchies, interface implementations, circular dependency detection, and coupling maps
24
24
 
25
- - [Refactoring Safely](refactoring-safely.md) — Pre-flight checks before renaming, deleting, or moving symbols. Sequenced, risk-annotated refactoring plans for structural changes.
25
+ - [Refactoring Safely](REFACTORING-SAFELY.md) — Pre-flight checks before renaming, deleting, or moving symbols. Sequenced, risk-annotated refactoring plans for structural changes.
26
26
 
27
- - [Understanding Code History](code-history.md) — Symbol-level git history (not file-level), churn analysis for identifying risk, ownership mapping, and PR analysis before you read a diff
27
+ - [Understanding Code History](CODE-HISTORY.md) — Symbol-level git history (not file-level), churn analysis for identifying risk, ownership mapping, and PR analysis before you read a diff
28
28
 
29
29
  ---
30
30
 
31
31
  ## Features worth knowing
32
32
 
33
- - [The Web UI](web-ui.md) — When to leave the chat and use the browser: visual dependency graphs, the architecture heatmap, symbol timelines, and what each is actually useful for
33
+ - [The Web UI](WEB-UI.md) — When to leave the chat and use the browser: visual dependency graphs, the architecture heatmap, symbol timelines, and what each is actually useful for
34
34
 
35
- - [AI Summaries](ai-summaries.md) — How symbol descriptions are generated, why they matter for search quality and AI accuracy, what they cost, and when to enable them
35
+ - [AI Summaries](AI-SUMMARIES.md) — How symbol descriptions are generated, why they matter for search quality and AI accuracy, what they cost, and when to enable them
36
36
 
37
- - [Code Health & Architecture Analysis](code-health.md) — Quality metrics, anti-pattern detection, auto-generated architecture docs, CI enforcement, and finding refactoring opportunities before they become crises
37
+ - [Code Health & Architecture Analysis](CODE-HEALTH.md) — Quality metrics, anti-pattern detection, auto-generated architecture docs, CI enforcement, and finding refactoring opportunities before they become crises
38
38
 
39
- - [Health Dashboards & Debt Reporting](health-dashboards.md) — Five-axis health radar, before/after PR comparisons, and comprehensive debt reports with prioritized action items
39
+ - [Health Dashboards & Debt Reporting](HEALTH-DASHBOARDS.md) — Five-axis health radar, before/after PR comparisons, and comprehensive debt reports with prioritized action items
40
40
 
41
- - [Visualizing Code Structure](visualizing-code.md) — Mermaid and DOT diagrams of import graphs, call graphs, class hierarchies, and dependency matrices. Architecture snapshots for tracking structural change over time.
41
+ - [Visualizing Code Structure](VISUALIZING-CODE.md) — Mermaid and DOT diagrams of import graphs, call graphs, class hierarchies, and dependency matrices. Architecture snapshots for tracking structural change over time.
42
42
 
43
- - [AST-Level Search](ast-search.md) — Find any tree-sitter node type, search by type signature pattern, find symbols by decorator, and filter by complexity thresholds
43
+ - [AST-Level Search](AST-SEARCH.md) — Find any tree-sitter node type, search by type signature pattern, find symbols by decorator, and filter by complexity thresholds
44
44
 
45
- - [Code Intelligence](code-intelligence.md) — Entry points, public API surface, TODO inventory, complexity hotspots, type graphs, untested symbols, and coverage mapping
45
+ - [Code Intelligence](CODE-INTELLIGENCE.md) — Entry points, public API surface, TODO inventory, complexity hotspots, type graphs, untested symbols, and coverage mapping
46
46
 
47
47
  ---
48
48
 
@@ -56,7 +56,7 @@ For parameter-level documentation — every tool input, output, and flag — see
56
56
 
57
57
  ## For teams and enterprise
58
58
 
59
- - [Using PureContext with a Team](team-setup.md) — Why a shared server is fundamentally different from local use, how to set it up, how to keep the index current automatically, and what enterprise deployments need to consider
59
+ - [Using PureContext with a Team](TEAM-SETUP.md) — Why a shared server is fundamentally different from local use, how to set it up, how to keep the index current automatically, and what enterprise deployments need to consider
60
60
 
61
61
  ---
62
62
 
@@ -64,16 +64,16 @@ For parameter-level documentation — every tool input, output, and flag — see
64
64
 
65
65
  Complete end-to-end examples showing how PureContext fits into real development situations:
66
66
 
67
- - [Onboarding to a New Codebase](workflow-onboarding.md) — First day on a 6,000-file microservices platform: from zero understanding to bug found and fix scoped in 15 minutes
67
+ - [Onboarding to a New Codebase](WORKFLOW-ONBOARDING.md) — First day on a 6,000-file microservices platform: from zero understanding to bug found and fix scoped in 15 minutes
68
68
 
69
- - [Refactoring Legacy Code](workflow-refactoring.md) — Replacing a custom JWT implementation in a 6-year-old Django monolith: discovery, hidden dependencies, migration planning, and verification
69
+ - [Refactoring Legacy Code](WORKFLOW-REFACTORING.md) — Replacing a custom JWT implementation in a 6-year-old Django monolith: discovery, hidden dependencies, migration planning, and verification
70
70
 
71
- - [Reviewing a Pull Request](workflow-pr-review.md) — A 40-file authentication migration PR: structured review in 45 minutes that found two real issues before reading most of the diff
71
+ - [Reviewing a Pull Request](WORKFLOW-PR-REVIEW.md) — A 40-file authentication migration PR: structured review in 45 minutes that found two real issues before reading most of the diff
72
72
 
73
- - [Running a Tech Debt Sprint](workflow-tech-debt.md) — Full lifecycle of a two-week debt reduction sprint: assessment, planning, safe execution, and proving the improvement with snapshots
73
+ - [Running a Tech Debt Sprint](WORKFLOW-TECH-DEBT.md) — Full lifecycle of a two-week debt reduction sprint: assessment, planning, safe execution, and proving the improvement with snapshots
74
74
 
75
75
  ---
76
76
 
77
77
  ## Reference Manual
78
78
 
79
- The [Reference Manual](../docs/README.md) covers every tool, configuration option, language, framework adapter, and deployment option in detail. Use it when you need the exact parameter name, the full list of symbol kinds, or the Docker Compose configuration.
79
+ The [Reference Manual](docs/README.md) covers every tool, configuration option, language, framework adapter, and deployment option in detail. Use it when you need the exact parameter name, the full list of symbol kinds, or the Docker Compose configuration.
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.5.0";
1
+ export declare const VERSION = "1.5.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.5.0';
1
+ export const VERSION = '1.5.2';
2
2
  //# sourceMappingURL=version.js.map
@@ -1,5 +1,10 @@
1
- # Installation
1
+ # Installation — Reference
2
2
 
3
+ This is the reference page for installation: prerequisites, prebuilt-binary support matrix, verification commands, and upgrade paths.
4
+
5
+ For the **user-friendly walkthrough** — per-IDE setup, agent-instructions installer, team server connection — see [`FULL-INSTALLATION-GUIDE.md`](../FULL-INSTALLATION-GUIDE.md) at the project root.
6
+
7
+ ---
3
8
 
4
9
  ## Prerequisites
5
10
 
@@ -7,357 +12,78 @@
7
12
  |-------------|---------|-------|
8
13
  | Node.js | >= 18.0.0 | 18, 20, and 22 are tested |
9
14
  | npm | >= 9.0.0 | Ships with Node 18+ |
10
- | Git | any | Required only for `index_repo` (remote repo cloning) |
15
+ | Git | any | Required only for `index_repo` (cloning remote repositories) |
11
16
 
12
- ## Install via npm (recommended)
13
-
14
- ```bash
15
- npm install -g purecontext-mcp
16
- ```
17
-
18
- After this, `purecontext-mcp` is available as a global command.
17
+ ---
19
18
 
20
- If you prefer not to install globally, use `npx` to run without installing:
19
+ ## Install commands
21
20
 
22
21
  ```bash
23
- npx purecontext-mcp
22
+ # Recommended: run via npx (no global install needed)
23
+ npx purecontext-mcp@latest
24
+
25
+ # Or install globally
26
+ npm install -g purecontext-mcp@latest
24
27
  ```
25
28
 
26
- `npx` downloads the package on first use and caches it. This is the recommended approach for most AI client integrations because it picks up new versions automatically without a manual upgrade step.
29
+ The `@latest` tag is recommended in AI-client configurations so new versions are picked up without manual upgrade steps.
30
+
31
+ ---
27
32
 
28
- ## Prebuilt binaries
33
+ ## Prebuilt binary support matrix
29
34
 
30
- PureContext uses `better-sqlite3` for SQLite access. Pre-built native binaries are bundled for:
35
+ `better-sqlite3` is the only native dependency. Prebuilt binaries are bundled for:
31
36
 
32
37
  | Platform | Node 18 | Node 20 | Node 22 |
33
- |----------|---------|---------|---------|
38
+ |----------|:-------:|:-------:|:-------:|
34
39
  | Windows x64 | ✓ | ✓ | ✓ |
35
40
  | macOS x64 | ✓ | ✓ | ✓ |
36
41
  | macOS arm64 | ✓ | ✓ | ✓ |
37
42
  | Linux x64 | ✓ | ✓ | ✓ |
38
43
  | Linux arm64 | ✓ | ✓ | ✓ |
39
44
 
40
- When a prebuilt binary matches your platform, `npm install` completes without any native compilation. No Python, no `node-gyp`, no build tools needed.
41
-
42
- If your platform/Node combination is not in the table above, `npm install` will attempt a native compile. You will need:
43
- - Python 3.x
44
- - A C++ compiler (MSVC on Windows, clang/gcc on macOS/Linux)
45
- - `node-gyp`: `npm install -g node-gyp`
46
-
47
- ---
48
-
49
- ## Connecting to your AI client
50
-
51
- PureContext works with any MCP-compatible AI client. Choose the setup that matches your environment.
52
-
53
- ### Claude Code (CLI)
54
-
55
- ```bash
56
- claude mcp add purecontext-mcp -- npx purecontext-mcp
57
- ```
58
-
59
- Verify:
60
-
61
- ```bash
62
- claude mcp list
63
- # purecontext-mcp connected npx purecontext-mcp
64
- ```
65
-
66
- ### Claude Desktop
67
-
68
- Edit `~/.claude/claude_desktop_config.json` (create it if it doesn't exist):
69
-
70
- ```json
71
- {
72
- "mcpServers": {
73
- "purecontext": {
74
- "command": "npx",
75
- "args": ["purecontext-mcp"]
76
- }
77
- }
78
- }
79
- ```
80
-
81
- If you installed globally (`npm install -g purecontext-mcp`), you can use the binary directly:
82
-
83
- ```json
84
- {
85
- "mcpServers": {
86
- "purecontext": {
87
- "command": "purecontext-mcp"
88
- }
89
- }
90
- }
91
- ```
92
-
93
- Restart Claude Desktop after saving the file.
94
-
95
- ### Cursor
96
-
97
- Create or edit `.cursor/mcp.json` in your project directory for a project-scoped connection, or `~/.cursor/mcp.json` for a global one:
98
-
99
- ```json
100
- {
101
- "mcpServers": {
102
- "purecontext": {
103
- "command": "npx",
104
- "args": ["purecontext-mcp"]
105
- }
106
- }
107
- }
108
- ```
109
-
110
- Reload the Cursor window after saving (`Ctrl+Shift+P` → "Developer: Reload Window").
111
-
112
- ### Windsurf
113
-
114
- Open Windsurf Settings and navigate to the MCP section, or edit the MCP configuration file directly:
115
-
116
- ```json
117
- {
118
- "mcpServers": {
119
- "purecontext": {
120
- "command": "npx",
121
- "args": ["purecontext-mcp"]
122
- }
123
- }
124
- }
125
- ```
126
-
127
- ### VS Code (with MCP support)
128
-
129
- Create `.vscode/mcp.json` in your project:
130
-
131
- ```json
132
- {
133
- "servers": {
134
- "purecontext": {
135
- "type": "stdio",
136
- "command": "npx",
137
- "args": ["purecontext-mcp"]
138
- }
139
- }
140
- }
141
- ```
142
-
143
- ### Connecting to a shared team server (HTTP)
144
-
145
- If your team runs a shared PureContext server, connect with an HTTP transport instead of launching a local process. The config format is the same across all clients — only the transport section changes:
146
-
147
- **Claude Code CLI:**
148
-
149
- ```bash
150
- claude mcp add purecontext-shared \
151
- --transport http \
152
- --url https://purecontext.yourcompany.com/mcp/sse \
153
- --header "Authorization: Bearer pctx_yourpersonalkey"
154
- ```
155
-
156
- **Claude Desktop / Cursor / Windsurf (config file):**
157
-
158
- ```json
159
- {
160
- "mcpServers": {
161
- "purecontext": {
162
- "transport": "http",
163
- "url": "https://purecontext.yourcompany.com/mcp/sse",
164
- "headers": {
165
- "Authorization": "Bearer pctx_yourpersonalkey"
166
- }
167
- }
168
- }
169
- }
170
- ```
171
-
172
- Your API key is issued by your team's PureContext administrator. See [Team Setup](15-team-setup.md) for how to deploy and manage a shared server.
45
+ When your platform matches a row above, `npm install` completes with zero native compilation. For unsupported combinations, `npm install` falls back to a source build, which requires Python 3.x, a C++ toolchain, and `node-gyp`.
173
46
 
174
47
  ---
175
48
 
176
- ## Teaching your AI agent to use PureContext well
177
-
178
- Installing PureContext gives your AI agent access to the tools. Adding the agent instructions tells it *how* to use them efficiently — which tool to pick for each situation, in what order to call them, and what patterns to avoid.
179
-
180
- Without them, an AI agent given access to PureContext may default to reading entire files (wasting tokens) rather than using `search_symbols`, or may not know to call `list_repos` first to get the `repoId` required by every tool. The instructions encode the correct workflow: check if indexed → search by name or meaning → retrieve source only for what you'll use.
181
-
182
- ### Recommended: `purecontext-mcp install`
183
-
184
- PureContext ships with a multi-IDE installer that writes the workflow rules into the conventions file each tool expects. Run it once inside your project root:
185
-
186
- ```bash
187
- npx purecontext-mcp install all
188
- ```
189
-
190
- This auto-detects which AI tools are configured in the project (by looking for marker files such as `.cursor/`, `.windsurfrules`, `CLAUDE.md`, `.continue/`, etc.) and installs the rules for each.
191
-
192
- When no `--scope` flag is given, the CLI prompts you to choose where to install:
193
-
194
- ```
195
- Where should PureContext be installed?
196
- 1) Local — this project only
197
- 2) Global — all projects (user-level config)
198
- 3) Both
199
- ```
200
-
201
- Pass `--scope` to skip the prompt:
202
-
203
- ```bash
204
- npx purecontext-mcp install all --scope=local # this project only
205
- npx purecontext-mcp install all --scope=global # user-level, all projects
206
- npx purecontext-mcp install all --scope=both # both places at once
207
- ```
208
-
209
- For a single tool:
210
-
211
- ```bash
212
- npx purecontext-mcp install cursor --scope=global
213
- npx purecontext-mcp install windsurf
214
- npx purecontext-mcp install continue
215
- # ...etc.
216
- ```
217
-
218
- Useful flags:
219
-
220
- ```bash
221
- npx purecontext-mcp install --list # show detection state, write nothing
222
- npx purecontext-mcp install all --dry-run # preview which writers would run
223
- ```
224
-
225
- ### Supported tools
226
-
227
- | Tool | Local | Global | Notes |
228
- |------|-------|--------|-------|
229
- | `claude` | `CLAUDE.md` in project | `~/.claude/CLAUDE.md` + hooks | Global registers seven hook events — see [Claude Code hooks](#claude-code-hooks) below. |
230
- | `cursor` | `.cursor/rules/purecontext.mdc` | `~/.cursor/rules/purecontext.mdc` | MDC frontmatter with `alwaysApply: true`. |
231
- | `windsurf` | `.windsurfrules` | `~/.windsurfrules` | Marked block appended or replaced in place. |
232
- | `continue` | `.continue/config.json` | `~/.continue/config.json` | JSON-aware merge; other fields are preserved. |
233
- | `cline` | `.clinerules` | local only | No known global config path. |
234
- | `roo-code` | `.roo/rules-code.md` | local only | No known global config path. |
235
- | `vscode` | `.github/copilot-instructions.md` | local only | Picked up by GitHub Copilot in VS Code. |
236
- | `claude-desktop` | always global | always global | Merges MCP server entry; leaves other servers untouched. |
237
-
238
- ### Claude Code hooks
239
-
240
- When you run `npx purecontext-mcp install claude` (or the standalone `npx purecontext-mcp hooks --install`), PureContext registers seven hook events in `~/.claude/settings.json`. Each hook is a CLI-style command — no scripts are copied to `~/.claude/hooks/`; the hook logic lives inside the installed package and updates automatically when you upgrade.
241
-
242
- | Hook event | Command | What it does |
243
- |------------|---------|--------------|
244
- | `PostToolUse` | `hook-posttooluse` | Re-indexes files modified by Edit/Write/MultiEdit |
245
- | `PreToolUse` | `hook-pretooluse` | Soft edit guard — suggests read tools before editing unread files |
246
- | `PreCompact` | `hook-precompact` | Injects the list of indexed repos before context is compacted |
247
- | `WorktreeCreate` | `hook-worktree-create` | Auto-indexes a newly created agent worktree |
248
- | `WorktreeRemove` | `hook-worktree-remove` | Fires when an agent worktree is removed (reserved for cleanup) |
249
- | `TaskCompleted` | `hook-taskcompleted` | Post-task diagnostics: complexity hotspots, TODO count, suggested tools |
250
- | `SubagentStart` | `hook-subagentstart` | Injects a condensed repo orientation for newly spawned subagents |
251
-
252
- Running `hooks --install` more than once is safe. It replaces existing PureContext entries (including old `.mjs`-path style entries from versions prior to 1.8.0) while leaving other tools' hooks untouched.
253
-
254
- To see the current registration status without making changes:
255
-
256
- ```bash
257
- npx purecontext-mcp hooks --list
258
- ```
259
-
260
- ### Idempotency
261
-
262
- Every writer is safe to re-run. The Markdown writers wrap their content in HTML comment markers:
263
-
264
- ```html
265
- <!-- purecontext-mcp-start -->
266
- ... PureContext workflow rules ...
267
- <!-- purecontext-mcp-end -->
268
- ```
269
-
270
- On re-run, the marked block is replaced in place. Anything outside the markers (your own rules, other tools' rules) is preserved. The JSON writers (`continue`, `claude-desktop`) parse and merge structurally rather than re-emitting the whole file.
271
-
272
- ### Manual install (if you'd rather paste)
273
-
274
- The two source-of-truth files are at the repository root:
275
-
276
- - **`AGENT_INSTRUCTIONS_SHORT.md`** — Compact (~2 KB). Mandatory first step, tool selection table, core rules, common usage patterns. Use for agents with limited system prompt space.
277
- - **`AGENT_INSTRUCTIONS.md`** — Full (~15 KB). Adds parameter notes, every usage pattern, known limitations, decision trees, anti-patterns. Use for complex multi-step workflows.
278
-
279
- To use these manually:
280
-
281
- ```bash
282
- # Claude Code
283
- cat AGENT_INSTRUCTIONS_SHORT.md >> CLAUDE.md
284
-
285
- # Cursor — paste into .cursorrules or via Cursor Settings → Rules
286
- # Windsurf — paste into .windsurfrules or workspace memory
287
- # Anything else — paste into whatever rule/memory config it supports
288
- ```
289
-
290
- ---
291
-
292
- ## Verifying the installation
49
+ ## Verification
293
50
 
294
51
  ```bash
295
52
  purecontext-mcp --version
296
- # 1.x.x
297
-
298
53
  purecontext-mcp config --check
299
- # ✓ Node.js 20.11.0
300
- # ✓ SQLite (better-sqlite3 9.x)
301
- # ✓ Grammar: tree-sitter-typescript.wasm
302
- # ✓ Grammar: tree-sitter-javascript.wasm
303
- # ... (all 34 grammars)
304
- # ✓ Config: ~/.purecontext/config.json
305
- ```
306
-
307
- `config --check` validates the installation, verifies all grammar files are present, and reports the effective configuration.
308
-
309
- ## Upgrading
310
-
311
- Run the command that matches how you installed PureContext:
312
-
313
- **Installed with Volta:**
314
- ```bash
315
- volta install purecontext-mcp
316
- ```
317
-
318
- **Installed with npm globally:**
319
- ```bash
320
- npm install -g purecontext-mcp@latest
321
54
  ```
322
55
 
323
- **Running via npx (no global install):** npx may serve a cached older version. Force the latest:
324
- ```bash
325
- npx purecontext-mcp@latest
326
- ```
327
- To always get the latest version automatically, use `purecontext-mcp@latest` in your MCP client config instead of the bare package name.
56
+ `config --check` validates the install: confirms Node and SQLite versions, verifies all 34 grammar WASM files load, and reports the effective configuration.
328
57
 
329
- **Installed from source:**
330
- ```bash
331
- cd /path/to/purecontext-mcp
332
- git pull
333
- npm install
334
- npm run build
335
- ```
58
+ ---
336
59
 
337
- > **Note:** `npm update -g purecontext-mcp` does not work reliably — use `npm install -g purecontext-mcp@latest` instead.
60
+ ## Upgrade matrix
338
61
 
339
- Index files (SQLite databases) are forward-compatible within a major version. After upgrading from `1.x` to `1.y`, existing indexes continue to work. A major version upgrade (e.g., `1.x` → `2.0`) may require a re-index — the CLI will warn if it detects an incompatible index version.
62
+ | How you installed | Command to upgrade |
63
+ |-------------------|--------------------|
64
+ | Volta | `volta install purecontext-mcp` |
65
+ | npm global | `npm install -g purecontext-mcp@latest` |
66
+ | npx (cached) | `npx purecontext-mcp@latest` (forces a fresh fetch) |
67
+ | Source / clone | `git pull && npm install && npm run build` |
340
68
 
341
- ## Install from source
69
+ > `npm update -g` is not reliable for this package — use `npm install -g ...@latest`.
342
70
 
343
- Use this when contributing, testing unreleased features, or running a local build.
71
+ **Index compatibility:** SQLite indexes are forward-compatible within a major version (`1.x` → `1.y` keeps existing indexes). Major upgrades (`1.x` → `2.0`) may require a re-index; the CLI warns when it detects an incompatible index.
344
72
 
345
- ```bash
346
- git clone <repository-url> purecontext-mcp
347
- cd purecontext-mcp
348
- npm install
349
- npm run build
350
- npm link # makes 'purecontext-mcp' available globally from this build
351
- ```
73
+ ---
352
74
 
353
- ## Uninstalling
75
+ ## Uninstall
354
76
 
355
77
  ```bash
356
78
  npm uninstall -g purecontext-mcp
79
+ rm -rf ~/.purecontext # removes indexes, config, savings stats
357
80
  ```
358
81
 
359
- This removes the binaries. Index files and configuration are not removed. To clean everything up:
82
+ ---
360
83
 
361
- ```bash
362
- rm -rf ~/.purecontext # Removes indexes, config, savings stats
363
- ```
84
+ ## Related reference
85
+
86
+ - [Configuration](04-configuration.md) — full `config.json` schema and environment variable overrides
87
+ - [CLI Reference](05-cli-reference.md) — every command and flag
88
+ - [Transport Modes](14-transport-modes.md) — stdio vs HTTP/SSE deployment
89
+ - [Team Setup & Multi-Tenant](15-team-setup.md) — reference for shared-server config