File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
3
3
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
4
4
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js'
5
5
import { z } from 'zod'
6
- import { pino } from 'pino'
6
+ import pino from 'pino'
7
7
import readline from 'readline'
8
8
import { join } from 'path'
9
9
import { readFileSync } from 'fs'
@@ -488,7 +488,7 @@ if (useHttp) {
488
488
try {
489
489
res . write ( ': heartbeat\n\n' )
490
490
} catch ( error ) {
491
- logger . error ( `Heartbeat error for session ${ sessionId } :` , error )
491
+ logger . error ( error , `Heartbeat error for session ${ sessionId } :` )
492
492
clearInterval ( heartbeat )
493
493
}
494
494
} , 30000 )
@@ -498,7 +498,7 @@ if (useHttp) {
498
498
res . on ( 'close' , ( ) => clearInterval ( heartbeat ) )
499
499
}
500
500
} catch ( error ) {
501
- logger . error ( `SSE transport error for session ${ sessionId } :` , error )
501
+ logger . error ( error , `SSE transport error for session ${ sessionId } :` )
502
502
}
503
503
} else if ( req . method === 'DELETE' ) {
504
504
// Handle session termination
You can’t perform that action at this time.
0 commit comments