@contextstream/mcp-server 0.4.33 → 0.4.34
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/README.md +19 -0
- package/dist/index.js +625 -300
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,6 +67,7 @@ This will:
|
|
|
67
67
|
2. Create and store your API key
|
|
68
68
|
3. Install editor rules for best results
|
|
69
69
|
4. Configure your AI tools automatically
|
|
70
|
+
5. Install Claude Code hooks (optional, recommended)
|
|
70
71
|
|
|
71
72
|
That's it. Start a conversation and your AI now has memory.
|
|
72
73
|
|
|
@@ -194,6 +195,22 @@ claude mcp add --transport stdio contextstream --scope user \
|
|
|
194
195
|
-- npx -y @contextstream/mcp-server
|
|
195
196
|
```
|
|
196
197
|
|
|
198
|
+
#### Claude Code Hooks (Recommended)
|
|
199
|
+
|
|
200
|
+
ContextStream can install hooks that enforce best practices:
|
|
201
|
+
|
|
202
|
+
- **PreToolUse hook** — Redirects Glob/Grep/Search to ContextStream semantic search
|
|
203
|
+
- **UserPromptSubmit hook** — Injects context reminders every message
|
|
204
|
+
|
|
205
|
+
Install hooks automatically when generating rules:
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
npx -y @contextstream/mcp-server setup
|
|
209
|
+
# Or: mcp__contextstream__generate_rules(editors=["claude"])
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Hooks are installed to `~/.claude/hooks/` and configured in `~/.claude/settings.json`. Your custom rules are preserved — only ContextStream blocks are updated.
|
|
213
|
+
|
|
197
214
|
### VS Code
|
|
198
215
|
|
|
199
216
|
Add to `.vscode/mcp.json`:
|
|
@@ -244,6 +261,8 @@ CONTEXTSTREAM_API_KEY = "YOUR_API_KEY"
|
|
|
244
261
|
| `CONTEXTSTREAM_API_URL` | API endpoint (default: `https://api.contextstream.io`) |
|
|
245
262
|
| `CONTEXTSTREAM_WORKSPACE_ID` | Default workspace |
|
|
246
263
|
| `CONTEXTSTREAM_PROJECT_ID` | Default project |
|
|
264
|
+
| `CONTEXTSTREAM_SEARCH_REMINDER` | Set to `false` to disable search-first reminders |
|
|
265
|
+
| `CONTEXTSTREAM_HOOK_ENABLED` | Set to `false` to disable hooks without uninstalling |
|
|
247
266
|
|
|
248
267
|
---
|
|
249
268
|
|