posterly-mcp-server 0.35.1 → 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 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.35.1` exposes 78 tools.
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
 
@@ -1221,6 +1221,7 @@ export declare class PosterlyClient {
1221
1221
  token: string;
1222
1222
  path: string;
1223
1223
  public_url: string;
1224
+ headers?: Record<string, string>;
1224
1225
  }>;
1225
1226
  uploadMedia(input: {
1226
1227
  filePath?: string;
@@ -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: use signed URL so the API can validate actual bytes before storage.
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
  });
@@ -1 +1 @@
1
- export declare const POSTERLY_MCP_VERSION = "0.35.1";
1
+ export declare const POSTERLY_MCP_VERSION = "0.36.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.35.1';
8
+ export const POSTERLY_MCP_VERSION = '0.36.0';