mcp-context-optimizer 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/README.md +34 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -487,6 +487,37 @@ Add to `~/.continue/config.json`:
487
487
  }
488
488
  ```
489
489
 
490
+ ## MCP registries
491
+
492
+ The package is listed in MCP registries for one-click installation:
493
+
494
+ | Registry | How to add |
495
+ |---|---|
496
+ | **Smithery** | See [`smithery.yaml`](smithery.yaml). The server is configured with `--persist` so records survive restarts. |
497
+ | **Glama** | Add server via Glama dashboard: command `npx mcp-ctx-optimizer`, transport `stdio`. |
498
+ | **MCP.so** | Add server via MCP.so dashboard: command `npx mcp-ctx-optimizer`, transport `stdio`. |
499
+
500
+ **Smithery example** — add to your Smithery client config:
501
+
502
+ ```json
503
+ {
504
+ "mcpServers": {
505
+ "context-optimizer": {
506
+ "command": "npx",
507
+ "args": [
508
+ "mcp-ctx-optimizer",
509
+ "--persist",
510
+ "~/.cache/mcp-context-optimizer/context.json"
511
+ ]
512
+ }
513
+ }
514
+ }
515
+ ```
516
+
517
+ **Claude Code hooks** — see [`claude-code-hooks.json`](claude-code-hooks.json). Register it in Claude Code settings to automatically call `build_context` on every user prompt (reduces the explicit-invocation friction).
518
+
519
+ **Claude Desktop** — see [`claude-desktop-config.json`](claude-desktop-config.json). Add to your Claude Desktop `claude_desktop_config.json`.
520
+
490
521
  **Important:** MCP tool availability does not automatically intercept model
491
522
  requests. The client/agent must explicitly call these tools (e.g. call
492
523
  `build_context` before answering). Automatic context replacement requires a
@@ -494,5 +525,7 @@ native integration inside the coding agent.
494
525
 
495
526
  The MCP server stores data **in memory per process lifetime** — restarting the
496
527
  server starts from an empty store. Re-ingest records or implement your own
497
- `ContextStore` (see `src/store.ts`) for persistence.
528
+ `ContextStore` (see `src/store.ts`) for persistence. Use `--persist` for
529
+ built-in file persistence.
530
+
498
531
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-context-optimizer",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Keep critical context within token limits for AI coding agents. Deterministic, local-first context optimization SDK and MCP server.",
5
5
  "keywords": [
6
6
  "mcp",