From 8c4cebb31a875267823a783e31b3c8a7fa1fc7d6 Mon Sep 17 00:00:00 2001 From: Enno Gelhaus Date: Fri, 8 Aug 2025 08:00:14 +0200 Subject: [PATCH] feat/sentry mcp --- libraries/nestjs-libraries/src/mcp/mcp.settings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/nestjs-libraries/src/mcp/mcp.settings.ts b/libraries/nestjs-libraries/src/mcp/mcp.settings.ts index 377dd254..6c73d479 100644 --- a/libraries/nestjs-libraries/src/mcp/mcp.settings.ts +++ b/libraries/nestjs-libraries/src/mcp/mcp.settings.ts @@ -5,7 +5,7 @@ import { socialIntegrationList } from '@gitroom/nestjs-libraries/integrations/in export class McpSettings { private _server: McpServer; createServer(organization: string, service: MainMcp) { - this._server = new McpServer( + this._server = Sentry.wrapMcpServerWithSentry(new McpServer( { name: 'Postiz', version: '2.0.0', @@ -17,7 +17,7 @@ export class McpSettings { ', ' )} to schedule you need to have the providerId (you can get it from POSTIZ_PROVIDERS_LIST), user need to specify the schedule date (or now), text, you also can send base64 images and text for the comments. When you get POSTIZ_PROVIDERS_LIST, always display all the options to the user`, } - ); + )); for (const usePrompt of Reflect.getMetadata( 'MCP_PROMPT',