janhq/jan

bug: npx fails for mcp

Opened this issue · 1 comments

Version: 0.7.2

Describe the Bug

Trying to enable mcp servers gives the following error:

Failed to run command fetch: Bad CPU type in executable (os error 86)

Same or similar to #5522. Replacing npx with the full path to npx makes it work.
Replacing npx with Npx also works (case sensitivity).

Steps to Reproduce

  1. Enable any builtin mcp server that uses npx

Screenshots / Logs

[12:01:42]
INFO
Deactivating MCP server: browsermcp
[12:01:42]
INFO
Removed MCP server browsermcp from active servers list
[12:01:42]
INFO
Marked MCP server browsermcp as not successfully connected
[12:01:42]
INFO
Reset restart count for MCP server browsermcp
[12:01:42]
INFO
Starting MCP server browsermcp (Initial attempt)
[12:01:42]
ERROR
Failed to run command browsermcp: Bad CPU type in executable (os error 86)
[12:01:42]
ERROR
Failed to start MCP server browsermcp on first attempt: Failed to run command browsermcp: Bad CPU type in executable (os error 86)

Operating System

  • MacOS
  • Windows
  • Linux

Found 3 possible duplicate issues:

  1. #5522
  2. #6365
  3. #6777