posterly-mcp-server 0.35.0 → 0.36.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 +1 -1
- package/dist/lib/api-client.d.ts +1 -0
- package/dist/lib/api-client.js +2 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/tools/create-post.d.ts +576 -0
- package/dist/tools/create-post.js +28 -2
- package/dist/tools/create-posts-batch.d.ts +224 -0
- package/dist/tools/create-signed-upload.js +2 -1
- package/dist/tools/generate-image.d.ts +2 -2
- package/dist/tools/generate-video.d.ts +2 -2
- package/dist/tools/generate-video.js +1 -1
- package/dist/tools/update-post.d.ts +256 -0
- package/dist/tools/update-post.js +26 -0
- package/dist/tools/validate-post.d.ts +320 -0
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/lib/api-client.ts +9 -2
- package/src/lib/version.ts +1 -1
- package/src/tools/create-post.ts +28 -2
- package/src/tools/create-signed-upload.ts +2 -1
- package/src/tools/generate-video.ts +1 -1
- package/src/tools/update-post.ts +26 -0
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ Add the same server definition to your Cursor MCP settings:
|
|
|
122
122
|
|
|
123
123
|
## Available tools
|
|
124
124
|
|
|
125
|
-
`posterly-mcp-server@0.
|
|
125
|
+
`posterly-mcp-server@0.36.0` exposes 78 tools.
|
|
126
126
|
|
|
127
127
|
Public setup tools work before `POSTERLY_API_KEY` exists:
|
|
128
128
|
|
package/dist/lib/api-client.d.ts
CHANGED
package/dist/lib/api-client.js
CHANGED
|
@@ -522,12 +522,13 @@ export class PosterlyClient {
|
|
|
522
522
|
guessContentType(input.filename);
|
|
523
523
|
const SIZE_THRESHOLD = 3 * 1024 * 1024; // 3MB
|
|
524
524
|
if (fileBuffer.length > SIZE_THRESHOLD) {
|
|
525
|
-
// Large file:
|
|
525
|
+
// Large file: PUT to the object-storage signed URL (not a Vercel relay).
|
|
526
526
|
const signed = await this.getSignedUploadUrl(input.filename, contentType, fileBuffer.length);
|
|
527
527
|
const uploadRes = await fetch(signed.upload_url, {
|
|
528
528
|
method: 'PUT',
|
|
529
529
|
headers: {
|
|
530
530
|
'Content-Type': contentType,
|
|
531
|
+
...(signed.headers || {}),
|
|
531
532
|
},
|
|
532
533
|
body: new Uint8Array(fileBuffer),
|
|
533
534
|
});
|
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.36.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.36.0';
|