You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The per-codebase `<pathHash>` suffix is preserved even when the override is set, so the same MCP server can still index multiple repos without collapsing them onto one collection. The override value is sanitized to letters, numbers, and underscores, and truncated to keep the full name within Milvus's 255-char limit. If you unset the variable later, Claude Context switches back to the plain `code_chunks_<pathHash>` naming.
199
199
200
+
#### Background Sync Configuration (Optional)
201
+
202
+
By default, the MCP server does **not** run background sync. This avoids duplicated rescans when multiple local MCP sessions are open at the same time.
203
+
204
+
If you want automatic reindexing, enable it explicitly:
205
+
206
+
```bash
207
+
# Opt in to startup + periodic background sync
208
+
CLAUDE_CONTEXT_BACKGROUND_SYNC=true
209
+
210
+
# Optional: control how often sync runs (default: 300000 = 5 minutes)
211
+
CLAUDE_CONTEXT_SYNC_INTERVAL_MS=60000
212
+
```
213
+
214
+
This is most useful when you run Claude Context as a single long-lived MCP server. For per-session local stdio setups, leaving background sync disabled usually avoids unnecessary CPU churn.
0 commit comments