ads-mcp-for-snapchat 0.9.7 → 0.9.8

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.9.8 (2026-11-21)
6
+
7
+ - **Fix: the Claude Desktop extension did not start after upgrading to 0.9.7.** 0.9.7 added a required setting (Tool set); an upgraded install has no saved value for it, and Desktop then reports "No MCP config found" and never starts the server. The setting is now optional, the extension passes `SNAP_TOOLSETS_DEFAULT=core`, and the server uses it when the Tool set is empty or was never saved. Tests start the server in every state of the setting and keep new extension settings optional.
8
+
5
9
  ## 0.9.7 (2026-11-21)
6
10
 
7
11
  Three changes together: fewer tools (merged near-duplicates, a core tool set), interactive cards (MCP Apps), and the quality-audit fixes. Existing tool names keep working behind `SNAP_LEGACY_TOOLS=1`; see the entries below. The Claude Desktop extension now starts with the core tool set and changes allowed (see 0.9.5).
package/README.md CHANGED
@@ -104,6 +104,7 @@ With this setting the server asks **you**, through the MCP client's own dialog (
104
104
  | `SNAP_MAX_DAILY_BUDGET` | 1000 | Highest daily budget any single campaign or ad squad may be given or enabled with |
105
105
  | `SNAP_MAX_RESPONSE_CHARS` | 100000 | Longest answer a tool returns; longer ones are cut with a note saying how to ask for less. |
106
106
  | `SNAP_LEGACY_TOOLS` | off | Set to 1 to also show the old tool names that were merged into other tools (for example `snap_set_status_bulk`, `snap_bulk_set_budget`, `snap_report_daily`). They work as before and say which tool replaced them. Off by default, so the assistant sees fewer tools. |
107
+ | `SNAP_TOOLSETS_DEFAULT` | (none) | Set by the Claude Desktop extension to `core`: used only when `SNAP_TOOLSETS` is empty or was never saved, so upgraded installs start with the core tool set. A real `SNAP_TOOLSETS` value always wins. |
107
108
  | `SNAP_MEDIA_DIR` | (none) | Optional folder allow-list: when set, `snap_upload_media` and `snap_upload_customer_list` only read files inside this folder (symbolic links are resolved first). Recommended, so the server cannot be steered into reading other files on your computer. |
108
109
  | `SNAP_WARN_DAILY_BUDGET` | (none) | Optional **warning** level, not a limit: a change that adds more than this daily budget shows a `budget_warning` in the preview. Without it, the preview still warns when a change adds more than twice your largest running ad squad (or, on an account with none running, more than half of `SNAP_MAX_DAILY_BUDGET`). |
109
110
  | `SNAP_MIN_DAILY_BUDGET` | 5 | Lowest daily budget |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ads-mcp-for-snapchat",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "Unofficial local MCP server for the Snapchat Marketing API: reports, audits and safe, previewed changes to campaigns, ad squads and ads.",
5
5
  "mcpName": "io.github.Usame794/ads-mcp-for-snapchat",
6
6
  "adsMcpBroker": "https://ads-mcp-for-snapchat-login.ads-mcp.workers.dev",
package/src/index.js CHANGED
@@ -10,6 +10,9 @@ import { registerTools } from "./tools.js";
10
10
  // versions. Treat those as unset, so an empty optional setting can never stop the server or become a real value.
11
11
  for (const [k, v] of Object.entries(process.env)) if (k.startsWith("SNAP_") && /^\$\{user_config\.[a-z_]+\}$/.test(v ?? "")) delete process.env[k];
12
12
  loadEnv();
13
+ // The Desktop extension offers "core" when its Tool set setting is empty or was never saved (an upgraded install has no value for a
14
+ // setting added later). A real value, including "all", always wins.
15
+ if (!process.env.SNAP_TOOLSETS && process.env.SNAP_TOOLSETS_DEFAULT) process.env.SNAP_TOOLSETS = process.env.SNAP_TOOLSETS_DEFAULT;
13
16
  let policy;
14
17
  try {
15
18
  // Safety settings are validated before anything else. An invalid value stops the server instead of disabling a limit.
@@ -20,7 +23,7 @@ try {
20
23
  }
21
24
  // Snapshot of the non-secret settings taken at startup. Later edits to .env do not change limits or the target account.
22
25
  const settings = { ...process.env };
23
- const server = new McpServer({ name: "ads-mcp-for-snapchat", version: "0.9.7" });
26
+ const server = new McpServer({ name: "ads-mcp-for-snapchat", version: "0.9.8" });
24
27
  // Only the OAuth credentials are re-read from .env when a token is needed, so replacing them does not require a restart.
25
28
  const client = new SnapClient({ beforeToken: () => loadEnv(undefined, { override: true }), timeoutMs: policy.httpTimeoutMs });
26
29
  registerTools(server, client, settings);