这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG]: MCP error -32000: Connection closed for playwright #3902

@UnixSafe

Description

@UnixSafe

How are you running AnythingLLM?

Docker (local)

What happened?

Playwright MCP server fails to start (error -32000 “Connection closed”) even with explicit command path / PATH env

{
  "mcpServers": {
    "jdbc": {
      "command": "/opt/homebrew/bin/jbang",
      "args": [
        "jdbc@quarkiverse/quarkus-mcp-servers",
        "jdbc:postgresql://db.xxxxx.supabase.co:5432/postgres?user=xxxx&password=xxxxxx"
      ]
    },
    "playwright": {
      "command": "/usr/local/bin/npx",
      "args": ["-y", "@executeautomation/playwright-mcp-server"],
      "env": {
        "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/npx"
      }
    }
  }
}

What works

The JDBC MCP server starts and runs without issues.
• What doesn’t
Starting the Playwright MCP server always fails with the same error:
Failed to start MCP server: playwright [-32000] MCP error -32000: Connection closed

What I’ve tried

Image
1.	Keeping the env.PATH entry (as shown above).
2.	Removing the env block entirely and relying only on the absolute path in command.
3.	Verifying that /usr/local/bin/npx exists and runs npx -y @executeautomation/playwright-mcp-server correctly from the terminal.

In every case the JDBC server still works, but the Playwright server dies immediately with error -32000.

Image

Are there known steps to reproduce?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    possible bugBug was reported but is not confirmed or is unable to be replicated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions