posterly-mcp-server 0.66.0 → 0.67.0

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/README.md CHANGED
@@ -123,7 +123,7 @@ Add the same server definition to your Cursor MCP settings:
123
123
 
124
124
  ## Available tools
125
125
 
126
- `posterly-mcp-server@0.66.0` exposes 75 tools covering 127 actions. The hosted HTTP endpoint exposes the same catalog minus the three signup tools: 72 tools covering 124 actions.
126
+ `posterly-mcp-server@0.67.0` exposes 75 tools covering 127 actions. The hosted HTTP endpoint exposes the same catalog minus the three signup tools: 72 tools covering 124 actions.
127
127
 
128
128
  Many tools pick what to do with one parameter: `view` (reads), `action` (writes), or `type`. A few pick their mode from which parameters you pass (for example `update_post` with `status` changes the status instead of editing). Every tool description names all of its views and actions.
129
129
 
@@ -198,6 +198,8 @@ export interface Post {
198
198
  media_url?: string;
199
199
  media_urls?: string[];
200
200
  status: string;
201
+ /** True when the row matches the missed filter. status stays the stored value. */
202
+ missed?: boolean;
201
203
  post_type?: string;
202
204
  platform?: string | string[] | null;
203
205
  post_group_id?: string | null;
@@ -99,6 +99,11 @@ export declare function compactText(value: string | null | undefined, maxLength?
99
99
  * as a Markdown block. Returns null when there is no learned voice to show.
100
100
  */
101
101
  export declare function mdLearnedVoice(learned: LearnedVoice | null | undefined): string | null;
102
+ /** Stored status, with " (missed)" when the API flag says the time passed. */
103
+ export declare function statusWithMissed(post: {
104
+ status?: string | null;
105
+ missed?: boolean | null;
106
+ }): string;
102
107
  export declare function statusLabel(status: string | null | undefined): string;
103
108
  export declare function code(value: CellValue): string;
104
109
  /**
@@ -345,6 +345,11 @@ export function mdLearnedVoice(learned) {
345
345
  ]);
346
346
  return body || null;
347
347
  }
348
+ /** Stored status, with " (missed)" when the API flag says the time passed. */
349
+ export function statusWithMissed(post) {
350
+ const label = statusLabel(post.status);
351
+ return post.missed === true ? `${label} (missed)` : label;
352
+ }
348
353
  export function statusLabel(status) {
349
354
  const value = String(status || 'unknown').toLowerCase();
350
355
  if (['created', 'success', 'succeeded', 'completed', 'published', 'active'].includes(value))
@@ -551,7 +556,7 @@ export function formatPostListPage(data, options) {
551
556
  // The API post row carries account and brand IDs only (no joined names);
552
557
  // list_accounts and list_brands, or view=counts, resolve them.
553
558
  posts.map((post) => [
554
- statusLabel(post.status),
559
+ statusWithMissed(post),
555
560
  code(String(post.id)),
556
561
  formatDateTimeInZone(post.scheduled_at, tz),
557
562
  post.post_type || 'post',
@@ -1 +1 @@
1
- export declare const POSTERLY_MCP_VERSION = "0.66.0";
1
+ export declare const POSTERLY_MCP_VERSION = "0.67.0";
@@ -5,4 +5,4 @@
5
5
  // tool set (minus the intentional pre-auth signup tools that only this stdio
6
6
  // package exposes). `npm run check:mcp-parity` enforces both the version match
7
7
  // and the tool-list match, and runs in the pre-commit hook.
8
- export const POSTERLY_MCP_VERSION = '0.66.0';
8
+ export const POSTERLY_MCP_VERSION = '0.67.0';
@@ -331,7 +331,7 @@ export const createPostTool = {
331
331
  '3. Get explicit confirmation from the user (e.g. "post it", "yes schedule that", "looks good") BEFORE calling this tool. Do NOT infer consent from earlier instructions like "post about X every Monday" - confirm each individual post or the entire batch.\n' +
332
332
  '4. If scheduling multiple posts in one turn, list every post first and confirm the batch as a whole, then prefer `create_posts_batch` so they are created in one API request.\n\n' +
333
333
  'AFTER CALLING: Tell the user the post was created, include the posterly dashboard link returned by the tool, and offer the next natural action. Do not narrate raw HTTP, curl, or API plumbing.\n\n' +
334
- 'Provide either account_id OR username+platform to identify the account. If scheduled_at is omitted, the post publishes immediately. If workspace_id is omitted, the server resolves one from the social account, falling back to the caller\'s default (personal) workspace - pass workspace_id explicitly if the user has more than one workspace.\n\n' +
334
+ 'Provide either account_id OR username+platform to identify the account. If scheduled_at is omitted, or it is within the next minute, the post publishes immediately and the returned status is publishing. A later time is returned as scheduled. If the post is saved but cannot be queued, the tool returns an error and says whether it will still be sent when it is due. If workspace_id is omitted, the server resolves one from the social account, falling back to the caller\'s default (personal) workspace - pass workspace_id explicitly if the user has more than one workspace.\n\n' +
335
335
  'MEDIA URLS: Posterly storage URLs are used as-is. Third-party HTTP(S) media URLs are copied into posterly storage before the post is saved, so API-created posts do not later fail on expired signed URLs. Short-lived signed URLs must still be live when this tool runs. You can also call `upload_media` with `url` first if you want to upload once and reuse the returned posterly URL across posts.\n\n' +
336
336
  'THREADS: Pass `thread_posts` (an array of 2+ strings) to schedule a multi-post thread on X (Twitter) or Threads (Meta). The first entry is the lead post; the rest are published as replies in the same chain. X entries are capped at 280 characters each (4000 for verified, 25000 for organization accounts); Threads entries are capped at 500 characters each. When `thread_posts` is set, `caption` is ignored.\n\n' +
337
337
  'X ARTICLES: To publish on X as a long-form Article, pass `platform_settings.article` ({ title, cover?: "first_image" | "none" }) for an X account. The caption becomes the Article body and is written as Markdown (headings, bold, italic, lists, quotes, code blocks, tables, dividers). Reference attached images with `![caption](media:1)`. Needs an X Premium account; polls, threads, paid partnership, video, and GIFs are not allowed with an Article.\n\n' +
@@ -355,7 +355,11 @@ export const createPostTool = {
355
355
  const dashboardUrl = dashboardUrlForPost({ id: p.id, scheduled_at: p.scheduled_at });
356
356
  const createdLine = replayed
357
357
  ? 'This post already exists. Nothing new was created.'
358
- : p.scheduled_at ? 'Post scheduled successfully.' : 'Post created successfully.';
358
+ : p.status === 'publishing'
359
+ ? 'Post is publishing now.'
360
+ : p.status === 'scheduled'
361
+ ? 'Post scheduled successfully.'
362
+ : 'Post created successfully.';
359
363
  const lines = [
360
364
  createdLine,
361
365
  `• ID: ${p.id}`,
@@ -28,7 +28,7 @@ async function post(client, input) {
28
28
  const groups = groupReleaseIds(p);
29
29
  const lines = [
30
30
  `Post #${p.id}`,
31
- `• Status: ${p.status}`,
31
+ `• Status: ${p.missed === true ? `${p.status} (missed)` : p.status}`,
32
32
  ];
33
33
  const platform = platformText(p.platform);
34
34
  if (platform)
@@ -18,7 +18,7 @@ export const listPostsTool = {
18
18
  status: z
19
19
  .string()
20
20
  .optional()
21
- .describe('Stored post status (draft, scheduled, publishing, processing, awaiting_tiktok_publish, awaiting_manual, published, failed, paused, paused_due_to_token, paused_due_to_billing, or missed). paused_due_to_token is a reconnect pause and paused_due_to_billing is a billing pause. missed: failed, still scheduled after the scheduled time, or held by a publishing pause past it.'),
21
+ .describe('Stored post status (draft, scheduled, publishing, processing, awaiting_tiktok_publish, awaiting_manual, published, failed, paused, paused_due_to_token, paused_due_to_billing, or missed). paused_due_to_token is a reconnect pause and paused_due_to_billing is a billing pause. missed is a filter, not a stored status: a scheduled post that is still scheduled 10 minutes after its time (the publish sweep runs every 5 minutes, plus the same wait for a late sweep). A reaper reset or an auto-retry requeue keeps a row off this list for those same 10 minutes. A fresh edit does not. Also an awaiting_manual story whose time has been reached, or a workspace or brand publishing pause whose scheduled time has been reached. Each row keeps its stored status and has missed true or false. Failed is its own status. Queued is not missed.'),
22
22
  group_id: z
23
23
  .string()
24
24
  .optional()
@@ -146,7 +146,7 @@ const platformSettingsSchema = z.object({
146
146
  }).passthrough();
147
147
  export const updatePostTool = {
148
148
  name: 'update_post',
149
- description: 'Change a scheduled or draft post. DESTRUCTIVE WRITE. Edit (default): caption, media, schedule, post_type, settings, account_id, or thread_posts; overwrites the existing post; cannot edit published or currently publishing posts. account_id moves the post to another account you can use in the same workspace and on the same brand, and the platform follows that account. thread_posts replaces an X or Threads reply chain with at least two non-empty parts, and the first part becomes the caption. If a client has already approved the post, a caption edit reopens caption approval, a media or thumbnail edit reopens asset approval, and a reschedule, account change, thread edit, or settings change reopens both. status (scheduled, paused, or draft, with scheduled_at when scheduling a draft): pause, resume, or move back to draft; send it on its own. release_id (with optional group_id): set or repair external release/group IDs; send it on its own. approval_action (request, approve, request_changes, or reject): change client approval. Only a workspace owner or admin may do this. The actor is the API key user, never a brand guest. request emails the brand reviewers. approve, request_changes, and reject are team-side decisions. request_changes needs approval_note. Optional approval_axis is asset or caption; omit it for both. Send approval_action on its own.\n\n' +
149
+ description: 'Change a scheduled or draft post. DESTRUCTIVE WRITE. Edit (default): caption, media, schedule, post_type, settings, account_id, or thread_posts; overwrites the existing post; cannot edit published or currently publishing posts. account_id moves the post to another account you can use in the same workspace and on the same brand, and the platform follows that account. thread_posts replaces an X or Threads reply chain with at least two non-empty parts, and the first part becomes the caption. If a client has already approved the post, a caption edit reopens caption approval, a media or thumbnail edit reopens asset approval, and a reschedule, account change, thread edit, or settings change reopens both. status (scheduled, paused, or draft, with scheduled_at when scheduling a draft): pause, resume, or move back to draft; send it on its own. A reconnect pause, including on X, resumes with status scheduled once the account is healthy, the time is in the future, and publishing is not paused. A billing pause, including on X, resumes once billing is clear, the time is in the future, and publishing is not paused. release_id (with optional group_id): set or repair external release/group IDs; send it on its own. approval_action (request, approve, request_changes, or reject): change client approval. Only a workspace owner or admin may do this. The actor is the API key user, never a brand guest. request emails the brand reviewers. approve, request_changes, and reject are team-side decisions. request_changes needs approval_note. Optional approval_axis is asset or caption; omit it for both. Send approval_action on its own.\n\n' +
150
150
  'REQUIRED BEFORE CALLING: Show the user a side-by-side of the CURRENT post (caption, scheduled time, media, status) and the PROPOSED change, and get explicit confirmation ("yes update it", "apply those changes") before calling. Do not auto-edit posts based on a general instruction - each change needs its own confirmation.\n\n' +
151
151
  'READ, THEN UPDATE: pass the Version from get_post as expected_version and send only the fields you are changing. If the post was edited since, nothing changes and the error says what changed and who changed it. Without expected_version a warning is returned when the update replaces a change made by someone else in the last 24 hours.',
152
152
  inputSchema: z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posterly-mcp-server",
3
- "version": "0.66.0",
3
+ "version": "0.67.0",
4
4
  "mcpName": "io.github.awpthorp/posterly",
5
5
  "description": "MCP server for posterly: schedule and publish social media posts across 18 platforms from any MCP client (Claude, ChatGPT, Cursor, Windsurf, Cline, and more)",
6
6
  "license": "MIT",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.awpthorp/posterly",
4
4
  "title": "posterly",
5
5
  "description": "Validate, schedule, publish, and analyze social content across 18 platforms with posterly.",
6
- "version": "0.66.0",
6
+ "version": "0.67.0",
7
7
  "websiteUrl": "https://www.poster.ly/mcp",
8
8
  "icons": [
9
9
  {
@@ -22,7 +22,7 @@
22
22
  {
23
23
  "registryType": "npm",
24
24
  "identifier": "posterly-mcp-server",
25
- "version": "0.66.0",
25
+ "version": "0.67.0",
26
26
  "transport": {
27
27
  "type": "stdio"
28
28
  },