We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a120e3 commit a08f790Copy full SHA for a08f790
src/proxyServer.ts
@@ -11,6 +11,7 @@ import {
11
ReadResourceRequestSchema,
12
SubscribeRequestSchema,
13
UnsubscribeRequestSchema,
14
+ ResourceUpdatedNotificationSchema,
15
ServerCapabilities,
16
} from "@modelcontextprotocol/sdk/types.js";
17
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
@@ -60,6 +61,13 @@ export const proxyServer = async ({
60
61
});
62
63
if (serverCapabilities?.resources.subscribe) {
64
+ server.setNotificationHandler(
65
66
+ async (args) => {
67
+ return client.notification(args);
68
+ },
69
+ );
70
+
71
server.setRequestHandler(SubscribeRequestSchema, async (args) => {
72
return client.subscribeResource(args.params);
73
0 commit comments