ctxjev-mcp 0.1.11 → 0.2.0

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 +20 -7
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
9
9
  [![Node](https://img.shields.io/badge/node-%3E%3D20-339933?logo=node.js&logoColor=white)](package.json)
10
10
 
11
- [Setup](#setup) · [Tools](#tools) · [Example response](#example-response) · [Related packages](#related-packages)
11
+ [Setup](#setup) · [Tools](#tools) · [Example Response](#example-response) · [Related Packages](#related-packages)
12
12
 
13
13
  </div>
14
14
 
@@ -17,6 +17,14 @@
17
17
  `ctxjev-mcp` speaks plain stdio MCP: the same binary works with every host below, and only the
18
18
  config shape differs.
19
19
 
20
+ > **Before you expect it to save tokens:** an MCP tool returns data to whoever called it; it can't
21
+ > remove anything from the host's own context. And to score its history, the agent has to send
22
+ > that history as tool arguments, which the host model pays for in its own output tokens. It's
23
+ > useful when something acts on the scores (an agent framework that manages its own context), not
24
+ > as a drop-in token saver for Claude Code, Codex, or Copilot. For Claude Code, the
25
+ > [ctxjev plugin](https://github.com/x96x64/ctxjev#the-claude-code-plugin) is the integration that
26
+ > actually helps.
27
+
20
28
  ## Setup
21
29
 
22
30
  Get a key at [console.typesafe.ai/settings/keys](https://console.typesafe.ai/settings/keys) (no
@@ -59,7 +67,11 @@ codex mcp add ctxjev --env TYPESAFE_API_KEY=... -- npx ctxjev-mcp
59
67
 
60
68
  `entries` is `{ id, role: 'user'|'assistant'|'tool', toolName?, content, timestamp }[]`.
61
69
 
62
- ## Example response
70
+ Entry content and the goal are sent to TypeSafe AI's Jev API. Common secret formats (API keys,
71
+ tokens, private-key blocks, `NAME=value` credentials) are masked to `[REDACTED]` first, on a
72
+ best-effort basis.
73
+
74
+ ## Example Response
63
75
 
64
76
  Calling `prune_history` with two entries, one obviously relevant to the goal and one not, returns:
65
77
 
@@ -71,7 +83,7 @@ Calling `prune_history` with two entries, one obviously relevant to the goal and
71
83
  ],
72
84
  "savings": {
73
85
  "totalEntries": 2, "keptEntries": 1, "droppedEntries": 1, "summarizedEntries": 0,
74
- "totalTokens": 13, "savedTokens": 5
86
+ "totalTokens": 13, "droppedTokens": 5, "summarizableTokens": 0
75
87
  },
76
88
  "usage": { "inputTokens": 406, "outputTokens": 36 }
77
89
  }
@@ -79,7 +91,7 @@ Calling `prune_history` with two entries, one obviously relevant to the goal and
79
91
 
80
92
  This is a real response body, captured against the live API.
81
93
 
82
- ## Related packages
94
+ ## Related Packages
83
95
 
84
96
  | Package | What it is |
85
97
  | --- | --- |
@@ -91,6 +103,7 @@ Full docs, design notes, and per-host setup live in the main repo:
91
103
 
92
104
  ## License
93
105
 
94
- [MIT](LICENSE): free to use, modify, and distribute, including in a commercial product, as long
95
- as the license text and copyright notice ship with it. See the [main repo](https://github.com/x96x64/ctxjev#license)
96
- for how this matches every dependency `ctxjev` currently uses.
106
+ This package is released under the [MIT](LICENSE) license: free to use, modify, and distribute,
107
+ including in a commercial product, as long as the license text and copyright notice ship with it.
108
+ See the [main repo](https://github.com/x96x64/ctxjev#license) for how this matches every
109
+ dependency `ctxjev` currently uses.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctxjev-mcp",
3
- "version": "0.1.11",
3
+ "version": "0.2.0",
4
4
  "description": "MCP server exposing ctxjev's Jev-based context scoring/pruning as tools for any MCP-capable agent host.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@modelcontextprotocol/sdk": "^1.30.0",
42
42
  "zod": "^4.6.5",
43
- "ctxjev-core": "0.1.11"
43
+ "ctxjev-core": "0.2.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "^22",