ctxjev-mcp 0.1.10 → 0.1.12
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 +7 -6
- package/dist/schemas.js +4 -1
- package/dist/schemas.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
[](package.json)
|
|
10
10
|
|
|
11
|
-
[Setup](#setup) · [Tools](#tools) · [Example
|
|
11
|
+
[Setup](#setup) · [Tools](#tools) · [Example Response](#example-response) · [Related Packages](#related-packages)
|
|
12
12
|
|
|
13
13
|
</div>
|
|
14
14
|
|
|
@@ -59,7 +59,7 @@ codex mcp add ctxjev --env TYPESAFE_API_KEY=... -- npx ctxjev-mcp
|
|
|
59
59
|
|
|
60
60
|
`entries` is `{ id, role: 'user'|'assistant'|'tool', toolName?, content, timestamp }[]`.
|
|
61
61
|
|
|
62
|
-
## Example
|
|
62
|
+
## Example Response
|
|
63
63
|
|
|
64
64
|
Calling `prune_history` with two entries, one obviously relevant to the goal and one not, returns:
|
|
65
65
|
|
|
@@ -79,7 +79,7 @@ Calling `prune_history` with two entries, one obviously relevant to the goal and
|
|
|
79
79
|
|
|
80
80
|
This is a real response body, captured against the live API.
|
|
81
81
|
|
|
82
|
-
## Related
|
|
82
|
+
## Related Packages
|
|
83
83
|
|
|
84
84
|
| Package | What it is |
|
|
85
85
|
| --- | --- |
|
|
@@ -91,6 +91,7 @@ Full docs, design notes, and per-host setup live in the main repo:
|
|
|
91
91
|
|
|
92
92
|
## License
|
|
93
93
|
|
|
94
|
-
[MIT](LICENSE): free to use, modify, and distribute,
|
|
95
|
-
as the license text and copyright notice ship with it.
|
|
96
|
-
for how this matches every
|
|
94
|
+
This package is released under the [MIT](LICENSE) license: free to use, modify, and distribute,
|
|
95
|
+
including in a commercial product, as long as the license text and copyright notice ship with it.
|
|
96
|
+
See the [main repo](https://github.com/x96x64/ctxjev#license) for how this matches every
|
|
97
|
+
dependency `ctxjev` currently uses.
|
package/dist/schemas.js
CHANGED
|
@@ -5,6 +5,9 @@ import { DEFAULT_POLICY, isValidPolicyOrdering } from 'ctxjev-core';
|
|
|
5
5
|
// trusting every caller to already know that.
|
|
6
6
|
const MAX_ENTRIES = 500;
|
|
7
7
|
const MAX_CONTENT_LENGTH = 4000;
|
|
8
|
+
// goal gets embedded into state.goal on every chunked Jev request (jevClient.ts) — an oversized
|
|
9
|
+
// goal is billed once per chunk, not once per call, and deserves the same cap as content.
|
|
10
|
+
const MAX_GOAL_LENGTH = 2000;
|
|
8
11
|
export const entrySchema = z.object({
|
|
9
12
|
id: z.string().min(1),
|
|
10
13
|
role: z.enum(['user', 'assistant', 'tool']),
|
|
@@ -16,7 +19,7 @@ export const entrySchema = z.object({
|
|
|
16
19
|
timestamp: z.number().finite(),
|
|
17
20
|
});
|
|
18
21
|
export const scoreRelevanceInput = {
|
|
19
|
-
goal: z.string().min(1).describe('The current task/goal to judge each entry\'s relevance against.'),
|
|
22
|
+
goal: z.string().min(1).max(MAX_GOAL_LENGTH).describe('The current task/goal to judge each entry\'s relevance against.'),
|
|
20
23
|
entries: z.array(entrySchema).max(MAX_ENTRIES).describe('The agent history entries to score.'),
|
|
21
24
|
recencyWeight: z
|
|
22
25
|
.number()
|
package/dist/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAEnE,+FAA+F;AAC/F,0FAA0F;AAC1F,8CAA8C;AAC9C,MAAM,WAAW,GAAG,GAAG,CAAA;AACvB,MAAM,kBAAkB,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names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AAsG,cAAc,CAAC,aAAa,GAAG,CAAC;CACnJ,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,mBAAmB;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qEAAqE,cAAc,CAAC,SAAS,GAAG,CAAC;IACzJ,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,kGAAkG,cAAc,CAAC,cAAc,GAAG,CAAC;CAChJ,CAAA;AAED;;;6DAG6D;AAC7D,MAAM,UAAU,sBAAsB,CAAC,SAAiB,EAAE,cAAsB;IAC9E,IAAI,CAAC,qBAAqB,CAAC,SAAS,EAAE,cAAc,CAAC,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CAAC,cAAc,SAAS,8CAA8C,cAAc,GAAG,CAAC,CAAA;IACzG,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ctxjev-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
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.
|
|
43
|
+
"ctxjev-core": "0.1.12"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^22",
|