@publishq/mcp 0.0.4 → 0.0.5
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 +1 -0
- package/dist/index.js +11 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -69,6 +69,7 @@ Any MCP client that launches a stdio server works the same way: run the command
|
|
|
69
69
|
| `publishq_list_media` | List uploaded/generated media |
|
|
70
70
|
| `publishq_get_media` | Get one media file by ID |
|
|
71
71
|
| `publishq_upload_media` | Upload a local file (up to 4 GB) and get a media ID |
|
|
72
|
+
| `publishq_delete_media` | Delete a media file no draft or scheduled post uses |
|
|
72
73
|
|
|
73
74
|
The tools are thin wrappers over [`@publishq/sdk`](https://www.npmjs.com/package/@publishq/sdk), so their behavior and scopes match the [PublishQ API](https://publishq.com/docs). `publishq_create_post` accepts an `accounts` array whose entries contain `accountId` plus optional `postOverrides` and `platformSpecificSettings`. `publishq_update_post` accepts content, scheduling, complete media replacement or removal, and thumbnail timestamp changes. `publishq_list_media` can filter by media IDs, types, and sources. For TikTok, the agent should call `publishq_get_tiktok_creator_info` first and then provide the required privacy and interaction settings in that account object. A tool call that hits an API error returns the API error so the agent can react.
|
|
74
75
|
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
import PublishQ, {
|
|
15
15
|
zCreatePostBody,
|
|
16
16
|
zCreateWorkspaceBody,
|
|
17
|
+
zDeleteMediaPath,
|
|
17
18
|
zDeletePostPath,
|
|
18
19
|
zGetMediaPath,
|
|
19
20
|
zGetPostPath,
|
|
@@ -239,6 +240,16 @@ registerTool(
|
|
|
239
240
|
},
|
|
240
241
|
(args) => run(publishq.media.get(args.id))
|
|
241
242
|
);
|
|
243
|
+
registerTool(
|
|
244
|
+
{
|
|
245
|
+
name: "publishq_delete_media",
|
|
246
|
+
title: "Delete a media file",
|
|
247
|
+
description: "Delete a media file by its ID, from the media library and from storage. Refused while a draft or scheduled post uses it: publish or delete that post first. This cannot be undone.",
|
|
248
|
+
inputSchema: advertisedSchema(zDeleteMediaPath),
|
|
249
|
+
annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: true }
|
|
250
|
+
},
|
|
251
|
+
(args) => run(publishq.media.delete(args.id))
|
|
252
|
+
);
|
|
242
253
|
registerTool(
|
|
243
254
|
{
|
|
244
255
|
name: "publishq_upload_media",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@publishq/mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Model Context Protocol (MCP) server for PublishQ. Let AI agents schedule and publish across your social platforms.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
33
33
|
"zod": "4.4.3",
|
|
34
|
-
"@publishq/sdk": "^0.0.
|
|
34
|
+
"@publishq/sdk": "^0.0.5"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20",
|