@trazum/mcp 1.9.0 → 1.10.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.
- package/README.md +1 -1
- package/dist/tools.js +2 -2
- package/package.json +2 -2
- package/src/tools.ts +2 -2
package/README.md
CHANGED
|
@@ -71,7 +71,7 @@ anything else with `-32601 Method not found`. No resources, no prompts, no
|
|
|
71
71
|
sampling. It is driven by a raw newline-delimited client in the tests; it has not
|
|
72
72
|
been driven by every MCP client in existence.
|
|
73
73
|
|
|
74
|
-
Token counts are estimates (±
|
|
74
|
+
Token counts are estimates (±10%, measured against Claude's tokenizer over 21
|
|
75
75
|
samples in seven languages), and every tool says so in its own output. A prompt
|
|
76
76
|
within a few percent of its budget should be treated as uncertain rather than as
|
|
77
77
|
passing. `--exact-tokens` settles it against the counting endpoint, which is free.
|
package/dist/tools.js
CHANGED
|
@@ -29,7 +29,7 @@ import { InvalidArguments } from './rpc.js';
|
|
|
29
29
|
*/
|
|
30
30
|
export const MAX_PROMPT_CHARS = 400_000;
|
|
31
31
|
/** Every figure this server prints descends from the estimator, so it says so. */
|
|
32
|
-
const BAND_NOTE = 'token counts are estimates (±
|
|
32
|
+
const BAND_NOTE = 'token counts are estimates (±10% on prose, calibrated on Claude); prices reviewed '
|
|
33
33
|
+ PRICING_LAST_REVIEWED;
|
|
34
34
|
function promptFrom(args) {
|
|
35
35
|
const prompt = args.prompt;
|
|
@@ -182,7 +182,7 @@ const CHECK = {
|
|
|
182
182
|
+ ` is ${result.tokensAfter}: content has to be cut.`;
|
|
183
183
|
return [
|
|
184
184
|
verdict,
|
|
185
|
-
'token counts are estimates (±
|
|
185
|
+
'token counts are estimates (±10% on prose, calibrated on Claude), so a prompt within'
|
|
186
186
|
+ ' a few percent of its budget should be treated as uncertain',
|
|
187
187
|
].join('\n');
|
|
188
188
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trazum/mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Trazum as an MCP server: let an agent price and budget its own prompts before it sends them.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "David Mu\u00f1oz Rey",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"prepublishOnly": "npm run build && npm test"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@trazum/core": "1.
|
|
40
|
+
"@trazum/core": "1.10.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^26.2.0",
|
package/src/tools.ts
CHANGED
|
@@ -42,7 +42,7 @@ export const MAX_PROMPT_CHARS = 400_000;
|
|
|
42
42
|
|
|
43
43
|
/** Every figure this server prints descends from the estimator, so it says so. */
|
|
44
44
|
const BAND_NOTE =
|
|
45
|
-
'token counts are estimates (±
|
|
45
|
+
'token counts are estimates (±10% on prose, calibrated on Claude); prices reviewed '
|
|
46
46
|
+ PRICING_LAST_REVIEWED;
|
|
47
47
|
|
|
48
48
|
function promptFrom(args: Record<string, unknown>): string {
|
|
@@ -214,7 +214,7 @@ const CHECK: ToolDefinition = {
|
|
|
214
214
|
|
|
215
215
|
return [
|
|
216
216
|
verdict,
|
|
217
|
-
'token counts are estimates (±
|
|
217
|
+
'token counts are estimates (±10% on prose, calibrated on Claude), so a prompt within'
|
|
218
218
|
+ ' a few percent of its budget should be treated as uncertain',
|
|
219
219
|
].join('\n');
|
|
220
220
|
},
|