mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-02-19 11:54:58 -05:00
Adjust intervals for outgoing demo messages
- subscription updates: 10 seconds - logging messages: 20 seconds - stderr messages: 30 seconds
This commit is contained in:
@@ -124,7 +124,7 @@ export const createServer = () => {
|
||||
params: { uri },
|
||||
});
|
||||
}
|
||||
}, 5000);
|
||||
}, 10000);
|
||||
|
||||
let logLevel: LoggingLevel = "debug";
|
||||
let logsUpdateInterval: NodeJS.Timeout | undefined;
|
||||
@@ -153,7 +153,7 @@ export const createServer = () => {
|
||||
};
|
||||
if (!isMessageIgnored(message.params.level as LoggingLevel))
|
||||
server.notification(message);
|
||||
}, 15000);
|
||||
}, 20000);
|
||||
|
||||
|
||||
// Set up update interval for stderr messages
|
||||
@@ -167,7 +167,7 @@ export const createServer = () => {
|
||||
method: "notifications/stderr",
|
||||
params: { content: `${shortTimestamp}: A stderr message` },
|
||||
});
|
||||
}, 10000);
|
||||
}, 30000);
|
||||
|
||||
// Helper method to request sampling from client
|
||||
const requestSampling = async (
|
||||
|
||||
Reference in New Issue
Block a user