Set notification manager
This commit is contained in:
@@ -91,6 +91,10 @@ export default class MCPServerPlugin extends Plugin {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
this.mcpServer = new MCPServer(this.app, this.settings);
|
this.mcpServer = new MCPServer(this.app, this.settings);
|
||||||
|
// Set notification manager if notifications are enabled
|
||||||
|
if (this.notificationManager) {
|
||||||
|
this.mcpServer.setNotificationManager(this.notificationManager);
|
||||||
|
}
|
||||||
await this.mcpServer.start();
|
await this.mcpServer.start();
|
||||||
new Notice(`MCP Server started on port ${this.settings.port}`);
|
new Notice(`MCP Server started on port ${this.settings.port}`);
|
||||||
this.updateStatusBar();
|
this.updateStatusBar();
|
||||||
|
|||||||
Reference in New Issue
Block a user