tokensafe 4.1.1 → 4.1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tokensafe",
3
3
  "mcpName": "dev.tokensafe/tokensafe",
4
- "version": "4.1.1",
4
+ "version": "4.1.2",
5
5
  "description": "Make AI coding agents 3x faster without burning team quotas. Exact code context. Fewer tokens. Safer changes.",
6
6
  "main": "bin/tokensafe.js",
7
7
  "bin": {
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tokensafe",
3
3
  "displayName": "TokenSafe",
4
- "version": "4.1.1",
4
+ "version": "4.1.2",
5
5
  "description": "Reduce your AI bills by up to 99% locally. Your agents read only needed code, keep prompt caches intact across turns, and keep secrets out of git.",
6
6
  "logo": "assets/logo.svg",
7
7
  "author": {
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "dev.tokensafe/tokensafe",
4
4
  "title": "TokenSafe",
5
5
  "description": "Reduce your AI bills by up to 99% locally: focused code, warm prompt caches & zero secret leaks.",
6
- "version": "4.1.1",
6
+ "version": "4.1.2",
7
7
  "websiteUrl": "https://tokensafe.dev",
8
8
  "repository": {
9
9
  "url": "https://github.com/tokensafe-dev/tokensafe",
@@ -30,7 +30,7 @@
30
30
  "registryType": "npm",
31
31
  "registryBaseUrl": "https://registry.npmjs.org",
32
32
  "identifier": "tokensafe",
33
- "version": "4.1.1",
33
+ "version": "4.1.2",
34
34
  "runtimeHint": "npx",
35
35
  "transport": {
36
36
  "type": "stdio"
@@ -46,7 +46,7 @@
46
46
  "registryType": "pypi",
47
47
  "registryBaseUrl": "https://pypi.org",
48
48
  "identifier": "tokensafe",
49
- "version": "4.1.1",
49
+ "version": "4.1.2",
50
50
  "runtimeHint": "uvx",
51
51
  "transport": {
52
52
  "type": "stdio"
@@ -121,7 +121,10 @@ class EnvironmentAuditor:
121
121
  with open(plugin_cfg, "r", encoding="utf-8") as f:
122
122
  loaded = json.load(f)
123
123
  if isinstance(loaded, dict) and isinstance(loaded.get("mcpServers"), dict):
124
- configured.update(loaded["mcpServers"])
124
+ for s_name, s_cfg in loaded["mcpServers"].items():
125
+ configured[s_name] = s_cfg
126
+ # Antigravity namespaces plugin MCP servers as <plugin_name>_<server_name>
127
+ configured[f"{entry}_{s_name}"] = s_cfg
125
128
  except Exception:
126
129
  continue
127
130
  return configured
@@ -229,8 +232,14 @@ class EnvironmentAuditor:
229
232
  }
230
233
 
231
234
  # Include configured servers that might not have a schema dir cached yet
235
+ # Skip un-namespaced aliases if their namespaced counterpart already matched a schema
236
+ seen_plugin_suffixes = {
237
+ s_name.split("_", 1)[1] for s_name in servers.keys() if "_" in s_name
238
+ }
232
239
  for srv_name in configured:
233
240
  if srv_name not in servers:
241
+ if srv_name in seen_plugin_suffixes:
242
+ continue
234
243
  servers[srv_name] = {
235
244
  "name": srv_name,
236
245
  "active": True,
package/src/mcp_server.py CHANGED
@@ -42,7 +42,7 @@ from src.paths import get_active_workspace, is_plugin_or_system_dir
42
42
 
43
43
  SERVER_INFO = {
44
44
  "name": "tokensafe-mcp",
45
- "version": "4.1.1"
45
+ "version": "4.1.2"
46
46
  }
47
47
 
48
48
  # MCP client attribution: the initialize handshake carries clientInfo, which
@@ -241,7 +241,7 @@ class TelemetrySync:
241
241
  current_last_id = last_id
242
242
  headers = {
243
243
  "Content-Type": "application/json",
244
- "User-Agent": "TokenSafe-Sync/4.1.1"
244
+ "User-Agent": "TokenSafe-Sync/4.1.2"
245
245
  }
246
246
  if active_key:
247
247
  headers["Authorization"] = f"Bearer {active_key}"
@@ -17,7 +17,7 @@ import urllib.request
17
17
  import urllib.error
18
18
  from typing import Dict, Any, Optional, Tuple
19
19
 
20
- CURRENT_VERSION = "4.1.1"
20
+ CURRENT_VERSION = "4.1.2"
21
21
  CACHE_TTL = 86400 # 24 hours
22
22
  # When the cloud is unreachable we must NOT cache the synthesized "up to date"
23
23
  # answer for a full day — otherwise an update released right after an outage