Skip to content

Commit 14bc365

Browse files
turn on stream mode
1 parent bc03854 commit 14bc365

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ const server = new MCPServer({
2323
options: {
2424
port, // Port to listen on
2525
endpoint: "/", // HTTP endpoint path (default: "/mcp")
26-
responseMode: "batch", // Response mode: "batch" or "stream" (default: "batch")
26+
responseMode: "stream", // Response mode: "batch" or "stream" (default: "batch")
2727
batchTimeout: 30000, // Timeout for batch responses in ms (default: 30000)
28-
headers: {
28+
session: {
29+
enabled: true,
30+
headerName: "Mcp-Session-Id",
31+
allowClientTermination: true,
2932
},
3033
cors: {
3134
// CORS configuration

0 commit comments

Comments
 (0)