feat: no singleton

This commit is contained in:
Nevo David 2025-04-15 19:48:26 +07:00
parent 267bc070ab
commit c27d240cf7
1 changed files with 1 additions and 8 deletions

View File

@ -3,7 +3,6 @@ import { MainMcp } from '@gitroom/backend/mcp/main.mcp';
import { socialIntegrationList } from '@gitroom/nestjs-libraries/integrations/integration.manager';
export class McpSettings {
static singleton: McpSettings;
private _server: McpServer;
createServer(organization: string, service: MainMcp) {
this._server = new McpServer(
@ -69,12 +68,6 @@ export class McpSettings {
}
static load(organization: string, service: MainMcp): McpSettings {
if (!McpSettings.singleton) {
McpSettings.singleton = new McpSettings().createServer(
organization,
service
);
}
return McpSettings.singleton;
return new McpSettings().createServer(organization, service);
}
}