@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/tools.js CHANGED
@@ -1144,7 +1144,23 @@ function registerNewsletterTools(server, client, options = {}) {
1144
1144
  "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."
1145
1145
  )
1146
1146
  },
1147
- _meta: { ui: { resourceUri: NEWSLETTER_STUDIO_RESOURCE } }
1147
+ _meta: {
1148
+ ui: {
1149
+ resourceUri: NEWSLETTER_STUDIO_RESOURCE,
1150
+ csp: {
1151
+ resourceDomains: [
1152
+ "https://cdn.jsdelivr.net",
1153
+ "https://fonts.googleapis.com",
1154
+ "https://fonts.gstatic.com",
1155
+ "https://unpkg.com"
1156
+ ],
1157
+ connectDomains: [
1158
+ "https://fonts.googleapis.com",
1159
+ "https://fonts.gstatic.com"
1160
+ ]
1161
+ }
1162
+ }
1163
+ }
1148
1164
  },
1149
1165
  async (args) => {
1150
1166
  const payload = {
@@ -1154,9 +1170,15 @@ function registerNewsletterTools(server, client, options = {}) {
1154
1170
  };
1155
1171
  if (args.template_id) payload.templateId = args.template_id;
1156
1172
  const result = await client.createBroadcast(payload);
1173
+ const response = {
1174
+ ...result,
1175
+ subject: args.subject,
1176
+ content: args.content,
1177
+ previewText: args.preview_text
1178
+ };
1157
1179
  return {
1158
1180
  content: [
1159
- { type: "text", text: JSON.stringify(result, null, 2) }
1181
+ { type: "text", text: JSON.stringify(response, null, 2) }
1160
1182
  ]
1161
1183
  };
1162
1184
  }
@@ -1183,9 +1205,15 @@ function registerNewsletterTools(server, client, options = {}) {
1183
1205
  if (args.content) data.content = args.content;
1184
1206
  if (args.preview_text) data.previewText = args.preview_text;
1185
1207
  const result = await client.updateBroadcast(args.broadcast_id, data);
1208
+ const response = {
1209
+ ...result,
1210
+ subject: args.subject,
1211
+ content: args.content,
1212
+ previewText: args.preview_text
1213
+ };
1186
1214
  return {
1187
1215
  content: [
1188
- { type: "text", text: JSON.stringify(result, null, 2) }
1216
+ { type: "text", text: JSON.stringify(response, null, 2) }
1189
1217
  ]
1190
1218
  };
1191
1219
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buzzposter/mcp",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "BuzzPoster MCP server - Social media, newsletters, and media hosting for any AI chatbot",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",