@@ -206,12 +206,12 @@ const getServer = () => {
206206 } ,
207207 ] ,
208208 } ;
209- } else if ( result . action === 'reject ' ) {
209+ } else if ( result . action === 'decline ' ) {
210210 return {
211211 content : [
212212 {
213213 type : 'text' ,
214- text : `No information was collected. User rejected ${ infoType } information request.` ,
214+ text : `No information was collected. User declined ${ infoType } information request.` ,
215215 } ,
216216 ] ,
217217 } ;
@@ -433,7 +433,7 @@ if (useOAuth) {
433433 const mcpServerUrl = new URL ( `http://localhost:${ MCP_PORT } /mcp` ) ;
434434 const authServerUrl = new URL ( `http://localhost:${ AUTH_PORT } ` ) ;
435435
436- const oauthMetadata : OAuthMetadata = setupAuthServer ( { authServerUrl, mcpServerUrl, strictResource : strictOAuth } ) ;
436+ const oauthMetadata : OAuthMetadata = setupAuthServer ( { authServerUrl, mcpServerUrl, strictResource : strictOAuth } ) ;
437437
438438 const tokenVerifier = {
439439 verifyAccessToken : async ( token : string ) => {
@@ -499,7 +499,12 @@ const transports: { [sessionId: string]: StreamableHTTPServerTransport } = {};
499499// MCP POST endpoint with optional auth
500500const mcpPostHandler = async ( req : Request , res : Response ) => {
501501 const sessionId = req . headers [ 'mcp-session-id' ] as string | undefined ;
502- console . log ( sessionId ? `Received MCP request for session: ${ sessionId } ` : 'Received MCP request:' , req . body ) ;
502+ if ( sessionId ) {
503+ console . log ( `Received MCP request for session: ${ sessionId } ` ) ;
504+ } else {
505+ console . log ( 'Request body:' , req . body ) ;
506+ }
507+
503508 if ( useOAuth && req . auth ) {
504509 console . log ( 'Authenticated user:' , req . auth ) ;
505510 }
0 commit comments