π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: fix mcp
Nevo David37f7fa3cf43d
diff --git a/apps/frontend/src/components/public-api/public.component.tsx b/apps/frontend/src/components/public-api/public.component.tsxindex 1a3eed987..41cacdfca 100644--- a/apps/frontend/src/components/public-api/public.component.tsx+++ b/apps/frontend/src/components/public-api/public.component.tsx@@ -89,7 +89,7 @@ const getMcpConfig = (switch (client) {case 'Claude Code':return {- config: `claude mcp add postiz \\\n --transport http \\\n --header "Authorization: ${bearer}" \\\n "${urlBase}"`,+ config: `claude mcp add --transport http postiz ${urlBase} --header "Authorization: ${bearer}"`,hint: 'Run this command in your terminal.',};case 'Cursor':diff --git a/libraries/nestjs-libraries/src/chat/tools/generate.video.options.tool.ts b/libraries/nestjs-libraries/src/chat/tools/generate.video.options.tool.tsindex 800314732..29b9af74c 100644--- a/libraries/nestjs-libraries/src/chat/tools/generate.video.options.tool.ts+++ b/libraries/nestjs-libraries/src/chat/tools/generate.video.options.tool.ts@@ -17,7 +17,14 @@ export class GenerateVideoOptionsTool implements AgentToolInterface {return createTool({id: 'generateVideoOptions',description: `All the options to generate videos, some tools might require another call to generateVideoFunction`,- inputSchema: z.object({}),+ inputSchema: z.object({+ reasoning: z+ .string()+ .optional()+ .describe(+ 'Optional short reason for why you are listing the video generation options'+ ),+ }),mcp: {annotations: {title: 'List Video Generation Options',diff --git a/libraries/nestjs-libraries/src/chat/tools/upload.from.url.tool.ts b/libraries/nestjs-libraries/src/chat/tools/upload.from.url.tool.tsindex c8a8fc617..6020e3ad5 100644--- a/libraries/nestjs-libraries/src/chat/tools/upload.from.url.tool.ts+++ b/libraries/nestjs-libraries/src/chat/tools/upload.from.url.tool.ts@@ -50,12 +50,10 @@ so the attachment passes the upload-domain validation. Returns the hosted media.url().describe('The public URL of the image or video to upload'),}),- outputSchema: z- .object({- id: z.string(),- path: z.string(),- })- .or(z.object({ errors: z.string() })),+ outputSchema: z.object({+ id: z.string(),+ path: z.string(),+ }),execute: async (inputData, context) => {checkAuth(inputData, context);const org = JSON.parse(@@ -68,13 +66,13 @@ so the attachment passes the upload-domain validation. Returns the hosted media});if (!response.ok) {- return { errors: 'Failed to fetch URL' };+ throw new Error('Failed to fetch URL');}const buffer = Buffer.from(await response.arrayBuffer());const detected = await fromBuffer(buffer);if (!detected || !ALLOWED_MIME.has(detected.mime)) {- return { errors: 'Unsupported file type.' };+ throw new Error('Unsupported file type.');}const getFile = await this.storage.uploadFile({diff --git a/libraries/nestjs-libraries/src/chat/tools/video.function.tool.ts b/libraries/nestjs-libraries/src/chat/tools/video.function.tool.tsindex b5c7cbf10..0cbf26699 100644--- a/libraries/nestjs-libraries/src/chat/tools/video.function.tool.ts+++ b/libraries/nestjs-libraries/src/chat/tools/video.function.tool.ts@@ -31,6 +31,7 @@ export class VideoFunctionTool implements AgentToolInterface {identifier: z.string(),functionName: z.string(),}),+ outputSchema: z.any(),execute: async (inputData, context) => {checkAuth(inputData, context);const videos = this._videoManagerService.getAllVideos();@@ -41,7 +42,7 @@ export class VideoFunctionTool implements AgentToolInterface {);if (!findVideo) {- return { error: 'Function not found' };+ throw new Error('Function not found');}const func = await this._moduleRef