these 3 derivations will be built: /nix/store/2j1lsayy9llxwvz86kh1qa6ybndg56fx-source.drv /nix/store/8jb19sf6pv6217mjgs4n5zxx1xmrcd70-mcp-remote-0.17.1.drv /nix/store/cfb0glw6s1w55d7vf9grx2dbc2jr74nd-check-mcp-remote.drv building '/nix/store/zv75iwd063g953pxh4hwwfngk3px785a-source.drv' on 'grpc://farm.numtide.com:50051?connect-timeout=23&restart-grace=900&system=aarch64-darwin&token-file=/run/nix-farm-client/farm-token' building '/nix/store/zv75iwd063g953pxh4hwwfngk3px785a-source.drv' on farm.numtide.com:50051 source> mac02: building zv75iwd063g953pxh4hwwfngk3px785a-source.drv source> source> trying https://github.com/punkpeye/mcp-remote/archive/refs/tags/v0.17.1.tar.gz source> % Total % Received % Xferd Average Speed Time Time Time Current source> Dload Upload Total Spent Left Speed source> source> 0 0 0 0 0 0 0 0 0 source> 0 0 0 0 0 0 0 0 0 source> 0 0 0 0 0 0 0 0 0 source> source> 0 0 0 0 0 0 0 0 0 source> 100 324.1k 0 324.1k 0 0 502.4k 0 0 source> 100 324.1k 0 324.1k 0 0 502.4k 0 0 source> 100 324.1k 0 324.1k 0 0 502.4k 0 0 source> unpacking source archive /nix/var/nix/builds/nix-81463-4265371363/download.tar.gz building '/nix/store/8jb19sf6pv6217mjgs4n5zxx1xmrcd70-mcp-remote-0.17.1.drv' on 'grpc://farm.numtide.com:50051?connect-timeout=21&restart-grace=900&system=aarch64-darwin&token-file=/run/nix-farm-client/farm-token' building '/nix/store/8jb19sf6pv6217mjgs4n5zxx1xmrcd70-mcp-remote-0.17.1.drv' on farm.numtide.com:50051 mcp-remote-0.17.1> mac02: building 8jb19sf6pv6217mjgs4n5zxx1xmrcd70-mcp-remote-0.17.1.drv mcp-remote-0.17.1> Using versionCheckHook mcp-remote-0.17.1> Running phase: unpackPhase mcp-remote-0.17.1> unpacking source archive /nix/store/q9i645fx163ncs5sijbmbkwngdssis43-source mcp-remote-0.17.1> source root is source mcp-remote-0.17.1> Running phase: patchPhase mcp-remote-0.17.1> Running phase: updateAutotoolsGnuConfigScriptsPhase mcp-remote-0.17.1> Running phase: configurePhase mcp-remote-0.17.1> no configure script, doing nothing mcp-remote-0.17.1> Executing pnpmConfigHook mcp-remote-0.17.1> ~ /nix/var/nix/builds/nix-84354-1207446590/source mcp-remote-0.17.1> /nix/var/nix/builds/nix-84354-1207446590/source mcp-remote-0.17.1> Found 'pnpm' with version '10.34.7' mcp-remote-0.17.1> Using fetcherVersion: 4 mcp-remote-0.17.1> Configuring pnpm store mcp-remote-0.17.1> Installing dependencies mcp-remote-0.17.1> Final pnpm config: mcp-remote-0.17.1> @jsr:registry=https://npm.jsr.io/ mcp-remote-0.17.1> arch=arm64 mcp-remote-0.17.1> globalconfig=/nix/var/nix/builds/nix-84354-1207446590/.home/Library/Preferences/pnpm/rc mcp-remote-0.17.1> manage-package-manager-versions=false mcp-remote-0.17.1> npm-globalconfig=/nix/store/19fin0sr3bmy5glsz6znxna991sl3pl6-nodejs-slim-24.22.2/etc/npmrc mcp-remote-0.17.1> package-import-method=clone-or-copy mcp-remote-0.17.1> platform=darwin mcp-remote-0.17.1> registry=https://registry.npmjs.org/ mcp-remote-0.17.1> reporter=append-only mcp-remote-0.17.1> store-dir=/nix/var/nix/builds/nix-84354-1207446590/tmp.l8OUbb79Kh mcp-remote-0.17.1> user-agent=pnpm/10.34.7 npm/? node/v24.22.2 darwin arm64 mcp-remote-0.17.1> mcp-remote-0.17.1> Lockfile is up to date, resolution step is skipped mcp-remote-0.17.1> Progress: resolved 1, reused 0, downloaded 0, added 0 mcp-remote-0.17.1> Packages: +503 mcp-remote-0.17.1> mcp-remote-0.17.1> Progress: resolved 503, reused 503, downloaded 0, added 214 mcp-remote-0.17.1> Progress: resolved 503, reused 503, downloaded 0, added 502 mcp-remote-0.17.1> Progress: resolved 503, reused 503, downloaded 0, added 503, done mcp-remote-0.17.1> mcp-remote-0.17.1> dependencies: mcp-remote-0.17.1> + express 4.21.2 mcp-remote-0.17.1> + open 10.1.0 mcp-remote-0.17.1> + strict-url-sanitise 0.0.1 mcp-remote-0.17.1> + undici 7.12.0 mcp-remote-0.17.1> mcp-remote-0.17.1> devDependencies: mcp-remote-0.17.1> + @modelcontextprotocol/client 2.4.0 mcp-remote-0.17.1> + @modelcontextprotocol/core 2.4.0 mcp-remote-0.17.1> + @modelcontextprotocol/server 2.4.0 mcp-remote-0.17.1> + @types/express 5.0.0 mcp-remote-0.17.1> + @types/node 22.13.10 mcp-remote-0.17.1> + husky 9.1.7 mcp-remote-0.17.1> + knip 6.32.3 mcp-remote-0.17.1> + oxfmt 0.65.0 mcp-remote-0.17.1> + oxlint 1.80.0 mcp-remote-0.17.1> + semantic-release 25.0.9 mcp-remote-0.17.1> + tsup 8.4.0 mcp-remote-0.17.1> + tsx 4.19.3 mcp-remote-0.17.1> + typescript 5.8.2 mcp-remote-0.17.1> + vitest 3.2.3 mcp-remote-0.17.1> + zod 4.6.7 mcp-remote-0.17.1> mcp-remote-0.17.1> Done in 2.7s using pnpm v10.34.7 mcp-remote-0.17.1> Patching scripts mcp-remote-0.17.1> patching script interpreter paths in node_modules/@modelcontextprotocol node_modules/@types node_modules/express node_modules/husky node_modules/knip node_modules/open node_modules/oxfmt node_modules/oxlint node_modules/semantic-release node_modules/strict-url-sanitise node_modules/tsup node_modules/tsx node_modules/typescript node_modules/undici node_modules/vitest node_modules/zod node_modules/.bin node_modules/.modules.yaml node_modules/.pnpm node_modules/.pnpm-workspace-state-v1.json mcp-remote-0.17.1> node_modules/.bin/tsup: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.bin/tsserver: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.bin/oxfmt: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.bin/vitest: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.bin/knip: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.bin/tsx: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.bin/tsc: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.bin/oxlint: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.bin/semantic-release: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.bin/tsup-node: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.bin/husky: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.bin/knip-bun: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/tsup@8.4.0_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_typescript@5.8.2_yaml@2.9.0/node_modules/tsup/dist/cli-default.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/tsup@8.4.0_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_typescript@5.8.2_yaml@2.9.0/node_modules/tsup/dist/cli-node.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/tsup@8.4.0_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_typescript@5.8.2_yaml@2.9.0/node_modules/tsup/node_modules/.bin/sucrase: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/tsup@8.4.0_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_typescript@5.8.2_yaml@2.9.0/node_modules/tsup/node_modules/.bin/tsserver: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/tsup@8.4.0_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_typescript@5.8.2_yaml@2.9.0/node_modules/tsup/node_modules/.bin/sucrase-node: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/tsup@8.4.0_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_typescript@5.8.2_yaml@2.9.0/node_modules/tsup/node_modules/.bin/tsc: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/tsup@8.4.0_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_typescript@5.8.2_yaml@2.9.0/node_modules/tsup/node_modules/.bin/rollup: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/tsup@8.4.0_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_typescript@5.8.2_yaml@2.9.0/node_modules/tsup/node_modules/.bin/esbuild: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/tsup@8.4.0_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_typescript@5.8.2_yaml@2.9.0/node_modules/tsup/node_modules/.bin/tree-kill: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/bottleneck@2.19.5/node_modules/bottleneck/scripts/build.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/bash" mcp-remote-0.17.1> node_modules/.pnpm/bottleneck@2.19.5/node_modules/bottleneck/scripts/test_all.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/bash" mcp-remote-0.17.1> node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/node_modules/.bin/vite: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/node_modules/.bin/vite-node: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/node_modules/.bin/why-is-node-running: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/vitest.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/traverse@0.6.8/node_modules/traverse/examples/stringify.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_yaml@2.9.0/node_modules/postcss-load-config/node_modules/.bin/jiti: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_yaml@2.9.0/node_modules/postcss-load-config/node_modules/.bin/tsx: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.4_tsx@4.19.3_yaml@2.9.0/node_modules/postcss-load-config/node_modules/.bin/yaml: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/formatly@0.3.0/node_modules/formatly/bin/index.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/node_modules/.bin/node-which: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/why-is-node-running@2.3.0/node_modules/why-is-node-running/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/sucrase@3.35.0/node_modules/sucrase/bin/sucrase: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/sucrase@3.35.0/node_modules/sucrase/bin/sucrase-node: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/sucrase@3.35.0/node_modules/sucrase/node_modules/.bin/glob: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/uglify-js@3.19.3/node_modules/uglify-js/bin/uglifyjs: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/semver@7.8.5/node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/marked-terminal@7.3.0_marked@15.0.12/node_modules/marked-terminal/node_modules/.bin/highlight: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/marked-terminal@7.3.0_marked@15.0.12/node_modules/marked-terminal/node_modules/.bin/marked: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/is-docker: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/is-inside-container: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/jiti: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/sucrase: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/sucrase-node: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/nanoid: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/highlight: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/uglifyjs: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/node-which: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/marked: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/js-yaml: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/conventional-changelog-writer: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/semver: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/vite: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/handlebars: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/rollup: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/conventional-commits-parser: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/vite-node: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/yaml: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/formatly: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/mime: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/glob: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/why-is-node-running: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/esbuild: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/npx: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/rc: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/npm: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/node_modules/.bin/tree-kill: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/nanoid@3.3.11/node_modules/nanoid/bin/nanoid.cjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/bundle-require@5.1.0_esbuild@0.25.1/node_modules/bundle-require/node_modules/.bin/esbuild: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/lib/jiti-cli.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/rc@1.2.8/node_modules/rc/cli.js: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/marked@15.0.12/node_modules/marked/bin/marked.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+release-notes-generator@14.1.1_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/release-notes-generator/node_modules/.bin/conventional-changelog-writer: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+release-notes-generator@14.1.1_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/release-notes-generator/node_modules/.bin/conventional-commits-parser: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+release-notes-generator@14.1.1_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/release-notes-generator/node_modules/.bin/semantic-release: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/cli-highlight@2.1.11/node_modules/cli-highlight/bin/highlight: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/rollup@4.35.0/node_modules/rollup/dist/bin/rollup: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/@vitest+mocker@3.2.3_vite@6.3.5_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0_/node_modules/@vitest/mocker/node_modules/.bin/vite: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/bin/js-yaml.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/semantic-release@25.0.9_typescript@5.8.2/node_modules/semantic-release/bin/semantic-release.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/semantic-release@25.0.9_typescript@5.8.2/node_modules/semantic-release/node_modules/.bin/marked: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/semantic-release@25.0.9_typescript@5.8.2/node_modules/semantic-release/node_modules/.bin/semver: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/is-wsl@3.1.0/node_modules/is-wsl/node_modules/.bin/is-inside-container: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/bin/npm-prefix.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/bin/npm-cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/bin/npx-cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/bin/npx: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/bash" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/bin/npm: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/bash" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/bin/node-gyp-bin/node-gyp: interpreter directive changed from "#!/usr/bin/env sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/.bin/node-which: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/.bin/pacote: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/.bin/semver: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/.bin/installed-package-contents: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/.bin/node-gyp: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/.bin/arborist: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/.bin/cssesc: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/.bin/qrcode-terminal: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/.bin/nopt: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/pacote/bin/index.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp: interpreter directive changed from "#!/usr/bin/env sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/@npmcli/installed-package-contents/bin/index.js: interpreter directive changed from "#! /usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/@npmcli/arborist/bin/index.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/semver/bin/semver.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/3j0hvszcqcb2vwm5dz0xxfb06cx49k86-python3-3.14.10/bin/python3" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/3j0hvszcqcb2vwm5dz0xxfb06cx49k86-python3-3.14.10/bin/python3" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/3j0hvszcqcb2vwm5dz0xxfb06cx49k86-python3-3.14.10/bin/python3" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/3j0hvszcqcb2vwm5dz0xxfb06cx49k86-python3-3.14.10/bin/python3" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/3j0hvszcqcb2vwm5dz0xxfb06cx49k86-python3-3.14.10/bin/python3" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/3j0hvszcqcb2vwm5dz0xxfb06cx49k86-python3-3.14.10/bin/python3" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/3j0hvszcqcb2vwm5dz0xxfb06cx49k86-python3-3.14.10/bin/python3" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/3j0hvszcqcb2vwm5dz0xxfb06cx49k86-python3-3.14.10/bin/python3" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/3j0hvszcqcb2vwm5dz0xxfb06cx49k86-python3-3.14.10/bin/python3" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/3j0hvszcqcb2vwm5dz0xxfb06cx49k86-python3-3.14.10/bin/python3" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/test_gyp.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/3j0hvszcqcb2vwm5dz0xxfb06cx49k86-python3-3.14.10/bin/python3" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/node-gyp/gyp/gyp: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/cssesc/bin/cssesc: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/qrcode-terminal/bin/qrcode-terminal.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/which/bin/which.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/node_modules/nopt/bin/nopt.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/npm@11.19.0/node_modules/npm/lib/utils/completion.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/bash" mcp-remote-0.17.1> node_modules/.pnpm/knip@6.32.3/node_modules/knip/bin/knip.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/knip@6.32.3/node_modules/knip/node_modules/.bin/jiti: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/knip@6.32.3/node_modules/knip/node_modules/.bin/yaml: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/knip@6.32.3/node_modules/knip/node_modules/.bin/formatly: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+github@12.0.9_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/github/node_modules/.bin/semantic-release: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+github@12.0.9_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/github/node_modules/.bin/mime: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/tree-kill@1.2.2/node_modules/tree-kill/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/bin/tsserver: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/typescript@5.8.2/node_modules/typescript/bin/tsc: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/is-docker@3.0.0/node_modules/is-docker/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/mime@1.6.0/node_modules/mime/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/mime@1.6.0/node_modules/mime/src/build.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/normalize-package-data@8.0.0/node_modules/normalize-package-data/node_modules/.bin/semver: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/husky@9.1.7/node_modules/husky/bin.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/oxfmt@0.65.0/node_modules/oxfmt/bin/oxfmt: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/glob@10.4.5/node_modules/glob/dist/esm/bin.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/vite-node@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vite-node/node_modules/.bin/vite: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/vite-node@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vite-node/vite-node.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/open@10.1.0/node_modules/open/node_modules/.bin/is-inside-container: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/open@10.1.0/node_modules/open/xdg-open: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/normalize-package-data@6.0.2/node_modules/normalize-package-data/node_modules/.bin/semver: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/which@2.0.2/node_modules/which/bin/node-which: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/tsx@4.19.3/node_modules/tsx/dist/cli.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/tsx@4.19.3/node_modules/tsx/node_modules/.bin/esbuild: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/mime@4.1.0/node_modules/mime/bin/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/mime@4.1.0/node_modules/mime/src/mime_cli.ts: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/esbuild@0.25.1/node_modules/esbuild/bin/esbuild: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/node_modules/.bin/is-docker: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/is-inside-container@1.0.0/node_modules/is-inside-container/cli.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/conventional-commits-parser@6.4.0/node_modules/conventional-commits-parser/dist/cli/index.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/handlebars@4.7.9/node_modules/handlebars/bin/handlebars: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/handlebars@4.7.9/node_modules/handlebars/node_modules/.bin/uglifyjs: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/vite@6.3.5_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vite/bin/vite.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/vite@6.3.5_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vite/node_modules/.bin/jiti: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/vite@6.3.5_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vite/node_modules/.bin/tsx: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/vite@6.3.5_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vite/node_modules/.bin/rollup: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/vite@6.3.5_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vite/node_modules/.bin/yaml: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/vite@6.3.5_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vite/node_modules/.bin/esbuild: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+npm@13.1.5_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/npm/node_modules/.bin/semver: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+npm@13.1.5_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/npm/node_modules/.bin/semantic-release: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+npm@13.1.5_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/npm/node_modules/.bin/npx: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+npm@13.1.5_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/npm/node_modules/.bin/rc: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+npm@13.1.5_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/npm/node_modules/.bin/npm: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+commit-analyzer@13.0.1_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/commit-analyzer/node_modules/.bin/conventional-changelog-writer: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+commit-analyzer@13.0.1_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/commit-analyzer/node_modules/.bin/conventional-commits-parser: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/@semantic-release+commit-analyzer@13.0.1_semantic-release@25.0.9_typescript@5.8.2_/node_modules/@semantic-release/commit-analyzer/node_modules/.bin/semantic-release: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/conventional-changelog-writer@8.4.0/node_modules/conventional-changelog-writer/dist/cli/index.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/conventional-changelog-writer@8.4.0/node_modules/conventional-changelog-writer/node_modules/.bin/semver: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/conventional-changelog-writer@8.4.0/node_modules/conventional-changelog-writer/node_modules/.bin/handlebars: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/postcss@8.5.4/node_modules/postcss/node_modules/.bin/nanoid: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/send@0.19.0/node_modules/send/node_modules/.bin/mime: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/cosmiconfig@9.0.2_typescript@5.8.2/node_modules/cosmiconfig/node_modules/.bin/tsserver: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/cosmiconfig@9.0.2_typescript@5.8.2/node_modules/cosmiconfig/node_modules/.bin/tsc: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/cosmiconfig@9.0.2_typescript@5.8.2/node_modules/cosmiconfig/node_modules/.bin/js-yaml: interpreter directive changed from "#!/bin/sh" to "/nix/store/0xvlm2gh32710pjdswinpjqyahpfifiq-bash-5.3p20/bin/sh" mcp-remote-0.17.1> node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/bin.mjs: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> node_modules/.pnpm/oxlint@1.80.0/node_modules/oxlint/bin/oxlint: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> Finished pnpmConfigHook mcp-remote-0.17.1> Running phase: buildPhase mcp-remote-0.17.1> Executing npmBuildHook mcp-remote-0.17.1> npm warn Unknown env config "platform". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. mcp-remote-0.17.1> npm warn Unknown env config "arch". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. mcp-remote-0.17.1> npm warn Unknown env config "platform". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. mcp-remote-0.17.1> npm warn Unknown env config "arch". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. mcp-remote-0.17.1> mcp-remote-0.17.1> > mcp-remote@0.17.1 build mcp-remote-0.17.1> > tsup mcp-remote-0.17.1> mcp-remote-0.17.1> CLI Building entry: src/client.ts, src/proxy.ts mcp-remote-0.17.1> CLI Using tsconfig: tsconfig.json mcp-remote-0.17.1> CLI tsup v8.4.0 mcp-remote-0.17.1> CLI Using tsup config: /nix/var/nix/builds/nix-84354-1207446590/source/package.json mcp-remote-0.17.1> CLI Target: es2022 mcp-remote-0.17.1> CLI Cleaning output folder mcp-remote-0.17.1> ESM Build start mcp-remote-0.17.1> DTS Build start mcp-remote-0.17.1> ESM dist/client.js 6.59 KB mcp-remote-0.17.1> ESM dist/chunk-MLKGABMK.js 191.00 B mcp-remote-0.17.1> ESM dist/webapi-WW3GGD26.js 122.45 KB mcp-remote-0.17.1> ESM dist/proxy.js 534.17 KB mcp-remote-0.17.1> ESM dist/chunk-RSTQQBUC.js 1.62 MB mcp-remote-0.17.1> ESM ⚡️ Build success in 318ms mcp-remote-0.17.1> DTS ⚡️ Build success in 4431ms mcp-remote-0.17.1> DTS dist/client.d.ts 20.00 B mcp-remote-0.17.1> DTS dist/proxy.d.ts 20.00 B mcp-remote-0.17.1> \Finished npmBuildHook mcp-remote-0.17.1> Running phase: checkPhase mcp-remote-0.17.1> mcp-remote-0.17.1> > mcp-remote@0.17.1 test /nix/var/nix/builds/nix-84354-1207446590/source mcp-remote-0.17.1> > vitest run mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> RUN v3.2.3 /nix/var/nix/builds/nix-84354-1207446590/source mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts [queued] mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 0 passed (23) mcp-remote-0.17.1> Tests 0 passed (0) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 239ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/device-authorization.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/mcp-auth-config.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts [queued] mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 0 passed (23) mcp-remote-0.17.1> Tests 0 passed (0) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 364ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/device-authorization.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/mcp-auth-config.test.ts 0/19 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts [queued] mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 0 passed (23) mcp-remote-0.17.1> Tests 0 passed (19) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 749ms mcp-remote-0.17.1> ✓ src/lib/mcp-auth-config.test.ts (19 tests) 88ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/device-authorization.test.ts 0/24 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 0/9 mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 0/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 1/10 mcp-remote-0.17.1> ❯ src/lib/mcp-auth-config.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 0/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts [queued] mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 1 passed (23) mcp-remote-0.17.1> Tests 20 passed (220) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 989ms mcp-remote-0.17.1> stderr | src/lib/node-oauth-client-provider.test.ts > NodeOAuthClientProvider - OAuth Scope Handling > authorization URL > lets the SDK clear and re-register a cached dynamic client once mcp-remote-0.17.1> [mcp-sdk] SEP-2352: stored OAuth credential has no 'issuer' stamp (pre-upgrade storage or provider not round-tripping the value). SEP-2352 isolation is inactive for this read; ensure your provider round-trips the issuer field. mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/node-oauth-client-provider.test.ts > NodeOAuthClientProvider - OAuth Scope Handling > authorization URL > lets the SDK clear and re-register a cached dynamic client once mcp-remote-0.17.1> [mcp-sdk] OAuth "invalid_client" — invalidating the stored client credentials and tokens and retrying authorization. Cause: "Cached OAuth client registration is no longer valid" mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/device-authorization.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 9/9 mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 1/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 10/10 mcp-remote-0.17.1> ❯ src/lib/mcp-auth-config.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 10/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts [queued] mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 4 passed (23) mcp-remote-0.17.1> Tests 73 passed (220) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.09s mcp-remote-0.17.1> ✓ src/lib/device-authorization.test.ts (24 tests) 53ms mcp-remote-0.17.1> ✓ src/lib/issuer-metadata-validation.test.ts (10 tests) 147ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/device-authorization.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 9/9 mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 1/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 10/10 mcp-remote-0.17.1> ❯ src/lib/mcp-auth-config.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 10/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts [queued] mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 4 passed (23) mcp-remote-0.17.1> Tests 73 passed (220) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.09s mcp-remote-0.17.1> stderr | src/lib/node-oauth-client-provider.test.ts > NodeOAuthClientProvider - OAuth Scope Handling > authorization URL > opens the browser for the new registration after the stale one is cleared mcp-remote-0.17.1> [mcp-sdk] SEP-2352: stored OAuth credential has no 'issuer' stamp (pre-upgrade storage or provider not round-tripping the value). SEP-2352 isolation is inactive for this read; ensure your provider round-trips the issuer field. mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/node-oauth-client-provider.test.ts > NodeOAuthClientProvider - OAuth Scope Handling > authorization URL > opens the browser for the new registration after the stale one is cleared mcp-remote-0.17.1> [mcp-sdk] OAuth "invalid_client" — invalidating the stored client credentials and tokens and retrying authorization. Cause: "Cached OAuth client registration is no longer valid" mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/device-authorization.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 9/9 mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 1/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 10/10 mcp-remote-0.17.1> ❯ src/lib/mcp-auth-config.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 10/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts [queued] mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 4 passed (23) mcp-remote-0.17.1> Tests 73 passed (220) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.09s mcp-remote-0.17.1> ✓ src/lib/discovery-state.test.ts (9 tests) 146ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/device-authorization.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 9/9 mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 1/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 10/10 mcp-remote-0.17.1> ❯ src/lib/mcp-auth-config.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 10/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts [queued] mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 4 passed (23) mcp-remote-0.17.1> Tests 73 passed (220) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.09s mcp-remote-0.17.1> stderr | src/lib/node-oauth-client-provider.test.ts > NodeOAuthClientProvider - OAuth Scope Handling > authorization URL > reports a client the token endpoint refuses as refused, not as a changed authorization server mcp-remote-0.17.1> [mcp-sdk] OAuth "invalid_client" — invalidating the stored client credentials and tokens and retrying authorization. Cause: "invalid_client" mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/device-authorization.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 9/9 mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 1/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 10/10 mcp-remote-0.17.1> ❯ src/lib/mcp-auth-config.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 10/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts [queued] mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 4 passed (23) mcp-remote-0.17.1> Tests 73 passed (220) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.09s mcp-remote-0.17.1> ✓ src/lib/protected-resource-metadata.test.ts (24 tests) 21ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts 0/18 mcp-remote-0.17.1> ❯ src/lib/device-authorization.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 9/9 mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 13/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 10/10 mcp-remote-0.17.1> ❯ src/lib/mcp-auth-config.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 53/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 0/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 5 passed (23) mcp-remote-0.17.1> Tests 152 passed (520) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.19s mcp-remote-0.17.1> stderr | src/lib/explicit-client-credentials.test.ts > Explicit client credentials with an MCP server behind enterprise discovery redirects > reports a token endpoint rejection without discovery or browser fallback mcp-remote-0.17.1> [mcp-sdk] OAuth "invalid_client" — invalidating the stored client credentials and tokens and retrying authorization. Cause: "Client credentials rejected" mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts 0/18 mcp-remote-0.17.1> ❯ src/lib/device-authorization.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 9/9 mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 13/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 10/10 mcp-remote-0.17.1> ❯ src/lib/mcp-auth-config.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 53/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 0/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 5 passed (23) mcp-remote-0.17.1> Tests 152 passed (520) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.19s mcp-remote-0.17.1> ✓ src/lib/explicit-client-credentials.test.ts (17 tests) 395ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts 18/18 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 9/9 mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 17/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 10/10 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 87/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 0/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 7 passed (23) mcp-remote-0.17.1> Tests 208 passed (520) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.29s mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse basic server URL mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse server URL with callback port mcp-remote-0.17.1> [86534] Using specified callback port: 3000 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Default to the standard callback path when --callback-path is absent mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse server URL with callback path mcp-remote-0.17.1> [86534] Using callback path: /custom-callback mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse a client metadata document URL mcp-remote-0.17.1> [86534] Using client metadata document: https://example.com/.well-known/oauth-client-metadata mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 31608 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Ignore a client metadata URL an authorization server would reject mcp-remote-0.17.1> [86534] Warning: Ignoring invalid client metadata URL: http://example.com/client-metadata. It must be an HTTPS URL with a path. mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Ignore a client metadata URL an authorization server would reject mcp-remote-0.17.1> [86534] Warning: Ignoring invalid client metadata URL: https://example.com/. It must be an HTTPS URL with a path. mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Ignore a client metadata URL an authorization server would reject mcp-remote-0.17.1> [86534] Warning: Ignoring invalid client metadata URL: https://example.com. It must be an HTTPS URL with a path. mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Ignore a client metadata URL an authorization server would reject mcp-remote-0.17.1> [86534] Warning: Ignoring invalid client metadata URL: not-a-url. It must be an HTTPS URL with a path. mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Register dynamically when no client metadata URL is given mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Ask for the ID token to be sent as the bearer credential mcp-remote-0.17.1> [86534] Using the ID token as the bearer credential mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Send the access token when nothing asks otherwise mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Ask to sign in without a browser on this machine mcp-remote-0.17.1> [86534] Using the OAuth device grant; no browser will be opened on this machine mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Use the browser flow when nothing asks otherwise mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Ask to sign in as the software itself, with no user at all mcp-remote-0.17.1> [86534] Using the OAuth client_credentials grant; no browser will be opened and no user will be asked mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Use an explicit token endpoint for client credentials without discovery mcp-remote-0.17.1> [86534] Using the OAuth client_credentials grant; no browser will be opened and no user will be asked mcp-remote-0.17.1> [86534] Using an explicit OAuth token endpoint at https://auth.example.com mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 23961 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Refuse to send client credentials to an insecure remote token endpoint mcp-remote-0.17.1> [86534] Using the OAuth client_credentials grant; no browser will be opened and no user will be asked mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Take a client secret from the environment rather than the command line mcp-remote-0.17.1> [86534] Replacing ${MCP_TEST_SECRET} with environment value in static OAuth client information mcp-remote-0.17.1> [86534] Using static OAuth client information from string mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Keep credentials for a metadata document client apart from registered ones mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Keep credentials for a metadata document client apart from registered ones mcp-remote-0.17.1> [86534] Using client metadata document: https://client.example.com/metadata mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 14931 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Ignore a callback path that is not rooted mcp-remote-0.17.1> [86534] Warning: Ignoring invalid callback path: custom-callback. It must start with '/'. mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Ignore a callback path that shadows the long-poll endpoint mcp-remote-0.17.1> [86534] Warning: Ignoring reserved callback path: /wait-for-auth. It is used to coordinate concurrent instances. mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse localhost URL with HTTP protocol mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 23717 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse 127.0.0.1 URL with HTTP protocol mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 16626 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse single custom header mcp-remote-0.17.1> [86534] Using custom headers: foo mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 28726 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse multiple custom headers mcp-remote-0.17.1> [86534] Using custom headers: Authorization, Content-Type mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 6065 mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts 18/18 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 9/9 mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 17/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 10/10 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 87/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 0/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 7 passed (23) mcp-remote-0.17.1> Tests 208 passed (520) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.29s mcp-remote-0.17.1> ✓ src/lib/connect-to-remote-server.test.ts (18 tests) 100ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts 18/18 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 9/9 mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 17/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 10/10 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 87/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 0/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 7 passed (23) mcp-remote-0.17.1> Tests 208 passed (520) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.29s mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Isolate credentials by the expanded values of custom headers mcp-remote-0.17.1> [86534] Using custom headers: X-Tenant mcp-remote-0.17.1> [86534] Replacing ${MCP_TEST_TENANT} with environment value in header 'X-Tenant' mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 31349 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Isolate credentials by the expanded values of custom headers mcp-remote-0.17.1> [86534] Using custom headers: X-Tenant mcp-remote-0.17.1> [86534] Replacing ${MCP_TEST_TENANT} with environment value in header 'X-Tenant' mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 21616 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Isolate credentials by the expanded values of custom headers mcp-remote-0.17.1> [86534] Using custom headers: X-Tenant mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 31349 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Read headers from a file mcp-remote-0.17.1> [86534] Loaded 2 header(s) from /nix/var/nix/builds/nix-84354-1207446590/mcp-remote-headers-S6bdB5/headers.txt mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Read headers from a file mcp-remote-0.17.1> [86534] Using custom headers: Authorization, X-Tenant mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 46953 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Ignore invalid header format mcp-remote-0.17.1> [86534] Warning: ignoring a --header argument that is not in Name:Value form mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Handle --allow-http flag for non-localhost URLs mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 12806 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Accept HTTPS URLs without --allow-http flag mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Handle --allow-http with other arguments mcp-remote-0.17.1> [86534] Using custom headers: Authorization mcp-remote-0.17.1> [86534] Using specified callback port: 4000 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Use default transport strategy when not specified mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse transport strategy sse-only mcp-remote-0.17.1> [86534] Using transport strategy: sse-only mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse transport strategy http-only mcp-remote-0.17.1> [86534] Using transport strategy: http-only mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse transport strategy sse-first mcp-remote-0.17.1> [86534] Using transport strategy: sse-first mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse transport strategy http-first mcp-remote-0.17.1> [86534] Using transport strategy: http-first mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Ignore invalid transport strategy and use default mcp-remote-0.17.1> [86534] Warning: Ignoring invalid transport strategy: invalid-strategy. Valid values are: sse-only, http-only, sse-first, http-first mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Use default host when not specified mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Default to the IPv4 loopback literal on Windows mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: An explicit --host still wins on Windows mcp-remote-0.17.1> [86534] Using callback hostname: myserver.local mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse custom IP host mcp-remote-0.17.1> [86534] Using callback hostname: 127.0.0.1 mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse custom domain host mcp-remote-0.17.1> [86534] Using callback hostname: myserver.local mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Handle host with multiple other arguments mcp-remote-0.17.1> [86534] Using transport strategy: sse-only mcp-remote-0.17.1> [86534] Using callback hostname: custom.host.com mcp-remote-0.17.1> [86534] Using specified callback port: 3000 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: The callback server stays on loopback unless --bind-host says otherwise mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: A wildcard --bind-host moves the listen address, not the host in the callback URL mcp-remote-0.17.1> [86534] Binding the OAuth callback server to: 0.0.0.0 mcp-remote-0.17.1> [86534] Using specified callback port: 9696 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: An IPv6 --bind-host is accepted in the bracketed form --host takes mcp-remote-0.17.1> [86534] Binding the OAuth callback server to: ::1 mcp-remote-0.17.1> [86534] Using callback hostname: [::1] (derived from --bind-host) mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: An IPv6 --bind-host also moves the callback URL to IPv6 loopback mcp-remote-0.17.1> [86534] Binding the OAuth callback server to: ::1 mcp-remote-0.17.1> [86534] Using callback hostname: [::1] (derived from --bind-host) mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: The bracketed IPv6 --bind-host moves the callback URL too mcp-remote-0.17.1> [86534] Binding the OAuth callback server to: ::1 mcp-remote-0.17.1> [86534] Using callback hostname: [::1] (derived from --bind-host) mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: An IPv6 wildcard --bind-host keeps the default callback host mcp-remote-0.17.1> [86534] Binding the OAuth callback server to: :: mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: An explicit --host still wins over an IPv6 --bind-host mcp-remote-0.17.1> [86534] Using callback hostname: localhost mcp-remote-0.17.1> [86534] Binding the OAuth callback server to: ::1 mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: A bare IPv6 --host is bracketed for the callback URL mcp-remote-0.17.1> [86534] Using callback hostname: [::1] mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: The Windows default host gives way to an IPv6 --bind-host mcp-remote-0.17.1> [86534] Binding the OAuth callback server to: ::1 mcp-remote-0.17.1> [86534] Using callback hostname: [::1] (derived from --bind-host) mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: An empty --bind-host keeps the callback server on loopback mcp-remote-0.17.1> [86534] Warning: ignoring an empty --bind-host; the OAuth callback server stays on loopback mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: An empty --bind-host keeps the callback server on loopback mcp-remote-0.17.1> [86534] Warning: ignoring an empty --bind-host; the OAuth callback server stays on loopback mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Return empty ignored tools array when none specified mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse single ignored tool mcp-remote-0.17.1> [86534] Ignoring tool: foo mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse multiple ignored tools mcp-remote-0.17.1> [86534] Ignoring tool: foo mcp-remote-0.17.1> [86534] Ignoring tool: bar mcp-remote-0.17.1> [86534] Ignoring tool: baz mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Handle ignored tools with other arguments mcp-remote-0.17.1> [86534] Using transport strategy: sse-only mcp-remote-0.17.1> [86534] Using callback hostname: localhost mcp-remote-0.17.1> [86534] Ignoring tool: tool1 mcp-remote-0.17.1> [86534] Ignoring tool: tool2 mcp-remote-0.17.1> [86534] Using specified callback port: 4000 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Use default auth timeout when not specified mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Command Line Arguments Parsing > Scenario: Parse valid auth timeout in seconds and convert to milliseconds mcp-remote-0.17.1> [86534] Using auth callback timeout: 60 seconds mcp-remote-0.17.1> [86534] Using callback port derived from the server URL: 37859 mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts 18/18 mcp-remote-0.17.1> ❯ src/lib/discovery-state.test.ts 9/9 mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 17/17 mcp-remote-0.17.1> ❯ src/lib/issuer-metadata-validation.test.ts 10/10 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 87/141 mcp-remote-0.17.1> ❯ src/lib/protected-resource-metadata.test.ts 24/24 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 0/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 7 passed (23) mcp-remote-0.17.1> Tests 208 passed (520) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.29s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/connect-to-remote-server.test.ts 18/18 mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/explicit-client-credentials.test.ts 17/17 mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 87/141 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 69/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 7 passed (23) mcp-remote-0.17.1> Tests 277 passed (520) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.39s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 96/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 73/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 7 passed (23) mcp-remote-0.17.1> Tests 290 passed (520) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.59s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts 0/27 mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 97/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 0/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 76/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 7 passed (23) mcp-remote-0.17.1> Tests 294 passed (550) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.69s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts 15/27 mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 97/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 0/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 78/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 7 passed (23) mcp-remote-0.17.1> Tests 311 passed (550) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 1.79s mcp-remote-0.17.1> ✓ src/lib/endpoint-policy.test.ts (27 tests) 186ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts 0/26 mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 0/14 mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts 27/27 mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts 0/1 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 98/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 0/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 104/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 8 passed (23) mcp-remote-0.17.1> Tests 350 passed (591) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.00s mcp-remote-0.17.1> stderr | src/lib/mid-session-401.test.ts > Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code mcp-remote-0.17.1> [86554] [Local→Remote] tools/call mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts 0/26 mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 0/14 mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts 27/27 mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts 0/1 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 98/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 0/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 104/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 8 passed (23) mcp-remote-0.17.1> Tests 350 passed (591) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.00s mcp-remote-0.17.1> ✓ src/lib/node-oauth-client-provider.test.ts (141 tests) 1109ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts 17/26 mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 1/14 mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts 27/27 mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts 0/1 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 141/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 0/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 106/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 10 passed (23) mcp-remote-0.17.1> Tests 432 passed (610) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.10s mcp-remote-0.17.1> stderr | src/lib/mid-session-401.test.ts > Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code mcp-remote-0.17.1> [mcp-sdk] OAuth "invalid_grant" — invalidating the stored tokens and retrying authorization. Cause: "the sign-in was ended" mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts 17/26 mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 1/14 mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts 27/27 mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts 0/1 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 141/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 0/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 106/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 10 passed (23) mcp-remote-0.17.1> Tests 432 passed (610) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.10s mcp-remote-0.17.1> ✓ src/lib/authorization-server-metadata.test.ts (19 tests) 24ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts 17/26 mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 1/14 mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/endpoint-policy.test.ts 27/27 mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts 0/1 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 141/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 0/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 106/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 10 passed (23) mcp-remote-0.17.1> Tests 432 passed (610) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.10s mcp-remote-0.17.1> stderr | src/lib/mid-session-401.test.ts > Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code mcp-remote-0.17.1> [86554] Initializing auth coordination on-demand mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/mid-session-401.test.ts > Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code mcp-remote-0.17.1> [86554] OAuth callback server running at http://127.0.0.1:59010 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/mid-session-401.test.ts > Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code mcp-remote-0.17.1> [86554] This instance is running the sign-in for this server (callback port 59010) mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/mid-session-401.test.ts > Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code mcp-remote-0.17.1> [86554] mcp-remote-0.17.1> Please authorize this client by visiting: mcp-remote-0.17.1> https://auth.example.test/authorize?response_type=code&client_id=static-client&code_challenge=Ohgny-jU66_enupIIcSg9KTIlzKlTGmOMlKhH_iNCaA&code_challenge_method=S256&redirect_uri=http%3A%2F%2F127.0.0.1%3A59010%2Foauth%2Fcallback&state=b7bcfd21-c61c-4be4-8ccc-072c1aea48c3&scope=openid+email+profile&resource=https%3A%2F%2Fmcp.example.test%2Fmcp mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/refresh-coordination.test.ts > Feature: Instances sharing a store redeem a refresh token once between them > Scenario: A refusal that lost the race to an instance outside the lease keeps that instance's token mcp-remote-0.17.1> [mcp-sdk] OAuth "invalid_grant" — invalidating the stored tokens and retrying authorization. Cause: "The refresh token is no longer valid" mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/mid-session-401.test.ts > Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code mcp-remote-0.17.1> [86554] Auth code received, resolving promise mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/refresh-coordination.test.ts > Feature: Instances sharing a store redeem a refresh token once between them > Scenario: A refresh token the server really refused is discarded, and a sign-in follows mcp-remote-0.17.1> [mcp-sdk] OAuth "invalid_grant" — invalidating the stored tokens and retrying authorization. Cause: "The refresh token is no longer valid" mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts 18/26 mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/cookie-jar.test.ts 0/19 mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts 0/1 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 141/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 3/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 108/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 11 passed (23) mcp-remote-0.17.1> Tests 440 passed (629) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.20s mcp-remote-0.17.1> ✓ src/lib/refresh-coordination.test.ts (3 tests) 431ms mcp-remote-0.17.1> ✓ Feature: Instances sharing a store redeem a refresh token once between them > Scenario: Three instances refused the same token redeem its refresh token once 390ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts 18/26 mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/cookie-jar.test.ts 0/19 mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts 0/1 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 141/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 3/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 108/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 11 passed (23) mcp-remote-0.17.1> Tests 440 passed (629) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.20s mcp-remote-0.17.1> stderr | src/lib/mid-session-401.test.ts > Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code mcp-remote-0.17.1> [86554] Browser opened automatically. mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/mid-session-401.test.ts > Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code mcp-remote-0.17.1> [86554] Error from remote server: UnauthorizedError: Unauthorized mcp-remote-0.17.1> at handleOAuthUnauthorized (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/@modelcontextprotocol+client@2.4.0/node_modules/@modelcontextprotocol/client/src/client/auth.ts:199:15) mcp-remote-0.17.1> at processTicksAndRejections (node:internal/process/task_queues:104:5) mcp-remote-0.17.1> at StreamableHTTPClientTransport._send (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/@modelcontextprotocol+client@2.4.0/node_modules/@modelcontextprotocol/client/src/client/streamableHttp.ts:1084:29) mcp-remote-0.17.1> at sendToServer (/nix/var/nix/builds/nix-84354-1207446590/source/src/lib/utils.ts:1715:7) mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/mid-session-401.test.ts > Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code mcp-remote-0.17.1> [86554] Remote server requires authorization, completing sign-in mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/mid-session-401.test.ts > Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code mcp-remote-0.17.1> [86554] [Remote→Local] 1 mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts 18/26 mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/cookie-jar.test.ts 0/19 mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts 0/1 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 141/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 3/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 108/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 11 passed (23) mcp-remote-0.17.1> Tests 440 passed (629) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.20s mcp-remote-0.17.1> ✓ src/lib/cookie-jar.test.ts (19 tests) 33ms mcp-remote-0.17.1> ✓ src/lib/mid-session-401.test.ts (1 test) 340ms mcp-remote-0.17.1> ✓ Feature: A 401 on a mid-session request > Scenario: the first refused request completes its sign-in instead of waiting for a lost code 339ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts 19/26 mcp-remote-0.17.1> ❯ src/lib/authorization-server-metadata.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/cookie-jar.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/coordination.test.ts 0/11 mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts 1/1 mcp-remote-0.17.1> ❯ src/lib/node-oauth-client-provider.test.ts 141/141 mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 3/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 112/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 13 passed (23) mcp-remote-0.17.1> Tests 465 passed (640) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.30s mcp-remote-0.17.1> ✓ src/lib/coordination.test.ts (11 tests) 135ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts 25/26 mcp-remote-0.17.1> ❯ src/lib/cookie-jar.test.ts 19/19 mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/mid-session-401.test.ts 1/1 mcp-remote-0.17.1> ❯ src/lib/protocol-era.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/refresh-coordination.test.ts 3/3 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 115/258 mcp-remote-0.17.1> ❯ src/proxy.test.ts 0/9 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 14 passed (23) mcp-remote-0.17.1> Tests 485 passed (649) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.40s mcp-remote-0.17.1> ✓ src/proxy.test.ts (9 tests) 104ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/auth-success-url.test.ts 26/26 mcp-remote-0.17.1> ❯ src/lib/client-credentials.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/open-browser.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/protocol-era.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/static-client-info.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 130/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 15 passed (23) mcp-remote-0.17.1> Tests 510 passed (649) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.50s mcp-remote-0.17.1> ✓ src/lib/auth-success-url.test.ts (26 tests) 653ms mcp-remote-0.17.1> ✓ src/lib/open-browser.test.ts (5 tests) 16ms mcp-remote-0.17.1> ✓ src/lib/protocol-era.test.ts (19 tests) 35ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/client-credentials.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/static-client-info.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 136/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 18 passed (23) mcp-remote-0.17.1> Tests 540 passed (673) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.60s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/client-credentials.test.ts 0/12 mcp-remote-0.17.1> ❯ src/lib/client-diagnostics.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/static-client-info.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 138/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 18 passed (23) mcp-remote-0.17.1> Tests 542 passed (685) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.70s mcp-remote-0.17.1> ✓ src/lib/client-credentials.test.ts (12 tests) 27ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/client-diagnostics.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/static-client-info.test.ts 0/4 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 141/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 19 passed (23) mcp-remote-0.17.1> Tests 557 passed (689) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.80s mcp-remote-0.17.1> ✓ src/lib/static-client-info.test.ts (4 tests) 58ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/client-diagnostics.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 142/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 20 passed (23) mcp-remote-0.17.1> Tests 562 passed (689) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 2.90s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/client-diagnostics.test.ts [queued] mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 144/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 20 passed (23) mcp-remote-0.17.1> Tests 564 passed (689) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 3.01s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/client-diagnostics.test.ts 0/3 mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 3/14 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 146/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 20 passed (23) mcp-remote-0.17.1> Tests 566 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 3.11s mcp-remote-0.17.1> ✓ src/lib/client-diagnostics.test.ts (3 tests) 60ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 4/14 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 21 passed (23) mcp-remote-0.17.1> Tests 571 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 3.31s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 4/14 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 21 passed (23) mcp-remote-0.17.1> Tests 571 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 3.92s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 5/14 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 21 passed (23) mcp-remote-0.17.1> Tests 572 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 4.22s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 5/14 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 21 passed (23) mcp-remote-0.17.1> Tests 572 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 4.94s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 6/14 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 21 passed (23) mcp-remote-0.17.1> Tests 573 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 5.25s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 7/14 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 21 passed (23) mcp-remote-0.17.1> Tests 574 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 5.45s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/coordinate-auth.test.ts 8/14 mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 21 passed (23) mcp-remote-0.17.1> Tests 575 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 5.65s mcp-remote-0.17.1> ✓ src/lib/coordinate-auth.test.ts (14 tests) 3762ms mcp-remote-0.17.1> ✓ Feature: Deciding who runs the sign-in > Scenario: A sibling holding a token nobody can use is not mistaken for a finished sign-in 1021ms mcp-remote-0.17.1> ✓ Feature: Deciding who runs the sign-in > Scenario: An unanswered sign-in stops the follower instead of authorizing without ownership 1011ms mcp-remote-0.17.1> ✓ Feature: Deciding who runs the sign-in > Scenario: A sibling on a specific --bind-host is asked there, not on 127.0.0.1 1011ms mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 581 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 5.96s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 581 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 6.98s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 581 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 8.00s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 581 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 8.92s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 581 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 9.94s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 581 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 10.95s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 581 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 11.96s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 147/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 581 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 12.98s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 148/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 582 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 13.70s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 148/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 582 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 14.01s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 150/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 584 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 14.11s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 151/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 585 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 14.31s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 152/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 586 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 14.41s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 154/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 588 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 14.61s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 155/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 589 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 14.71s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 158/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 592 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 14.82s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 160/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 594 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 14.92s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 160/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 594 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 15.94s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 160/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 594 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 16.96s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 162/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 596 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 17.36s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 162/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 596 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 17.98s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 162/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 596 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 18.99s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 163/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 597 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 19.30s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 164/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 598 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 19.50s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 165/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 599 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 19.61s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 166/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 600 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 19.81s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 166/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 600 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 20.01s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 166/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 600 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 20.93s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 166/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 600 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 21.95s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 166/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 600 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 22.97s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 167/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 601 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 23.88s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 167/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 601 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 23.98s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 168/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 602 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 24.39s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 168/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 602 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 25.00s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 168/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 602 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 26.02s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 168/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 602 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 26.94s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 169/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 603 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 27.45s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 170/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 604 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 27.85s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 170/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 604 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 27.95s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 172/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 606 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 28.36s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 173/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 607 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 28.56s mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 174/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 608 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 28.77s mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Choosing the authorization server with --authorization-server > Scenario: Rejects --authorization-server ["--debug"] mcp-remote-0.17.1> [2026-11-26T13:53:20.159Z][86534] Debug mode enabled - detailed logs will be written to ~/.mcp-auth/ mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Choosing the authorization server with --authorization-server > Scenario: Allows plain HTTP on loopback, for a local authorization server mcp-remote-0.17.1> [2026-11-26T13:53:20.161Z][86534] Signing in at the authorization server set by --authorization-server: http://127.0.0.1:9000/realm mcp-remote-0.17.1> [2026-11-26T13:53:20.161Z][86534] Starting mcp-remote with server URL: https://example.com/mcp mcp-remote-0.17.1> [2026-11-26T13:53:20.161Z][86534] Using callback port derived from the server URL: 34144 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Choosing the authorization server with --authorization-server > Scenario: Refuses to combine with --token-endpoint, which skips discovery mcp-remote-0.17.1> [2026-11-26T13:53:20.162Z][86534] Using the OAuth client_credentials grant; no browser will be opened and no user will be asked mcp-remote-0.17.1> [2026-11-26T13:53:20.162Z][86534] Using an explicit OAuth token endpoint at https://auth.example.com mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Discovery with --authorization-server > Scenario: Without it, the advertised authorization server is used mcp-remote-0.17.1> [2026-11-26T13:53:20.163Z][86534] Starting OAuth server discovery { serverUrl: 'http://127.0.0.1:59106/mcp' } mcp-remote-0.17.1> [2026-11-26T13:53:20.164Z][86534] Probing MCP server for WWW-Authenticate header mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Discovery with --authorization-server > Scenario: Without it, the advertised authorization server is used mcp-remote-0.17.1> [2026-11-26T13:53:20.174Z][86534] Received 401 with WWW-Authenticate header { mcp-remote-0.17.1> hasHeader: true, mcp-remote-0.17.1> header: 'Bearer resource_metadata="http://127.0.0.1:59106/.well-known/oauth-protected-resource/mcp"' mcp-remote-0.17.1> } mcp-remote-0.17.1> [2026-11-26T13:53:20.174Z][86534] Parsed WWW-Authenticate header { hasResourceMetadata: true, hasScope: false, error: undefined } mcp-remote-0.17.1> [2026-11-26T13:53:20.175Z][86534] Starting Protected Resource Metadata discovery { mcp-remote-0.17.1> resourceUrl: 'http://127.0.0.1:59106/mcp', mcp-remote-0.17.1> hasWWWAuthenticateHeader: true mcp-remote-0.17.1> } mcp-remote-0.17.1> [2026-11-26T13:53:20.175Z][86534] Parsed WWW-Authenticate header { hasResourceMetadata: true, hasScope: false, error: undefined } mcp-remote-0.17.1> [2026-11-26T13:53:20.175Z][86534] Using resource_metadata URL from WWW-Authenticate header { mcp-remote-0.17.1> url: 'http://127.0.0.1:59106/.well-known/oauth-protected-resource/mcp' mcp-remote-0.17.1> } mcp-remote-0.17.1> [2026-11-26T13:53:20.175Z][86534] Fetching Protected Resource Metadata { mcp-remote-0.17.1> metadataUrl: 'http://127.0.0.1:59106/.well-known/oauth-protected-resource/mcp' mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Discovery with --authorization-server > Scenario: Without it, the advertised authorization server is used mcp-remote-0.17.1> [2026-11-26T13:53:20.177Z][86534] Successfully fetched Protected Resource Metadata { mcp-remote-0.17.1> resource: 'http://127.0.0.1:59106/mcp', mcp-remote-0.17.1> authorizationServers: [ 'http://127.0.0.1:59106/shared' ], mcp-remote-0.17.1> scopesSupported: [ 'calendar' ] mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Discovery with --authorization-server > Scenario: Without it, the advertised authorization server is used mcp-remote-0.17.1> [2026-11-26T13:53:20.178Z][86534] Using authorization server from Protected Resource Metadata { authorizationServerUrl: 'http://127.0.0.1:59106/shared' } mcp-remote-0.17.1> [2026-11-26T13:53:20.178Z][86534] Fetching authorization server metadata { mcp-remote-0.17.1> serverUrl: 'http://127.0.0.1:59106/shared', mcp-remote-0.17.1> candidates: [ mcp-remote-0.17.1> 'http://127.0.0.1:59106/.well-known/oauth-authorization-server/shared', mcp-remote-0.17.1> 'http://127.0.0.1:59106/.well-known/oauth-authorization-server', mcp-remote-0.17.1> 'http://127.0.0.1:59106/.well-known/openid-configuration/shared', mcp-remote-0.17.1> 'http://127.0.0.1:59106/shared/.well-known/openid-configuration' mcp-remote-0.17.1> ] mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Discovery with --authorization-server > Scenario: Without it, the advertised authorization server is used mcp-remote-0.17.1> [2026-11-26T13:53:20.180Z][86534] Successfully fetched authorization server metadata { mcp-remote-0.17.1> issuer: 'http://127.0.0.1:59106/shared', mcp-remote-0.17.1> scopes_supported: undefined, mcp-remote-0.17.1> scopeCount: 0 mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: Pings the server once per interval while the connection is open mcp-remote-0.17.1> [2026-11-26T13:53:20.200Z][86534] Keep-alive enabled, pinging every 30 seconds mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: Pings the server once per interval while the connection is open mcp-remote-0.17.1> [2026-11-26T13:53:55.775Z][86534] Error from remote server: Error: timed out waiting for the re-initialize response mcp-remote-0.17.1> at /nix/var/nix/builds/nix-84354-1207446590/source/src/lib/utils.ts:1485:16 mcp-remote-0.17.1> at callTimer (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2211:25) mcp-remote-0.17.1> at doTickInner (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2814:30) mcp-remote-0.17.1> at Immediate.nextPromiseTick (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2875:26) mcp-remote-0.17.1> at processImmediate (node:internal/timers:574:21) mcp-remote-0.17.1> [2026-11-26T13:53:55.775Z][86534] Error from remote server { mcp-remote-0.17.1> stack: 'Error: timed out waiting for the re-initialize response\n' + mcp-remote-0.17.1> ' at /nix/var/nix/builds/nix-84354-1207446590/source/src/lib/utils.ts:1485:16\n' + mcp-remote-0.17.1> ' at callTimer (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2211:25)\n' + mcp-remote-0.17.1> ' at doTickInner (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2814:30)\n' + mcp-remote-0.17.1> ' at Immediate.nextPromiseTick (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2875:26)\n' + mcp-remote-0.17.1> ' at processImmediate (node:internal/timers:574:21)' mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: Pings the server once per interval while the connection is open mcp-remote-0.17.1> [2026-11-26T13:53:55.775Z][86534] Reopening the change-notification stream against a filter the client changed mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: Pings the server once per interval while the connection is open mcp-remote-0.17.1> [2026-11-26T13:53:57.775Z][86534] Subscribing to change notifications on the client behalf { mcp-remote-0.17.1> notifications: { mcp-remote-0.17.1> toolsListChanged: true, mcp-remote-0.17.1> resourceSubscriptions: [ 'file:///a', 'file:///b' ] mcp-remote-0.17.1> } mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: Pings the server once per interval while the connection is open mcp-remote-0.17.1> [2026-11-26T13:53:59.475Z][86534] Error from remote server: Error: timed out waiting for the re-initialize response mcp-remote-0.17.1> at /nix/var/nix/builds/nix-84354-1207446590/source/src/lib/utils.ts:1485:16 mcp-remote-0.17.1> at callTimer (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2211:25) mcp-remote-0.17.1> at doTickInner (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2814:30) mcp-remote-0.17.1> at Immediate.nextPromiseTick (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2875:26) mcp-remote-0.17.1> at processImmediate (node:internal/timers:574:21) mcp-remote-0.17.1> [2026-11-26T13:53:59.475Z][86534] Error from remote server { mcp-remote-0.17.1> stack: 'Error: timed out waiting for the re-initialize response\n' + mcp-remote-0.17.1> ' at /nix/var/nix/builds/nix-84354-1207446590/source/src/lib/utils.ts:1485:16\n' + mcp-remote-0.17.1> ' at callTimer (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2211:25)\n' + mcp-remote-0.17.1> ' at doTickInner (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2814:30)\n' + mcp-remote-0.17.1> ' at Immediate.nextPromiseTick (file:///nix/var/nix/builds/nix-84354-1207446590/source/node_modules/.pnpm/vitest@3.2.3_@types+node@22.13.10_jiti@2.7.0_tsx@4.19.3_yaml@2.9.0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js:2875:26)\n' + mcp-remote-0.17.1> ' at processImmediate (node:internal/timers:574:21)' mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: The answer to our own ping is consumed, not forwarded to the client mcp-remote-0.17.1> [2026-11-26T13:53:20.227Z][86534] Keep-alive enabled, pinging every 30 seconds mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: A response to the client's own request is still forwarded mcp-remote-0.17.1> [2026-11-26T13:53:20.229Z][86534] Keep-alive enabled, pinging every 30 seconds mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: A response to the client's own request is still forwarded mcp-remote-0.17.1> [2026-11-26T13:53:50.229Z][86534] [Remote→Local] client-1 mcp-remote-0.17.1> [2026-11-26T13:53:50.229Z][86534] Remote → Local message { mcp-remote-0.17.1> method: undefined, mcp-remote-0.17.1> id: 'client-1', mcp-remote-0.17.1> result: 'result-present', mcp-remote-0.17.1> error: undefined mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: A second answer to a ping is dropped, not handed to a client that never asked mcp-remote-0.17.1> [2026-11-26T13:53:20.231Z][86534] Keep-alive enabled, pinging every 30 seconds mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: A second answer to a ping is dropped, not handed to a client that never asked mcp-remote-0.17.1> [2026-11-26T13:53:50.231Z][86534] Discarding an answer to a request this proxy is no longer waiting on { id: 'mcp-remote-keepalive-1' } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: Pinging stops once the connection closes mcp-remote-0.17.1> [2026-11-26T13:53:20.232Z][86534] Keep-alive enabled, pinging every 30 seconds mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: Pinging stops once the connection closes mcp-remote-0.17.1> [2026-11-26T13:53:50.232Z][86534] Remote transport closed, closing local transport mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: A failed ping is reported without taking the proxy down mcp-remote-0.17.1> [2026-11-26T13:53:20.234Z][86534] Keep-alive enabled, pinging every 30 seconds mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: A failed ping is reported without taking the proxy down mcp-remote-0.17.1> [2026-11-26T13:53:50.234Z][86534] Keep-alive ping failed: socket hang up mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keeping an idle connection alive > Scenario: A failed ping is reported without taking the proxy down mcp-remote-0.17.1> [2026-11-26T13:54:20.234Z][86534] Keep-alive ping failed: socket hang up mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Timing out an unanswered initialize > Scenario: A server that opens a response and never answers is reported, not left hanging mcp-remote-0.17.1> [2026-11-26T13:53:20.236Z][86534] [Local→Remote] initialize mcp-remote-0.17.1> [2026-11-26T13:53:20.236Z][86534] Local → Remote message { method: 'initialize', id: 'init-1', params: '{}' } mcp-remote-0.17.1> [2026-11-26T13:53:20.236Z][86534] { mcp-remote-0.17.1> "jsonrpc": "2.0", mcp-remote-0.17.1> "method": "initialize", mcp-remote-0.17.1> "id": "init-1", mcp-remote-0.17.1> "params": {} mcp-remote-0.17.1> } mcp-remote-0.17.1> [2026-11-26T13:53:20.236Z][86534] Initialize message with modified client info { clientInfo: undefined } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Timing out an unanswered initialize > Scenario: A server that opens a response and never answers is reported, not left hanging mcp-remote-0.17.1> [2026-11-26T13:53:50.236Z][86534] Remote server did not answer 'initialize' within 30s mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Timing out an unanswered initialize > Scenario: A late answer within the window cancels the timeout mcp-remote-0.17.1> [2026-11-26T13:53:20.238Z][86534] [Local→Remote] initialize mcp-remote-0.17.1> [2026-11-26T13:53:20.238Z][86534] Local → Remote message { method: 'initialize', id: 'init-1', params: '{}' } mcp-remote-0.17.1> [2026-11-26T13:53:20.238Z][86534] { mcp-remote-0.17.1> "jsonrpc": "2.0", mcp-remote-0.17.1> "method": "initialize", mcp-remote-0.17.1> "id": "init-1", mcp-remote-0.17.1> "params": {} mcp-remote-0.17.1> } mcp-remote-0.17.1> [2026-11-26T13:53:20.238Z][86534] Initialize message with modified client info { clientInfo: undefined } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Timing out an unanswered initialize > Scenario: A late answer within the window cancels the timeout mcp-remote-0.17.1> [2026-11-26T13:53:49.238Z][86534] [Remote→Local] init-1 mcp-remote-0.17.1> [2026-11-26T13:53:49.238Z][86534] Remote → Local message { mcp-remote-0.17.1> method: undefined, mcp-remote-0.17.1> id: 'init-1', mcp-remote-0.17.1> result: 'result-present', mcp-remote-0.17.1> error: undefined mcp-remote-0.17.1> } mcp-remote-0.17.1> [2026-11-26T13:53:49.238Z][86534] Setting negotiated protocol version on remote transport 2025-11-25 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Timing out an unanswered initialize > Scenario: A slow tools/call is left alone mcp-remote-0.17.1> [2026-11-26T13:53:20.242Z][86534] [Local→Remote] tools/call mcp-remote-0.17.1> [2026-11-26T13:53:20.242Z][86534] Local → Remote message { method: 'tools/call', id: 'call-1', params: '{"name":"slow-tool"}' } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keep-alive command line flags > Scenario: Off unless asked for mcp-remote-0.17.1> [2026-11-26T13:53:20.244Z][86534] Starting mcp-remote with server URL: https://example.com/mcp mcp-remote-0.17.1> [2026-11-26T13:53:20.244Z][86534] Using callback port derived from the server URL: 37931 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keep-alive command line flags > Scenario: --keep-alive pings every 30 seconds by default mcp-remote-0.17.1> [2026-11-26T13:53:20.245Z][86534] Starting mcp-remote with server URL: https://example.com/mcp mcp-remote-0.17.1> [2026-11-26T13:53:20.245Z][86534] Using callback port derived from the server URL: 37931 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keep-alive command line flags > Scenario: --ping-interval sets the interval and implies --keep-alive mcp-remote-0.17.1> [2026-11-26T13:53:20.245Z][86534] Starting mcp-remote with server URL: https://example.com/mcp mcp-remote-0.17.1> [2026-11-26T13:53:20.246Z][86534] Using callback port derived from the server URL: 37931 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Keep-alive command line flags > Scenario: An unusable interval falls back to the default rather than disabling the flag mcp-remote-0.17.1> [2026-11-26T13:53:20.246Z][86534] Warning: Ignoring invalid --ping-interval value: soon. Must be a positive number of seconds. mcp-remote-0.17.1> [2026-11-26T13:53:20.246Z][86534] Starting mcp-remote with server URL: https://example.com/mcp mcp-remote-0.17.1> [2026-11-26T13:53:20.247Z][86534] Using callback port derived from the server URL: 37931 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Extra authorization parameters > Scenario: Collects repeated key=value flags mcp-remote-0.17.1> [2026-11-26T13:53:20.247Z][86534] Using extra authorization parameters: access_type, prompt mcp-remote-0.17.1> [2026-11-26T13:53:20.247Z][86534] Starting mcp-remote with server URL: https://example.com/mcp mcp-remote-0.17.1> [2026-11-26T13:53:20.248Z][86534] Using callback port derived from the server URL: 32035 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Extra authorization parameters > Scenario: No flags means no parameters mcp-remote-0.17.1> [2026-11-26T13:53:20.249Z][86534] Starting mcp-remote with server URL: https://example.com/mcp mcp-remote-0.17.1> [2026-11-26T13:53:20.249Z][86534] Using callback port derived from the server URL: 37931 mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.257Z][86534] Starting OAuth server discovery { serverUrl: 'http://127.0.0.1:59120/mcp' } mcp-remote-0.17.1> [2026-11-26T13:53:20.258Z][86534] Probing MCP server for WWW-Authenticate header mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.259Z][86534] Starting Protected Resource Metadata discovery { mcp-remote-0.17.1> resourceUrl: 'http://127.0.0.1:59120/mcp', mcp-remote-0.17.1> hasWWWAuthenticateHeader: false mcp-remote-0.17.1> } mcp-remote-0.17.1> [2026-11-26T13:53:20.260Z][86534] Built Protected Resource Metadata URLs { mcp-remote-0.17.1> resourceUrl: 'http://127.0.0.1:59120/mcp', mcp-remote-0.17.1> urls: [ mcp-remote-0.17.1> 'http://127.0.0.1:59120/.well-known/oauth-protected-resource/mcp', mcp-remote-0.17.1> 'http://127.0.0.1:59120/.well-known/oauth-protected-resource' mcp-remote-0.17.1> ] mcp-remote-0.17.1> } mcp-remote-0.17.1> [2026-11-26T13:53:20.260Z][86534] Fetching Protected Resource Metadata { mcp-remote-0.17.1> metadataUrl: 'http://127.0.0.1:59120/.well-known/oauth-protected-resource/mcp' mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.261Z][86534] Protected Resource Metadata not found (404) { mcp-remote-0.17.1> metadataUrl: 'http://127.0.0.1:59120/.well-known/oauth-protected-resource/mcp' mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.262Z][86534] Fetching Protected Resource Metadata { mcp-remote-0.17.1> metadataUrl: 'http://127.0.0.1:59120/.well-known/oauth-protected-resource' mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.263Z][86534] Protected Resource Metadata not found (404) { mcp-remote-0.17.1> metadataUrl: 'http://127.0.0.1:59120/.well-known/oauth-protected-resource' mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.263Z][86534] Protected Resource Metadata discovery failed - no metadata found mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.263Z][86534] No Protected Resource Metadata found, falling back to server URL as authorization server mcp-remote-0.17.1> [2026-11-26T13:53:20.263Z][86534] Fetching authorization server metadata { mcp-remote-0.17.1> serverUrl: 'http://127.0.0.1:59120/mcp', mcp-remote-0.17.1> candidates: [ mcp-remote-0.17.1> 'http://127.0.0.1:59120/.well-known/oauth-authorization-server/mcp', mcp-remote-0.17.1> 'http://127.0.0.1:59120/.well-known/oauth-authorization-server', mcp-remote-0.17.1> 'http://127.0.0.1:59120/.well-known/openid-configuration/mcp', mcp-remote-0.17.1> 'http://127.0.0.1:59120/mcp/.well-known/openid-configuration' mcp-remote-0.17.1> ] mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.264Z][86534] Authorization server metadata endpoint not found (404) { mcp-remote-0.17.1> metadataUrl: 'http://127.0.0.1:59120/.well-known/oauth-authorization-server/mcp' mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.265Z][86534] Authorization server metadata endpoint not found (404) { mcp-remote-0.17.1> metadataUrl: 'http://127.0.0.1:59120/.well-known/oauth-authorization-server' mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.266Z][86534] Authorization server metadata endpoint not found (404) { mcp-remote-0.17.1> metadataUrl: 'http://127.0.0.1:59120/.well-known/openid-configuration/mcp' mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.267Z][86534] Authorization server metadata endpoint not found (404) { mcp-remote-0.17.1> metadataUrl: 'http://127.0.0.1:59120/mcp/.well-known/openid-configuration' mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> stderr | src/lib/utils.test.ts > Feature: Probing the server before OAuth discovery > Scenario: A probe redirected to another origin does not take the user's headers there mcp-remote-0.17.1> [2026-11-26T13:53:20.267Z][86534] No authorization server metadata found at any candidate URL { mcp-remote-0.17.1> serverUrl: 'http://127.0.0.1:59120/mcp', mcp-remote-0.17.1> candidates: [ mcp-remote-0.17.1> 'http://127.0.0.1:59120/.well-known/oauth-authorization-server/mcp', mcp-remote-0.17.1> 'http://127.0.0.1:59120/.well-known/oauth-authorization-server', mcp-remote-0.17.1> 'http://127.0.0.1:59120/.well-known/openid-configuration/mcp', mcp-remote-0.17.1> 'http://127.0.0.1:59120/mcp/.well-known/openid-configuration' mcp-remote-0.17.1> ] mcp-remote-0.17.1> } mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> ❯ src/lib/utils.test.ts 232/258 mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 22 passed (23) mcp-remote-0.17.1> Tests 666 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 28.87s mcp-remote-0.17.1> ✓ src/lib/utils.test.ts (258 tests) 27716ms mcp-remote-0.17.1> ✓ Feature: Bridging the modern surfaces a 2025-era client has never heard of > Scenario: Reopen a change-notification stream the server closed, so the client keeps hearing 10540ms mcp-remote-0.17.1> ✓ Feature: Bridging the modern surfaces a 2025-era client has never heard of > Scenario: Every later resource subscription is honoured, not just the first 2120ms mcp-remote-0.17.1> ✓ Feature: Bridging the modern surfaces a 2025-era client has never heard of > Scenario: A refused resource subscription does not cost the client the rest of its notifications 2068ms mcp-remote-0.17.1> ✓ Feature: Bridging the modern surfaces a 2025-era client has never heard of > Scenario: A refusal about one resource does not stop the client subscribing to another 4082ms mcp-remote-0.17.1> ✓ Feature: Bridging the modern surfaces a 2025-era client has never heard of > Scenario: A superseded exchange does not answer the request that replaced it 462ms mcp-remote-0.17.1> ✓ Feature: Bridging the modern surfaces a 2025-era client has never heard of > Scenario: Reopening a stream while a session is recovering does not take the process down 3154ms mcp-remote-0.17.1> ✓ Feature: Bridging the modern surfaces a 2025-era client has never heard of > Scenario: Cancelling before the server has anything in flight still ends the exchange 306ms mcp-remote-0.17.1> ✓ Feature: Bridging the modern surfaces a 2025-era client has never heard of > Scenario: A cancellation does not leave the retry mapping behind for the next request 310ms mcp-remote-0.17.1> mcp-remote-0.17.1> Test Files 23 passed (23) mcp-remote-0.17.1> Tests 692 passed (692) mcp-remote-0.17.1> Start at 13:52:51 mcp-remote-0.17.1> Duration 28.99s (transform 1.81s, setup 0ms, collect 10.70s, tests 35.64s, environment 33ms, prepare 3.27s) mcp-remote-0.17.1> mcp-remote-0.17.1> checkPhase completed in 30 seconds mcp-remote-0.17.1> Running phase: installPhase mcp-remote-0.17.1> Executing npmInstallHook mcp-remote-0.17.1> Lockfile is up to date, resolution step is skipped mcp-remote-0.17.1> Packages: -423 mcp-remote-0.17.1> mcp-remote-0.17.1> mcp-remote-0.17.1> devDependencies: mcp-remote-0.17.1> - @modelcontextprotocol/client 2.4.0 mcp-remote-0.17.1> - @modelcontextprotocol/core 2.4.0 mcp-remote-0.17.1> - @modelcontextprotocol/server 2.4.0 mcp-remote-0.17.1> - @types/express 5.0.0 mcp-remote-0.17.1> - @types/node 22.13.10 mcp-remote-0.17.1> - husky 9.1.7 mcp-remote-0.17.1> - knip 6.32.3 mcp-remote-0.17.1> - oxfmt 0.65.0 mcp-remote-0.17.1> - oxlint 1.80.0 mcp-remote-0.17.1> - semantic-release 25.0.9 mcp-remote-0.17.1> - tsup 8.4.0 mcp-remote-0.17.1> - tsx 4.19.3 mcp-remote-0.17.1> - typescript 5.8.2 mcp-remote-0.17.1> - vitest 3.2.3 mcp-remote-0.17.1> - zod 4.6.7 mcp-remote-0.17.1> mcp-remote-0.17.1> npm warn Unknown env config "platform". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. mcp-remote-0.17.1> npm warn Unknown env config "arch". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. mcp-remote-0.17.1> Finished npmInstallHook mcp-remote-0.17.1> Running phase: fixupPhase mcp-remote-0.17.1> checking for references to /nix/var/nix/builds/nix-84354-1207446590/ in /nix/store/6dznq5zla0sm9rjnqyb8z6bc6p8r8jjx-mcp-remote-0.17.1... mcp-remote-0.17.1> patching script interpreter paths in /nix/store/6dznq5zla0sm9rjnqyb8z6bc6p8r8jjx-mcp-remote-0.17.1 mcp-remote-0.17.1> /nix/store/6dznq5zla0sm9rjnqyb8z6bc6p8r8jjx-mcp-remote-0.17.1/lib/node_modules/mcp-remote/dist/client.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> /nix/store/6dznq5zla0sm9rjnqyb8z6bc6p8r8jjx-mcp-remote-0.17.1/lib/node_modules/mcp-remote/dist/proxy.js: interpreter directive changed from "#!/usr/bin/env node" to "/nix/store/vxh4ylwcdwyqhils1q6084ih7l5qinwk-nodejs-24.22.2/bin/node" mcp-remote-0.17.1> Running phase: installCheckPhase mcp-remote-0.17.1> Executing versionCheckPhase mcp-remote-0.17.1> Successfully managed to find version 0.17.1 in the output of the command /nix/store/6dznq5zla0sm9rjnqyb8z6bc6p8r8jjx-mcp-remote-0.17.1/bin/mcp-remote --version mcp-remote-0.17.1> 0.17.1 mcp-remote-0.17.1> Finished versionCheckPhase mcp-remote-0.17.1> no Makefile or custom installCheckPhase, doing nothing building '/nix/store/cfb0glw6s1w55d7vf9grx2dbc2jr74nd-check-mcp-remote.drv' on 'grpc://farm.numtide.com:50051?connect-timeout=20&restart-grace=900&system=aarch64-darwin&token-file=/run/nix-farm-client/farm-token' building '/nix/store/cfb0glw6s1w55d7vf9grx2dbc2jr74nd-check-mcp-remote.drv' on farm.numtide.com:50051 check-mcp-remote> mac02: building cfb0glw6s1w55d7vf9grx2dbc2jr74nd-check-mcp-remote.drv