@sellable/mcp 0.1.38 → 0.1.39

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.
Files changed (2) hide show
  1. package/dist/auth.js +5 -4
  2. package/package.json +1 -1
package/dist/auth.js CHANGED
@@ -57,9 +57,11 @@ function normalizeConfig(raw) {
57
57
  };
58
58
  }
59
59
  export function getConfig() {
60
- if (cachedConfig && !DISABLE_CONFIG_CACHE) {
61
- return cachedConfig;
62
- }
60
+ // Config cache removed 2026-05-04: we always re-read from disk so
61
+ // workspace switches (set_active_workspace) take effect immediately
62
+ // for ALL downstream tools (list_senders, fetch_*, etc.) without
63
+ // relying on every mutating tool to remember to invalidate the cache.
64
+ // Disk read is <5ms — the simplicity is worth the cost.
63
65
  const configPathCandidates = getConfigPathCandidates();
64
66
  const configPath = getConfigPath();
65
67
  if (!fs.existsSync(configPath)) {
@@ -100,7 +102,6 @@ export function getConfig() {
100
102
  if (!config.token.startsWith("skt_")) {
101
103
  throw new Error("Invalid token format - must start with 'skt_'");
102
104
  }
103
- cachedConfig = config;
104
105
  return config;
105
106
  }
106
107
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/mcp",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "type": "module",
5
5
  "description": "Sellable MCP server for Claude Code and Codex campaign workflows",
6
6
  "main": "dist/index.js",