Open
Description
- duplicated from 🔴 Bug:
Redis error [Error: Socket closed unexpectedly]
vercel-labs/mcp-for-next.js#18 for discoverability
Dev Notes
- I suspect this is an issue in https://github.com/vercel/mcp-adapter, not https://github.com/vercel-labs/mcp-for-next.js
Steps to Reproduce
- checkout my forked fix branch at Fix
Error: redisUrl is required
vercel-labs/mcp-for-next.js#17 (https://github.com/servant-io/mcp-for-next.js/tree/fix/redisUrl)- run:
#/usr/bin/env bash nvm install nvm use pnpm install -D # https://github.com/redis/node-redis/blob/9ea260f/packages/client/lib/client/index.ts#L33 # replace `redis[s]://[[username][:password]@][host][:port][/db-number]` with your actual `REDIS_URL` echo "REDIS_URL=\"redis[s]://[[username][:password]@][host][:port][/db-number]\"" > .env.local pnpm build pnpm dev- in another terminal, run:
#/usr/bin/env bash nvm install nvm use # no need to globally install mcp sdk because I # rolled it into the dev dependencies # npm i -g @modelcontextprotocol/sdk@latest pnpm test:client http://localhost:3000- 🔴 see that the output reads:
> [email protected] dev /Users/patrick/src/servant-io/mcp-for-next.js > next dev ▲ Next.js 15.2.4 - Local: http://localhost:3000 - Network: http://192.168.1.52:3000 - Environments: .env.local ✓ Starting... ✓ Ready in 1650ms ○ Compiling /[transport] ... ✓ Compiled /[transport] in 1458ms (999 modules) Redis error [Error: Socket closed unexpectedly] Redis error [Error: Socket closed unexpectedly] Redis error [Error: Socket closed unexpectedly]
Metadata
Metadata
Assignees
Labels
No labels