posterly-mcp-server 0.57.0 → 0.58.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 -1
- package/dist/lib/api-client.d.ts +6 -0
- package/dist/lib/format.d.ts +13 -0
- package/dist/lib/format.js +25 -0
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/tools/get-post.js +3 -3
- package/dist/tools/list-jobs.d.ts +6 -6
- package/package.json +1 -1
- package/server.json +2 -2
- package/tool-registry.json +18 -0
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.58.0` exposes 74 tools covering 118 actions. The hosted HTTP endpoint exposes the same catalog minus the three signup tools: 71 tools covering 115 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
|
|
|
@@ -232,6 +232,7 @@ Accounts, posting, media, schedule, analytics, and support. What most assistants
|
|
|
232
232
|
| Mode (picked by params) | What it does |
|
|
233
233
|
| --- | --- |
|
|
234
234
|
| `file` (default) | Upload a file |
|
|
235
|
+
| `chat_files` (pass `chat_files`) | Import files from the chat (ChatGPT file params, hosted only) |
|
|
235
236
|
| `url` (pass `url`) | Upload from a URL |
|
|
236
237
|
|
|
237
238
|
**`list_analytics`**: Analytics
|
package/dist/lib/api-client.d.ts
CHANGED
|
@@ -197,6 +197,12 @@ export interface Post {
|
|
|
197
197
|
at?: string | null;
|
|
198
198
|
} | null;
|
|
199
199
|
platform_post_url?: string;
|
|
200
|
+
/** TikTok only: the direct post URL, or null when only the profile is known. */
|
|
201
|
+
published_url?: string | null;
|
|
202
|
+
url_type?: 'post' | 'profile_fallback' | null;
|
|
203
|
+
url_verified?: boolean;
|
|
204
|
+
profile_url?: string | null;
|
|
205
|
+
permalink_resolution_status?: 'resolved' | 'pending' | 'unavailable' | null;
|
|
200
206
|
published_at?: string;
|
|
201
207
|
workspace_id?: string | null;
|
|
202
208
|
metadata?: Record<string, unknown> | null;
|
package/dist/lib/format.d.ts
CHANGED
|
@@ -5,6 +5,19 @@ export declare function platformPostIdText(post: {
|
|
|
5
5
|
platform_post_id?: unknown;
|
|
6
6
|
metadata?: unknown;
|
|
7
7
|
}): string | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* The published link, labelled. A TikTok post whose link is only the
|
|
10
|
+
* creator's profile (the API marks it url_type profile_fallback) never shows
|
|
11
|
+
* that profile as the post: it says the post link is not available and shows
|
|
12
|
+
* the profile on its own row.
|
|
13
|
+
*/
|
|
14
|
+
export declare function publishedLinkRows(post: {
|
|
15
|
+
platform_post_url?: unknown;
|
|
16
|
+
published_url?: unknown;
|
|
17
|
+
url_type?: unknown;
|
|
18
|
+
profile_url?: unknown;
|
|
19
|
+
permalink_resolution_status?: unknown;
|
|
20
|
+
}): Array<[string, string]>;
|
|
8
21
|
/** Caller group and release ids already stored on the post. Order is stable and duplicates are dropped. */
|
|
9
22
|
export declare function groupReleaseIds(post: {
|
|
10
23
|
post_group_id?: unknown;
|
package/dist/lib/format.js
CHANGED
|
@@ -33,6 +33,31 @@ export function platformPostIdText(post) {
|
|
|
33
33
|
}
|
|
34
34
|
return scalarText(asRecord(meta.bluesky).uri);
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* The published link, labelled. A TikTok post whose link is only the
|
|
38
|
+
* creator's profile (the API marks it url_type profile_fallback) never shows
|
|
39
|
+
* that profile as the post: it says the post link is not available and shows
|
|
40
|
+
* the profile on its own row.
|
|
41
|
+
*/
|
|
42
|
+
export function publishedLinkRows(post) {
|
|
43
|
+
if (post.url_type === 'profile_fallback') {
|
|
44
|
+
const status = post.permalink_resolution_status;
|
|
45
|
+
const rows = [[
|
|
46
|
+
'Published URL',
|
|
47
|
+
status === 'resolved'
|
|
48
|
+
? 'TikTok confirmed the post but has not shared a direct link yet. The profile link is shown instead.'
|
|
49
|
+
: status === 'pending'
|
|
50
|
+
? 'Not available yet. TikTok has not shared the post link; posterly checks again for up to 7 days.'
|
|
51
|
+
: 'Not available. TikTok did not share a link to this post (it only does for posts that are publicly viewable).',
|
|
52
|
+
]];
|
|
53
|
+
const profile = scalarText(post.profile_url);
|
|
54
|
+
if (profile)
|
|
55
|
+
rows.push(['Profile URL (not the post)', profile]);
|
|
56
|
+
return rows;
|
|
57
|
+
}
|
|
58
|
+
const url = scalarText(post.published_url) || scalarText(post.platform_post_url);
|
|
59
|
+
return url ? [['Published URL', url]] : [];
|
|
60
|
+
}
|
|
36
61
|
/** Caller group and release ids already stored on the post. Order is stable and duplicates are dropped. */
|
|
37
62
|
export function groupReleaseIds(post) {
|
|
38
63
|
const meta = asRecord(post.metadata);
|
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.58.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.58.0';
|
package/dist/tools/get-post.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { dashboardUrlForPost, formatIsoTimestamp, formatLocalDateTime, formatPostCreator, groupReleaseIds, isStructuredMissingReport, platformPostIdText, platformText, postFailureText } from '../lib/format.js';
|
|
2
|
+
import { dashboardUrlForPost, formatIsoTimestamp, formatLocalDateTime, formatPostCreator, groupReleaseIds, isStructuredMissingReport, platformPostIdText, platformText, postFailureText, publishedLinkRows } from '../lib/format.js';
|
|
3
3
|
import { validateArgs } from '../lib/tool-runtime.js';
|
|
4
4
|
export const getPostTool = {
|
|
5
5
|
name: 'get_post',
|
|
@@ -53,8 +53,8 @@ async function post(client, input) {
|
|
|
53
53
|
if ('updated_at' in p)
|
|
54
54
|
lines.push(`• Last updated: ${formatIsoTimestamp(p.updated_at)}`);
|
|
55
55
|
lines.push(`• View in posterly: ${dashboardUrlForPost({ id: p.id, scheduled_at: p.scheduled_at })}`);
|
|
56
|
-
|
|
57
|
-
lines.push(`•
|
|
56
|
+
for (const [label, value] of publishedLinkRows(p))
|
|
57
|
+
lines.push(`• ${label}: ${value}`);
|
|
58
58
|
if (p.media_url)
|
|
59
59
|
lines.push(`• Media: ${p.media_url}`);
|
|
60
60
|
if (p.media_urls?.length)
|
|
@@ -17,12 +17,12 @@ export declare const listJobsTool: {
|
|
|
17
17
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
type: "image" | "video";
|
|
20
|
-
status?: "
|
|
20
|
+
status?: "pending" | "failed" | "dismissed" | "completed" | "processing" | undefined;
|
|
21
21
|
limit?: number | undefined;
|
|
22
22
|
job_id?: string | undefined;
|
|
23
23
|
}, {
|
|
24
24
|
type: "image" | "video";
|
|
25
|
-
status?: "
|
|
25
|
+
status?: "pending" | "failed" | "dismissed" | "completed" | "processing" | undefined;
|
|
26
26
|
limit?: number | undefined;
|
|
27
27
|
job_id?: string | undefined;
|
|
28
28
|
}>;
|
|
@@ -33,11 +33,11 @@ export declare const listJobsTool: {
|
|
|
33
33
|
status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
|
|
34
34
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
status?: "
|
|
36
|
+
status?: "pending" | "failed" | "completed" | "processing" | undefined;
|
|
37
37
|
limit?: number | undefined;
|
|
38
38
|
job_id?: string | undefined;
|
|
39
39
|
}, {
|
|
40
|
-
status?: "
|
|
40
|
+
status?: "pending" | "failed" | "completed" | "processing" | undefined;
|
|
41
41
|
limit?: number | undefined;
|
|
42
42
|
job_id?: string | undefined;
|
|
43
43
|
}>;
|
|
@@ -46,11 +46,11 @@ export declare const listJobsTool: {
|
|
|
46
46
|
status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed", "dismissed"]>>;
|
|
47
47
|
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
status?: "
|
|
49
|
+
status?: "pending" | "failed" | "dismissed" | "completed" | "processing" | undefined;
|
|
50
50
|
limit?: number | undefined;
|
|
51
51
|
job_id?: string | undefined;
|
|
52
52
|
}, {
|
|
53
|
-
status?: "
|
|
53
|
+
status?: "pending" | "failed" | "dismissed" | "completed" | "processing" | undefined;
|
|
54
54
|
limit?: number | undefined;
|
|
55
55
|
job_id?: string | undefined;
|
|
56
56
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "posterly-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.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.
|
|
6
|
+
"version": "0.58.0",
|
|
7
7
|
"websiteUrl": "https://www.poster.ly/mcp",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/awpthorp/posterly-mcp-server",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"identifier": "posterly-mcp-server",
|
|
16
|
-
"version": "0.
|
|
16
|
+
"version": "0.58.0",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|
package/tool-registry.json
CHANGED
|
@@ -1158,6 +1158,24 @@
|
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
1160
|
},
|
|
1161
|
+
"chat_files": {
|
|
1162
|
+
"label": "Import files from the chat",
|
|
1163
|
+
"destructive": false,
|
|
1164
|
+
"idempotent": true,
|
|
1165
|
+
"openWorld": true,
|
|
1166
|
+
"confirm": "none",
|
|
1167
|
+
"when": [
|
|
1168
|
+
"chat_files"
|
|
1169
|
+
],
|
|
1170
|
+
"params": {
|
|
1171
|
+
"chat_files": {
|
|
1172
|
+
"required": true
|
|
1173
|
+
},
|
|
1174
|
+
"workspace_id": {
|
|
1175
|
+
"type": "string"
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1161
1179
|
"url": {
|
|
1162
1180
|
"label": "Upload from a URL",
|
|
1163
1181
|
"destructive": false,
|