File tree Expand file tree Collapse file tree 3 files changed +445
-456
lines changed
Expand file tree Collapse file tree 3 files changed +445
-456
lines changed Original file line number Diff line number Diff line change 3232 "dependencies" : {
3333 "@imagekit/nodejs" : " file:../../dist/" ,
3434 "@cloudflare/cabidela" : " ^0.2.4" ,
35- "@modelcontextprotocol/sdk" : " ^1.24.0 " ,
35+ "@modelcontextprotocol/sdk" : " ^1.25.2 " ,
3636 "@valtown/deno-http-worker" : " ^0.0.21" ,
3737 "cors" : " ^2.8.5" ,
3838 "express" : " ^5.1.0" ,
3939 "fuse.js" : " ^7.1.0" ,
4040 "jq-web" : " https://github.com/stainless-api/jq-web/releases/download/v0.8.8/jq-web.tar.gz" ,
41- "qs" : " ^6.14.0 " ,
41+ "qs" : " ^6.14.1 " ,
4242 "typescript" : " 5.8.3" ,
4343 "yargs" : " ^17.7.2" ,
4444 "zod" : " ^3.25.20" ,
4949 "mcp-server" : " dist/index.js"
5050 },
5151 "devDependencies" : {
52- "@anthropic-ai/mcpb" : " 1 .1.0 " ,
52+ "@anthropic-ai/mcpb" : " ^2 .1.2 " ,
5353 "@types/cors" : " ^2.8.19" ,
5454 "@types/express" : " ^5.0.3" ,
5555 "@types/jest" : " ^29.4.0" ,
Original file line number Diff line number Diff line change @@ -48,11 +48,8 @@ const post =
4848 const server = newServer ( { ...options , req, res } ) ;
4949 // If we return null, we already set the authorization error.
5050 if ( server === null ) return ;
51- const transport = new StreamableHTTPServerTransport ( {
52- // Stateless server
53- sessionIdGenerator : undefined ,
54- } ) ;
55- await server . connect ( transport ) ;
51+ const transport = new StreamableHTTPServerTransport ( ) ;
52+ await server . connect ( transport as any ) ;
5653 await transport . handleRequest ( req , res , req . body ) ;
5754 } ;
5855
You can’t perform that action at this time.
0 commit comments