Skip to content

🔴 Bug: Error: redisUrl is required #16

Open
@pstaylor-patrick

Description

@pstaylor-patrick

Steps to Reproduce

  1. 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
  2. in another terminal, run:
    #/usr/bin/env bash
    nvm install
    nvm use
    npm i -g @modelcontextprotocol/sdk@latest
    node scripts/test-client.mjs http://localhost:3000
  3. 🔴 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
    
     ✓ Starting...
     ✓ Ready in 2.8s
     ○ Compiling /[transport] ...
     ✓ Compiled /[transport] in 1443ms (994 modules)
    Error: redisUrl is required
        at Generator.next (<anonymous>)
        at new Promise (<anonymous>)
        at Generator.next (<anonymous>)
        at new Promise (<anonymous>)
        at new Promise (<anonymous>)
     ⨯ unhandledRejection: Error: redisUrl is required
        at Generator.next (<anonymous>)
        at new Promise (<anonymous>)
        at Generator.next (<anonymous>)
        at new Promise (<anonymous>)
        at new Promise (<anonymous>)
     ⨯ unhandledRejection:  Error: redisUrl is required
        at Generator.next (<anonymous>)
        at new Promise (<anonymous>)
        at Generator.next (<anonymous>)
        at new Promise (<anonymous>)
        at new Promise (<anonymous>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions