Skip to content

Commit 61d7b1e

Browse files
committed
chore: add resource subscriptions and improve the resource prompt
1 parent 89ba76d commit 61d7b1e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/resources/common/debug.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export class DebugResource extends ReactiveResource(
1313
name: "debug-mongodb",
1414
uri: "debug://mongodb",
1515
config: {
16-
description: "Debugging information for MongoDB connectivity issues.",
16+
description:
17+
"Debugging information for MongoDB connectivity issues. Tracks the last connectivity error and attempt information.",
1718
},
1819
},
1920
{

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class Server {
4343
this.registerResources();
4444
await this.validateConfig();
4545

46-
this.mcpServer.server.registerCapabilities({ logging: {} });
46+
this.mcpServer.server.registerCapabilities({ logging: {}, resources: { subscribe: true, listChanged: true } });
4747

4848
// TODO: Eventually we might want to make tools reactive too instead of relying on custom logic.
4949
this.registerTools();

0 commit comments

Comments
 (0)