Skip to content

Reading OAuth tokens + Token request stack trace: Error #212

@pallyndr

Description

@pallyndr

Version 0.1.36

Having this error stack I cannot explain.
Files look OK in the .mcp-auth/0.1.36 directory:

allyndreep@MYMAC-PRD-25420 mcp-remote-0.1.36 % ls -ltr
total 472
-rw------- 1 allyndreep staff 43 Jan 14 09:26 63b99e092de78f85903c178598cd1fe4_code_verifier.txt
-rw------- 1 allyndreep staff 5647 Jan 14 10:28 63b99e092de78f85903c178598cd1fe4_tokens.json
-rw-r--r-- 1 allyndreep staff 167207 Jan 14 10:49 63b99e092de78f85903c178598cd1fe4_debug.log

[2026-01-14T08:26:10.047Z][6801] Initializing auth coordination on-demand [2026-01-14T08:26:10.047Z][6801] Initializing auth coordination on-demand {"serverUrlHash":"63b99e092de78f85903c178598cd1fe4","callbackPort":28864} [2026-01-14T08:26:10.048Z][6801] Coordinating authentication {"serverUrlHash":"63b99e092de78f85903c178598cd1fe4","callbackPort":28864} [2026-01-14T08:26:10.048Z][6801] Lockfile check result {"found":false,"lockData":null} [2026-01-14T08:26:10.049Z][6801] Setting up OAuth callback server {"port":28864} [2026-01-14T08:26:10.050Z][6801] OAuth callback server running at http://127.0.0.1:28864 [2026-01-14T08:26:10.050Z][6801] OAuth callback server running {"port":28864} [2026-01-14T08:26:10.051Z][6801] Creating lockfile for server 63b99e092de78f85903c178598cd1fe4 with process 6801 on port 28864 [2026-01-14T08:26:10.052Z][6801] Auth coordination complete, returning primary instance handlers [2026-01-14T08:26:10.052Z][6801] Auth coordination completed {"skipBrowserAuth":false} [2026-01-14T08:26:10.053Z][6801] Authentication required. Waiting for authorization... [2026-01-14T08:26:10.053Z][6801] Waiting for auth code from callback server [2026-01-14T08:26:10.992Z][6801] Auth code received, resolving promise [2026-01-14T08:26:10.999Z][6801] Received auth code from callback server [2026-01-14T08:26:11.001Z][6801] Completing authorization... [2026-01-14T08:26:11.261Z][6801] Reading client info [2026-01-14T08:26:11.262Z][6801] Returning static client info [2026-01-14T08:26:11.262Z][6801] Reading code verifier [2026-01-14T08:26:11.265Z][6801] Code verifier found: true [2026-01-14T08:26:13.742Z][6801] Saving tokens {"hasAccessToken":true,"hasRefreshToken":true,"expiresIn":"3600 seconds","expiresInValue":3600} [2026-01-14T08:26:13.751Z][6801] Authorization completed successfully [2026-01-14T08:26:13.751Z][6801] Recursively reconnecting for reason: authentication-needed [2026-01-14T08:26:13.752Z][6801] Recursively reconnecting after auth {"recursionReasons":["authentication-needed"]} [2026-01-14T08:26:13.753Z][6801] [6801] Connecting to remote server: https://screening-ai-services.npe.moodys.cloud/mcp [2026-01-14T08:26:13.754Z][6801] Using transport strategy: http-only [2026-01-14T08:26:13.754Z][6801] Attempting to connect to remote server {"sseTransport":false} [2026-01-14T08:26:13.755Z][6801] Starting transport directly [2026-01-14T08:26:13.755Z][6801] Creating test transport for HTTP-only connection test [2026-01-14T08:26:13.757Z][6801] Reading OAuth tokens [2026-01-14T08:26:13.757Z][6801] Token request stack trace: Error at NodeOAuthClientProvider.tokens (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:19688:44) at StreamableHTTPClientTransport._commonHeaders (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:18268:47) at StreamableHTTPClientTransport.send (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:18454:34) at file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:16250:23 at new Promise (<anonymous>) at Client.request (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:16183:12) at Client.connect (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:16563:33) at async connectToRemoteServer (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:19139:9) at async runProxy (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/proxy.js:157:29) [2026-01-14T08:26:13.759Z][6801] Token result: {"found":true,"hasAccessToken":true,"hasRefreshToken":true,"expiresIn":"3600 seconds","isExpired":false,"expiresInValue":3600} [2026-01-14T08:26:16.991Z][6801] Reading OAuth tokens [2026-01-14T08:26:16.992Z][6801] Token request stack trace: Error at NodeOAuthClientProvider.tokens (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:19688:44) at StreamableHTTPClientTransport._commonHeaders (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:18268:47) at StreamableHTTPClientTransport.send (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:18454:34) at Client.notification (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:16290:27) at Client.connect (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:16583:18) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async connectToRemoteServer (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/chunk-F76MHFRJ.js:19139:9) at async runProxy (file:///Users/allyndreep/.npm/_npx/1a3c4333f3a90708/node_modules/mcp-remote/dist/proxy.js:157:29) [2026-01-14T08:26:16.994Z][6801] Token result: {"found":true,"hasAccessToken":true,"hasRefreshToken":true,"expiresIn":"3600 seconds","isExpired":false,"expiresInValue":3600} [2026-01-14T08:26:17.990Z][6801] Reading OAuth tokens [2026-01-14T08:26:17.991Z][6801] Token request stack trace: Error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions