mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-21 13:25:15 +02:00
Update server-everything to use the latest version of the SDK
* In sse.ts & streamableHttp.ts - change console.log to console.error
This commit is contained in:
@@ -2,7 +2,7 @@ import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";
|
|||||||
import express from "express";
|
import express from "express";
|
||||||
import { createServer } from "./everything.js";
|
import { createServer } from "./everything.js";
|
||||||
|
|
||||||
console.log('Starting SSE server...');
|
console.error('Starting SSE server...');
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import express, { Request, Response } from "express";
|
|||||||
import { createServer } from "./everything.js";
|
import { createServer } from "./everything.js";
|
||||||
import { randomUUID } from 'node:crypto';
|
import { randomUUID } from 'node:crypto';
|
||||||
|
|
||||||
console.log('Starting Streamable HTTP server...');
|
console.error('Starting Streamable HTTP server...');
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user