MCPcopy Create free account
hub / github.com/SteffMet/tabby-vscode-agent / constructor

Method constructor

src/index.ts:89–105  ·  view source on GitHub ↗

* Simple constructor for module initialization * Server initialization is handled by the toolbar button provider

(
        private app: AppService,
        private config: ConfigService,
        private mcpService: McpService,
        private logger: McpLoggerService,
        private hostWindow: HostWindowService,
        private mcpHotkeyService: McpHotkeyService
    )

Source from the content-addressed store, hash-verified

87 * Server initialization is handled by the toolbar button provider
88 */
89 private constructor(
90 private app: AppService,
91 private config: ConfigService,
92 private mcpService: McpService,
93 private logger: McpLoggerService,
94 private hostWindow: HostWindowService,
95 private mcpHotkeyService: McpHotkeyService
96 ) {
97 console.log('[McpModule] Module initialized');
98
99 // Initialize the server properly after app and config are ready
100 this.app.ready$.subscribe(() => {
101 this.config.ready$.toPromise().then(() => {
102 this.initServerOnBoot();
103 });
104 });
105 }
106
107 /**
108 * Initialize server on boot based on configuration

Callers

nothing calls this directly

Calls 1

initServerOnBootMethod · 0.95

Tested by

no test coverage detected