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.
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.
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.
-
You can visit the Node.js official website to download and install Node.js 18 or later, or complete the installation using one of the following methods:
Installation and verification steps
- 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
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.
-
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
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:
- 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
Therefore, after installation from the MCP marketplace, you still need to manually configure these parameters. | |
|---|---|
|
2. LLMs cannot call MCP tools
- Confirm that you are in Agent mode.
- Confirm that the MCP service is in a connected state:
| If the service connection is interrupted, click the icon on the right side of the interface. The system automatically attempts to restart the MCP service. |
|---|
- Usage suggestion: Avoid using similar naming for MCP services and their tools (for example, TextAnalyzer-Pro and TextAnalyzer-Plus both contain a tool named fetchText with similar functionality), to prevent ambiguity when the model calls tools.
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:
| |
|---|---|
|
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:
Windows
Go to the directory:.lingma/bin/x.x.x/CPU_architecture_64_system/Execute the command:macOS
Click the Apple icon in the upper-left corner of the computer and select "About This Mac" to check the processor model. Then, go to the corresponding directory based on the processor model.- M1 chip:
/.lingma/bin/x.x.x/aarch64_darwin/Qoder CN - Intel chip:
/.lingma/bin/x.x.x/x86_64_darwin/Qoder CN
After the service starts successfully, click the login button again. - M1 chip: