Skip to content

Claude Desktop connector from bee mcp connect claude fails with "Bee couldn't start" (launcher's stdio: "inherit" under Desktop's built-in Node) #34

Open

Description

@mikahsargent

Summary

The Claude Desktop extension built by bee mcp connect claude installs, but it never starts: Desktop shows "Bee couldn't start." The same bee mcp serve works in Claude Code and Codex, and it also works in Claude Desktop when added to claude_desktop_config.json as a plain command.

Environment

  • @beeai/cli 0.9.0, installed globally with npm
  • Claude Desktop 4.29.0, with its default setting to run MCP extensions on its built-in Node.js
  • macOS 27.0.1, Apple silicon

Steps to reproduce

  1. npm install -g @beeai/cli, then bee login
  2. bee mcp connect claude, then click Install in Claude Desktop
  3. Desktop shows "Bee couldn't start."

Logs

~/Library/Logs/Claude/mcp-server-Bee.log:

[Bee] [info] Using built-in Node.js for MCP server: Bee
[Bee] [info] Era probe verdict: legacy (sibling did not complete the exchange)
[Bee] [info] Server started and connected successfully
[Bee] [info] Message from client: method="initialize" id=0 params
[Bee] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. ...
[Bee] [error] Server disconnected. ...
[Bee] [error] Couldn't start for Cowork and Code sessions. Error: Version negotiation failed: the connection closed during the server/discover probe (this transport probed in place — the disposable sibling probe requires the SDK's base StdioClientTransport)

~/Library/Logs/Claude/main.log:

[info] Using UtilityProcess for extension Bee: appConfig.isUsingBuiltInNodeForMcp is true and built-in node is compatible
[error] [LocalMcpServerManager] Failed to connect to Bee: Version negotiation failed: the connection closed during the server/discover probe ... { code: 'ERA_NEGOTIATION_FAILED', ... }

Nothing from bee itself reaches the log; the process exits right after initialize.

Likely cause

With built-in Node turned on (the default), Desktop runs a type: "node" extension's entry point in an Electron UtilityProcess. The generated server/index.js (template in sources/mcp/claude.ts) spawns the native bee binary with stdio: "inherit". As far as I can tell, Desktop's MCP traffic doesn't pass through to the child that way inside the UtilityProcess, so bee mcp serve gets no input and exits.

What I ruled out:

  • Environment: bee mcp serve answers initialize and tools/list even when started with an empty environment, and the generated launcher works when run with regular node and only HOME, USER, and PATH set.
  • Auth: the same login works for the Claude Code and Codex connections on the same Mac.

For comparison, another Desktop extension on the same machine that also wraps a native CLI works fine: it handles MCP stdio in JavaScript and spawns its CLI with piped stdio.

Workaround (verified)

Uninstall the extension, quit Claude Desktop, and add this under mcpServers in ~/Library/Application Support/Claude/claude_desktop_config.json:

"bee": {
  "command": "/opt/homebrew/lib/node_modules/@beeai/cli/dist/platforms/mac-arm64/bee",
  "args": ["mcp", "serve"]
}

After reopening, Desktop logs Connected to bee (41 tools) with no errors, including for Cowork and Code sessions. bee mcp status still reports "no connector package generated" for Claude Desktop in that setup.

Possible fixes

Neither has been tested inside Claude Desktop yet.

  1. Pipe stdio in the launcher instead of inheriting it. This version works under regular Node (initialize, tools/list, and a tool call all succeed):

    const child = spawn(command, args, {
      stdio: ["pipe", "pipe", "pipe"],
      windowsHide: true,
      env,
    });
    process.stdin.pipe(child.stdin);
    child.stdout.pipe(process.stdout);
    child.stderr.pipe(process.stderr);
  2. Skip Node entirely: since the launcher only wraps a native executable, the manifest could declare server.type: "binary" with mcp_config.command pointing at the bee binary.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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