@kunal_dutt/token-lens 0.2.29 → 0.2.31
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/cli.mjs +6 -1
- package/package.json +1 -1
- package/server.mjs +50 -41
- package/token-lens.mcpb +0 -0
package/cli.mjs
CHANGED
|
@@ -19,4 +19,9 @@ else if (cmd === "--help" || cmd === "-h" || cmd === "help") {
|
|
|
19
19
|
token and dollar change a pull request makes to agent prompts and tools
|
|
20
20
|
|
|
21
21
|
Collects no data. https://www.npmjs.com/package/@kunal_dutt/token-lens`);
|
|
22
|
-
} else
|
|
22
|
+
} else {
|
|
23
|
+
// stderr only: stdout carries the MCP protocol. Apps show it in their server logs.
|
|
24
|
+
const { version } = JSON.parse(await (await import("node:fs/promises")).readFile(new URL("./package.json", import.meta.url), "utf8"));
|
|
25
|
+
console.error(`Token Lens ${version} MCP server starting`);
|
|
26
|
+
await import("./server.mjs");
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kunal_dutt/token-lens",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.31",
|
|
4
4
|
"description": "Count and cut the tokens your prompts, chats and agents use, adapted to the model and task. MCP server and self-hosted gateway. Collects no data.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|