posterly-mcp-server 0.47.0 → 0.48.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 +2 -2
- package/dist/lib/api-client.d.ts +18 -0
- package/dist/lib/api-client.js +6 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/tools/create-post.d.ts +876 -0
- package/dist/tools/create-post.js +49 -1
- package/dist/tools/create-posts-batch.d.ts +314 -0
- package/dist/tools/delete-post.d.ts +6 -2
- package/dist/tools/delete-post.js +9 -5
- package/dist/tools/update-post.d.ts +400 -0
- package/dist/tools/update-post.js +36 -0
- package/dist/tools/validate-post.d.ts +476 -0
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/lib/api-client.ts +22 -2
- package/src/lib/version.ts +1 -1
- package/src/tools/create-post.ts +47 -1
- package/src/tools/delete-post.ts +12 -7
- package/src/tools/update-post.ts +36 -0
- package/tool-annotations.json +2 -1
- package/tool-registry.json +9 -2
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.
|
|
126
|
+
`posterly-mcp-server@0.48.0` exposes 62 tools covering 95 actions. The hosted HTTP endpoint exposes the same catalog minus the three signup tools: 59 tools covering 92 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
|
|
|
@@ -217,7 +217,7 @@ Accounts, posting, media, schedule, analytics, and support. What most assistants
|
|
|
217
217
|
|
|
218
218
|
| Mode (picked by params) | What it does |
|
|
219
219
|
| --- | --- |
|
|
220
|
-
| `post` (default) | Delete one post.
|
|
220
|
+
| `post` (default) | Delete one post. Choose `delete_mode`: `posterly` keeps live content; `platform` also requires `confirm_published` |
|
|
221
221
|
| `group` (pass `group_id`) | Delete a post group (preview then confirm). Never deletes published posts |
|
|
222
222
|
|
|
223
223
|
**`upload_media`**: Upload media
|
package/dist/lib/api-client.d.ts
CHANGED
|
@@ -194,6 +194,23 @@ export interface InstagramPostSettings {
|
|
|
194
194
|
}>;
|
|
195
195
|
reel_cover_url?: string;
|
|
196
196
|
reel_thumb_offset?: number;
|
|
197
|
+
is_ai_generated?: boolean;
|
|
198
|
+
audio_id?: string;
|
|
199
|
+
caption_addon?: {
|
|
200
|
+
type?: 'none' | 'poll' | 'comment_prompt';
|
|
201
|
+
kind?: 'none' | 'poll' | 'comment_prompt';
|
|
202
|
+
options?: string[];
|
|
203
|
+
extended_duration?: boolean;
|
|
204
|
+
} | null;
|
|
205
|
+
poll_attachment?: {
|
|
206
|
+
option_a?: string;
|
|
207
|
+
option_b?: string;
|
|
208
|
+
option_c?: string;
|
|
209
|
+
option_d?: string;
|
|
210
|
+
options?: string[];
|
|
211
|
+
};
|
|
212
|
+
is_comment_prompt_used?: boolean;
|
|
213
|
+
is_poll_duration_extended?: boolean;
|
|
197
214
|
}
|
|
198
215
|
export type PlatformPostSettings = Record<string, unknown>;
|
|
199
216
|
export type CreatePostPayload = {
|
|
@@ -1248,6 +1265,7 @@ export declare class PosterlyClient {
|
|
|
1248
1265
|
}>;
|
|
1249
1266
|
deletePost(id: number, options?: {
|
|
1250
1267
|
confirmPublished?: boolean;
|
|
1268
|
+
deleteMode?: 'posterly' | 'platform';
|
|
1251
1269
|
}): Promise<{
|
|
1252
1270
|
deleted: boolean;
|
|
1253
1271
|
id: number;
|
package/dist/lib/api-client.js
CHANGED
|
@@ -378,7 +378,12 @@ export class PosterlyClient {
|
|
|
378
378
|
return this.request('PATCH', `/posts/${id}`, data);
|
|
379
379
|
}
|
|
380
380
|
async deletePost(id, options) {
|
|
381
|
-
const
|
|
381
|
+
const params = new URLSearchParams();
|
|
382
|
+
if (options?.confirmPublished)
|
|
383
|
+
params.set('confirm_published', 'true');
|
|
384
|
+
if (options?.deleteMode)
|
|
385
|
+
params.set('delete_mode', options.deleteMode);
|
|
386
|
+
const qs = params.size ? `?${params}` : '';
|
|
382
387
|
return this.request('DELETE', `/posts/${id}${qs}`);
|
|
383
388
|
}
|
|
384
389
|
async setPostApproval(id, data) {
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const POSTERLY_MCP_VERSION = "0.
|
|
1
|
+
export declare const POSTERLY_MCP_VERSION = "0.48.0";
|
package/dist/lib/version.js
CHANGED
|
@@ -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.
|
|
8
|
+
export const POSTERLY_MCP_VERSION = '0.48.0';
|