Skip to content

feat/sentry mcp monitor #949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libraries/nestjs-libraries/src/mcp/mcp.settings.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { MainMcp } from '@gitroom/backend/mcp/main.mcp';
import { socialIntegrationList } from '@gitroom/nestjs-libraries/integrations/integration.manager';

import * as Sentry from '@sentry/nestjs';
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',
Expand All @@ -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',
Expand Down
Loading