add GET to examples servers

This commit is contained in:
ihrpr 2025-04-10 15:28:39 +01:00
commit 5c5a33021c
No known key found for this signature in database

View file

@ -25,7 +25,7 @@ async function main(): Promise<void> {
const transport = new StreamableHTTPClientTransport(
new URL('http://localhost:3000/mcp')
);
const supportsStandaloneSse = false;
let supportsStandaloneSse = false;
// Connect the client using the transport and initialize the server
await client.connect(transport);
@ -34,7 +34,7 @@ async function main(): Promise<void> {
console.log('Opening SSE stream to receive server notifications...');
try {
await transport.openSseStream();
const supportsStandaloneSse = false;
supportsStandaloneSse = true;
console.log('SSE stream established successfully. Waiting for notifications...');
}
catch (error) {