We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc03854 commit 14bc365Copy full SHA for 14bc365
src/index.ts
@@ -23,9 +23,12 @@ const server = new MCPServer({
23
options: {
24
port, // Port to listen on
25
endpoint: "/", // HTTP endpoint path (default: "/mcp")
26
- responseMode: "batch", // Response mode: "batch" or "stream" (default: "batch")
+ responseMode: "stream", // Response mode: "batch" or "stream" (default: "batch")
27
batchTimeout: 30000, // Timeout for batch responses in ms (default: 30000)
28
- headers: {
+ session: {
29
+ enabled: true,
30
+ headerName: "Mcp-Session-Id",
31
+ allowClientTermination: true,
32
},
33
cors: {
34
// CORS configuration
0 commit comments