Merge pull request #2469 from modelcontextprotocol/fix/remove-stderr
Remove out-of-specification sending of `notifications/stderr`
This commit is contained in:
commit
78e5a17e44
1 changed files with 0 additions and 12 deletions
|
|
@ -209,18 +209,6 @@ export const createServer = () => {
|
||||||
}, 20000);
|
}, 20000);
|
||||||
|
|
||||||
|
|
||||||
// Set up update interval for stderr messages
|
|
||||||
stdErrUpdateInterval = setInterval(() => {
|
|
||||||
const shortTimestamp = new Date().toLocaleTimeString([], {
|
|
||||||
hour: "2-digit",
|
|
||||||
minute: "2-digit",
|
|
||||||
second: "2-digit"
|
|
||||||
});
|
|
||||||
server.notification({
|
|
||||||
method: "notifications/stderr",
|
|
||||||
params: { content: `${shortTimestamp}: A stderr message` },
|
|
||||||
});
|
|
||||||
}, 30000);
|
|
||||||
|
|
||||||
// Helper method to request sampling from client
|
// Helper method to request sampling from client
|
||||||
const requestSampling = async (
|
const requestSampling = async (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue