Skip to content

[Bug] MCP mode exits immediately on Windows (Cursor shows Connection closed -32000) #201

Description

@RIchardRodo

Summary

bb-browser CLI works in PowerShell for site commands, but MCP mode exits immediately, causing Cursor MCP to fail with Connection closed (-32000).

Environment

  • OS: Windows 11 (10.0.26200)
  • Node: tested with Node 24 and Node 20
  • npm: 11.11.0
  • bb-browser: 0.11.3 (also tested latest via npx)
  • Client: Cursor (MCP v2)

What works

  • bb-browser site update works
  • bb-browser site list works
  • bb-browser site google/search "AI agent" --json works (except expected site-level errors like 429/503)

What fails

MCP startup always closes immediately:

  • Cursor status: Connection failed: MCP error -32000: Connection closed
  • Cursor logs:
    • connection:connect_start -> connecting
    • Connection failed: MCP error -32000: Connection closed
    • CreateClient completed, connected: false

Reproduction

  1. Configure Cursor MCP server for bb-browser.
  2. Enable server in Cursor.
  3. Observe immediate Connection closed.

Also reproduced in terminal:

bb-browser --mcp
# returns immediately to prompt (no persistent process)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions