posterly-mcp-server 0.2.0 → 0.2.1

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.
@@ -1,16 +1,16 @@
1
1
  import { z } from 'zod';
2
2
  export const uploadMediaTool = {
3
3
  name: 'upload_media',
4
- description: 'Upload an image or video file to posterly. Returns a URL that can be used with create_post. Supports JPEG, PNG, GIF, WebP, MP4, MOV, WebM. Images up to 10MB, videos up to 50MB.',
4
+ description: 'Upload an image or video file to posterly. Returns a URL that can be used with create_post. Supports JPEG, PNG, GIF, WebP, MP4, MOV, WebM. Images up to 10MB, videos up to 50MB. IMPORTANT: If the user shares an image in the chat, use base64_data (not file_path) since chat-uploaded images are not on the local filesystem. Only use file_path when the user provides an actual local filesystem path.',
5
5
  inputSchema: z.object({
6
6
  file_path: z
7
7
  .string()
8
8
  .optional()
9
- .describe('Absolute path to a local file to upload'),
9
+ .describe('Absolute local filesystem path (e.g. /Users/name/photo.jpg). Only use when the user gives you an explicit path. Do NOT guess paths for images uploaded in chat.'),
10
10
  base64_data: z
11
11
  .string()
12
12
  .optional()
13
- .describe('Base64-encoded file data (alternative to file_path)'),
13
+ .describe('Base64-encoded file data. PREFERRED for images shared directly in chat — extract the image data as base64 and pass it here.'),
14
14
  filename: z
15
15
  .string()
16
16
  .describe('Filename with extension (e.g. photo.jpg, video.mp4)'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posterly-mcp-server",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "MCP server for posterly — schedule social media posts from Claude Desktop",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -4,16 +4,16 @@ import type { PosterlyClient } from '../lib/api-client.js';
4
4
  export const uploadMediaTool = {
5
5
  name: 'upload_media',
6
6
  description:
7
- 'Upload an image or video file to posterly. Returns a URL that can be used with create_post. Supports JPEG, PNG, GIF, WebP, MP4, MOV, WebM. Images up to 10MB, videos up to 50MB.',
7
+ 'Upload an image or video file to posterly. Returns a URL that can be used with create_post. Supports JPEG, PNG, GIF, WebP, MP4, MOV, WebM. Images up to 10MB, videos up to 50MB. IMPORTANT: If the user shares an image in the chat, use base64_data (not file_path) since chat-uploaded images are not on the local filesystem. Only use file_path when the user provides an actual local filesystem path.',
8
8
  inputSchema: z.object({
9
9
  file_path: z
10
10
  .string()
11
11
  .optional()
12
- .describe('Absolute path to a local file to upload'),
12
+ .describe('Absolute local filesystem path (e.g. /Users/name/photo.jpg). Only use when the user gives you an explicit path. Do NOT guess paths for images uploaded in chat.'),
13
13
  base64_data: z
14
14
  .string()
15
15
  .optional()
16
- .describe('Base64-encoded file data (alternative to file_path)'),
16
+ .describe('Base64-encoded file data. PREFERRED for images shared directly in chat — extract the image data as base64 and pass it here.'),
17
17
  filename: z
18
18
  .string()
19
19
  .describe('Filename with extension (e.g. photo.jpg, video.mp4)'),