Repository navigation
Description
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/cli0.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
npm install -g @beeai/cli, thenbee loginbee mcp connect claude, then click Install in Claude Desktop- 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 serveanswersinitializeandtools/listeven when started with an empty environment, and the generated launcher works when run with regularnodeand onlyHOME,USER, andPATHset. - 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.
-
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);
-
Skip Node entirely: since the launcher only wraps a native executable, the manifest could declare
server.type: "binary"withmcp_config.commandpointing at thebeebinary.
Activity