-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Setting up baremobile for claude in windows, the mcp failed. Claude states in found a bug:
The issue might be that npx baremobile mcp goes through cli.js which means the isMain check on the MCP
server fails. Let me check.
Read 1 file (ctrl+o to expand)
● Found the issue. On line 58-59 of cli.js:
} else if (cmd === 'mcp') {
await import('./mcp-server.js');
When npx baremobile mcp runs, process.argv[1] points to cli.js, not mcp-server.js. So the isMain guard in
mcp-server.js (line 364) evaluates to false, and the stdio transport never starts. The server imports
but does nothing.
This is a bug in baremobile — the isMain check doesn't account for being imported from cli.js.
The workaround is to run mcp-server.js directly instead of going through the CLI.
It works now on my side. Hope this helps and thank you!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels