@buzzposter/mcp 0.1.7 → 0.1.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/dist/index.js CHANGED
@@ -697,7 +697,9 @@ Call this tool again with confirmed=true to schedule.`;
697
697
  async (args) => {
698
698
  const body = {
699
699
  content: args.content,
700
- platforms: args.platforms.map((p) => ({ platform: p }))
700
+ platforms: args.platforms.map((p) => ({ platform: p })),
701
+ publishNow: false,
702
+ status: "draft"
701
703
  };
702
704
  if (args.media_urls?.length) {
703
705
  body.mediaItems = args.media_urls.map((url) => ({
@@ -706,6 +708,15 @@ Call this tool again with confirmed=true to schedule.`;
706
708
  }));
707
709
  }
708
710
  const result = await client2.createPost(body);
711
+ if (result?.status && result.status !== "draft") {
712
+ return {
713
+ content: [{
714
+ type: "text",
715
+ text: `ERROR: Post was saved with status "${result.status}" instead of "draft". Post ID: ${result.id ?? "unknown"}. Check the Late dashboard immediately.`
716
+ }],
717
+ isError: true
718
+ };
719
+ }
709
720
  return {
710
721
  content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
711
722
  };
package/dist/tools.js CHANGED
@@ -691,7 +691,9 @@ Call this tool again with confirmed=true to schedule.`;
691
691
  async (args) => {
692
692
  const body = {
693
693
  content: args.content,
694
- platforms: args.platforms.map((p) => ({ platform: p }))
694
+ platforms: args.platforms.map((p) => ({ platform: p })),
695
+ publishNow: false,
696
+ status: "draft"
695
697
  };
696
698
  if (args.media_urls?.length) {
697
699
  body.mediaItems = args.media_urls.map((url) => ({
@@ -700,6 +702,15 @@ Call this tool again with confirmed=true to schedule.`;
700
702
  }));
701
703
  }
702
704
  const result = await client.createPost(body);
705
+ if (result?.status && result.status !== "draft") {
706
+ return {
707
+ content: [{
708
+ type: "text",
709
+ text: `ERROR: Post was saved with status "${result.status}" instead of "draft". Post ID: ${result.id ?? "unknown"}. Check the Late dashboard immediately.`
710
+ }],
711
+ isError: true
712
+ };
713
+ }
703
714
  return {
704
715
  content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
705
716
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buzzposter/mcp",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "BuzzPoster MCP server - Social media, newsletters, and media hosting for Claude Desktop",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",