prompt-compressor-mcp 1.0.1 → 1.0.2
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 +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
Gives Claude, Cursor, VS Code, Windsurf, or any MCP client tools to shrink prompts, system prompts, docs, logs and JSON before they go into context. Built on [`prompt-compressor`](https://www.npmjs.com/package/prompt-compressor). Fully deterministic and runs locally. Template variables like `{{name}}` are preserved.
|
|
11
11
|
|
|
12
|
-
**No model. No API key. Deterministic. Zero dependencies. Your data never leaves your machine.** At the default level it cut **
|
|
12
|
+
**No model. No API key. Deterministic. Zero dependencies. Your data never leaves your machine.** At the default level it cut **22% of tokens across 8 real-world prompt types while keeping 94/94 critical instructions**. See the [benchmark](https://github.com/kettertom/prompt-compressor#benchmark).
|
|
13
13
|
|
|
14
14
|
## Tools
|
|
15
15
|
|
|
@@ -26,12 +26,12 @@ Resource: `prompt-compressor://levels` lists which algorithms run at each level.
|
|
|
26
26
|
|
|
27
27
|
| Level | What runs | Measured saving ([benchmark](https://github.com/kettertom/prompt-compressor#benchmark)) |
|
|
28
28
|
|---|---|---|
|
|
29
|
-
| `none` | Whitespace, unicode normalization, indentation |
|
|
30
|
-
| `very-low` | + filler lead-ins, phrase shortening, JSON/SQL minify |
|
|
31
|
-
| `low` (default) | + hedging, code comments, deduplication, stack-trace truncation | **
|
|
32
|
-
| `medium` | + Near-duplicate removal (fuzzy / n-gram / Levenshtein), TextRank on plain prose only | 24% avg (5–
|
|
29
|
+
| `none` | Whitespace, unicode normalization, indentation | 2% avg (0–16%) |
|
|
30
|
+
| `very-low` | + filler lead-ins, phrase shortening, JSON/SQL minify | 8% avg (0–32%) |
|
|
31
|
+
| `low` (default) | + hedging, code comments, deduplication, stack-trace truncation | **22% avg (2–56%)**, 100% of critical facts kept |
|
|
32
|
+
| `medium` | + Near-duplicate removal (fuzzy / n-gram / Levenshtein), TextRank on plain prose only | 24% avg (5–56%), 100% of critical facts kept |
|
|
33
33
|
|
|
34
|
-
> **`medium` = `low` + near-duplicate removal + light summarization of plain prose.** Code blocks, lists, tables, `Key: value` lines, questions, and any sentence with a rule, number, ID or variable are never removed. On the dense prompts in the benchmark it saves about the same as `low` (24% vs
|
|
34
|
+
> **`medium` = `low` + near-duplicate removal + light summarization of plain prose.** Code blocks, lists, tables, `Key: value` lines, questions, and any sentence with a rule, number, ID or variable are never removed. On the dense prompts in the benchmark it saves about the same as `low` (24% vs 22%) and kept 94/94 critical facts. It helps most on long, chatty prose. *(Before 1.0.3, `medium` chained three summarizers and kept only 22% of critical facts. Upgrade if you used it.)*
|
|
35
35
|
|
|
36
36
|
## Install
|
|
37
37
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prompt-compressor-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"mcpName": "io.github.kettertom/prompt-compressor",
|
|
5
5
|
"description": "MCP server for rule-based prompt compression — cut LLM token usage without a model, without an API, without sending data anywhere.",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
20
|
-
"prompt-compressor": "^1.0.
|
|
20
|
+
"prompt-compressor": "^1.0.4",
|
|
21
21
|
"zod": "^4.0.0"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|