Fix common MCP service errors including missing command environments, initialization failures, and configuration issues.
This topic describes exceptions encountered during the installation and operation of MCP services, and provides corresponding solutions and troubleshooting steps, including handling missing command environments, service initialization failures, and configuration errors.
Error message: failed to start command: exec: "uvx": executable file not found in $PATH
Solution: Install uv. uvx is a command-line tool provided by uv, used to quickly run Python scripts.
You can visit the Python official website to download and install Python 3.8 or later, or complete the installation using one of the following methods:
Installation and verification steps
Common issue 3: Node.js execution blocked by security components
Authorize or whitelist the Node.js process or related executable files according to the messages from the security components.
Troubleshooting steps:
If an MCP tool call encounters an exception or returns unexpected results, we recommend that you first expand the tool call details and view the specific error information for analysis and troubleshooting. For some MCP services (such as Mastergo and Figma), key authentication information such as API_KEY or TOKEN is included in the arguments (args).
Therefore, after installation from the MCP marketplace, you still need to manually configure these parameters.
Solution:
When the page is blank and
The service list continues to display Loading.
Failed to add or install a service
1. Missing environment for the npx command
- Error message: failed to start command: exec: "npx": executable file not found in $PATH
- Solution: Download and install Node.js.
- Windows
- macOS
-
Download and install Node.js, and use nvm-windows to manage multiple versions:
-
After installation, run the following commands in the terminal to confirm that the installation is successful.
- If the installation is successful, the terminal displays the installed Node.js version number.
2. Missing environment for the uvx command
Error message: failed to start command: exec: "uvx": executable file not found in $PATH
Solution: Install uv. uvx is a command-line tool provided by uv, used to quickly run Python scripts.
You can visit the Python official website to download and install Python 3.8 or later, or complete the installation using one of the following methods:
Installation and verification steps
- Download and install uv.
- Windows
- macOS / Linux
Run the following command on Windows to install uv:
- After installation, run the following command in the terminal to confirm that the installation is successful.
- If the installation is successful, the terminal displays the installed uv version number.
3. Failed to initialize the MCP client
- Error message: failed to initialize MCP client: context deadline exceeded
-
Possible causes include but are not limited to:
- Incorrect service parameter configuration: MCP service parameters may be configured incorrectly, affecting service initialization.
- Resource pull failure: Installation may fail because resources cannot be pulled due to network issues.
- Network security restrictions: Security components within your company may block MCP service initialization.
- Troubleshooting steps:
- Click Copy complete command to obtain the full command.
- Run the command in the terminal to obtain detailed error information.
- Analyze the error information and apply the corresponding fix.
- Windows
- macOS
Tool usage issues
If you encounter issues using services in the MCP marketplace, contact ModelScope for technical support.ModelScope Developer Group (DingTalk group number: 44837352)
1. Tool execution fails due to incorrect environment variables or parameters
Troubleshooting steps:
If an MCP tool call encounters an exception or returns unexpected results, we recommend that you first expand the tool call details and view the specific error information for analysis and troubleshooting. For some MCP services (such as Mastergo and Figma), key authentication information such as API_KEY or TOKEN is included in the arguments (args).
Therefore, after installation from the MCP marketplace, you still need to manually configure these parameters.
Solution:
- Go to the My Services page.
- Find the corresponding MCP service and click Edit.
- In the service configuration, view the arguments (args) section.
- Replace the variable content that needs to be updated or filled in to ensure accuracy, then reconnect the service and try calling it again.
2. LLMs cannot call MCP tools
- Confirm that you are in Agent mode.
- Confirm that the MCP service is in a connected state:
3. Personal settings and MCP tools pages cannot be opened, and the session panel is blank
When the page is blank and idea.log contains an error message such as "WARN - #c.i.u.j.JBCefApp - JCefAppConfig.class is not from a JBR module":
Cause: Android Studio default settings do not support JCEF, causing personal settings, MCP, and other pages to fail to load.
Solution:
- Configure JCEF: In the IDE, select Help > Find Action.., and in the input box that appears, type "Registry" and open it. Enable the option ide.browser.jcef.enabled. Disable the option ide.browser.jcef.sandbox.enable.
- Configure the IDE Runtime: Select Help > Find Action.. again, type "Choose Boot Runtime for the IDE" in the input box and open it. Select a newer JCEF Runtime version, and then click OK.
- Restart the IDE.
4. MCP service list cannot be loaded
The service list continues to display Loading.
- Restart the IDE.
- If the problem persists, try manually starting the Qoder CN service:

