@kunal_dutt/token-lens 0.2.31 → 0.2.33
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 -1
- package/package.json +1 -1
- package/server.mjs +187 -53
- package/token-lens.mcpb +0 -0
package/README.md
CHANGED
|
@@ -15,6 +15,11 @@ you set your own `ANTHROPIC_API_KEY` or `GEMINI_API_KEY` for it. See [PRIVACY.md
|
|
|
15
15
|
|
|
16
16
|
## Add it to your AI app
|
|
17
17
|
|
|
18
|
+
**No Node, no install:** the Token Lens page (`/lens/` on the Token Lens site)
|
|
19
|
+
shortens prompts for any AI app in the browser and shows how to add Token Lens
|
|
20
|
+
to ChatGPT, claude.ai, Le Chat and other apps by one address (`/api/mcp` on the
|
|
21
|
+
same site). Share that page with anyone.
|
|
22
|
+
|
|
18
23
|
It runs on your own computer with Node 20 or newer. `@latest` means
|
|
19
24
|
each start picks up the newest version, so there's nothing to update.
|
|
20
25
|
|
|
@@ -25,7 +30,7 @@ each start picks up the newest version, so there's nothing to update.
|
|
|
25
30
|
| **Codex CLI** | `codex mcp add token-lens -- npx -y @kunal_dutt/token-lens@latest` |
|
|
26
31
|
| **Gemini CLI** | Add the JSON below to `~/.gemini/settings.json`. |
|
|
27
32
|
| **Cursor, VS Code, Windsurf, Zed, Cline, LM Studio, any MCP app** | Add a stdio server with the JSON below. |
|
|
28
|
-
| **ChatGPT, claude.ai and mobile apps** | Need a connector URL: use the public one
|
|
33
|
+
| **ChatGPT, claude.ai, Le Chat and mobile apps** | Need a connector URL: use the public one (`/api/mcp` on the Token Lens site, steps on its `/lens/` page), or run your own (below). |
|
|
29
34
|
|
|
30
35
|
```json
|
|
31
36
|
{
|
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.33",
|
|
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",
|