@buzzposter/mcp 0.2.2 → 0.2.3

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/dist/index.js CHANGED
@@ -1150,7 +1150,23 @@ function registerNewsletterTools(server2, client2, options = {}) {
1150
1150
  "ESP-native template ID. For Kit: email_template_id (integer as string). For Beehiiv: post_template_id. Use list_esp_templates to find available templates."
1151
1151
  )
1152
1152
  },
1153
- _meta: { ui: { resourceUri: NEWSLETTER_STUDIO_RESOURCE } }
1153
+ _meta: {
1154
+ ui: {
1155
+ resourceUri: NEWSLETTER_STUDIO_RESOURCE,
1156
+ csp: {
1157
+ resourceDomains: [
1158
+ "https://cdn.jsdelivr.net",
1159
+ "https://fonts.googleapis.com",
1160
+ "https://fonts.gstatic.com",
1161
+ "https://unpkg.com"
1162
+ ],
1163
+ connectDomains: [
1164
+ "https://fonts.googleapis.com",
1165
+ "https://fonts.gstatic.com"
1166
+ ]
1167
+ }
1168
+ }
1169
+ }
1154
1170
  },
1155
1171
  async (args) => {
1156
1172
  const payload = {
@@ -1160,9 +1176,15 @@ function registerNewsletterTools(server2, client2, options = {}) {
1160
1176
  };
1161
1177
  if (args.template_id) payload.templateId = args.template_id;
1162
1178
  const result = await client2.createBroadcast(payload);
1179
+ const response = {
1180
+ ...result,
1181
+ subject: args.subject,
1182
+ content: args.content,
1183
+ previewText: args.preview_text
1184
+ };
1163
1185
  return {
1164
1186
  content: [
1165
- { type: "text", text: JSON.stringify(result, null, 2) }
1187
+ { type: "text", text: JSON.stringify(response, null, 2) }
1166
1188
  ]
1167
1189
  };
1168
1190
  }
@@ -1189,9 +1211,15 @@ function registerNewsletterTools(server2, client2, options = {}) {
1189
1211
  if (args.content) data.content = args.content;
1190
1212
  if (args.preview_text) data.previewText = args.preview_text;
1191
1213
  const result = await client2.updateBroadcast(args.broadcast_id, data);
1214
+ const response = {
1215
+ ...result,
1216
+ subject: args.subject,
1217
+ content: args.content,
1218
+ previewText: args.preview_text
1219
+ };
1192
1220
  return {
1193
1221
  content: [
1194
- { type: "text", text: JSON.stringify(result, null, 2) }
1222
+ { type: "text", text: JSON.stringify(response, null, 2) }
1195
1223
  ]
1196
1224
  };
1197
1225
  }