mcp-bing-ads 1.0.4 → 1.0.5

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.
@@ -1 +1 @@
1
- {"sha":"ded62e5","builtAt":"2026-04-09T19:36:59.250Z"}
1
+ {"sha":"3e93179","builtAt":"2026-04-09T19:59:31.071Z"}
package/dist/index.js CHANGED
@@ -109,9 +109,12 @@ class BingAdsManager {
109
109
  if (data.refresh_token && data.refresh_token !== this.refreshToken) {
110
110
  this.refreshToken = data.refresh_token;
111
111
  try {
112
- const { execSync } = await import("child_process");
113
- execSync(`security delete-generic-password -a bing-ads-mcp -s BING_ADS_REFRESH_TOKEN 2>/dev/null; ` +
114
- `security add-generic-password -a bing-ads-mcp -s BING_ADS_REFRESH_TOKEN -w "${data.refresh_token}"`);
112
+ const { execFileSync } = await import("child_process");
113
+ try {
114
+ execFileSync("security", ["delete-generic-password", "-a", "bing-ads-mcp", "-s", "BING_ADS_REFRESH_TOKEN"], { stdio: "ignore" });
115
+ }
116
+ catch { /* may not exist yet */ }
117
+ execFileSync("security", ["add-generic-password", "-a", "bing-ads-mcp", "-s", "BING_ADS_REFRESH_TOKEN", "-w", data.refresh_token]);
115
118
  console.error("[token] Rotated refresh token persisted to Keychain");
116
119
  }
117
120
  catch (err) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mcp-bing-ads",
3
3
  "mcpName": "io.github.mharnett/bing-ads",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "description": "MCP server for Microsoft Advertising (Bing Ads) API with campaign, ad group, keyword, and performance reporting. First comprehensive open-source Bing Ads MCP.",
6
6
  "main": "dist/index.js",
7
7
  "bin": {