Model Context Protocol (MCP) extends Qoder CN by connecting it to external tools and data sources. Learn about supported transport types, configuration steps, and example scenarios.
Update the Qoder CN IDE plugin to the required version:
The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context and tools to LLMs. Connect Qoder CN Agent with external data sources and tools through standardized interfaces to extend its capabilities.
Connect to existing MCP services or build your own. Marketplaces such as ModelScope MCP Square and Higress MCP Marketplace offer a wide range of ready-to-use services.
Qoder CN supports two transport types:
Qoder CN automatically selects the appropriate MCP tool based on your prompt and the tool descriptions, then uses the results for subsequent steps.
Qoder CN supports two types of MCP services:
Use the Fetch MCP Server to retrieve web page content and convert HTML to Markdown.
Use the weather MCP to query city weather information.
Use nvm-windows to manage multiple versions:
Install with Homebrew (install Homebrew first).
ModelScope developer group (DingTalk group ID: 44837352)
When the page is blank and the
The service list keeps showing a loading state.
codeblock
Qoder CN start
Before you start
Update the Qoder CN IDE plugin to the required version:
- JetBrains: version 2.5.0 or later.
- VS Code: version 2.5.0 or later.
What is MCP?
The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context and tools to LLMs. Connect Qoder CN Agent with external data sources and tools through standardized interfaces to extend its capabilities.
Connect to existing MCP services or build your own. Marketplaces such as ModelScope MCP Square and Higress MCP Marketplace offer a wide range of ready-to-use services.
| Popular MCP marketplaces | Common scenarios |
|---|---|
|
|
- Standard Input/Output (stdio) Communicates through standard input and output streams. Best suited for local integrations and command-line tools.
- Server-Sent Events (SSE) Enables server-to-client streaming with HTTP POST for client-to-server communication.
How to configure and use MCP services
Add MCP service
1. Access the MCP service pageClick your avatar in the top-right corner, then go to Your Settings > MCP tools. Note MCP services apply to all local projects in the IDE once added. | |
|---|---|
2. Add a serviceMethod 1: Add through MCP marketplace Important Qoder CN IDE does not support searching in MCP Square
Note Some MCP servers require environment variables such as API_KEY or ACCESS_TOKEN.
Note If dependencies required by the command are missing, the service will show an error message when you start. Please manually install the required dependencies. See FAQ for more help. | |
Method 2: Add manually Important Qoder CN IDE only supports adding MCP services via configuration files.
|
Use MCP tools
Qoder CN automatically selects the appropriate MCP tool based on your prompt and the tool descriptions, then uses the results for subsequent steps.
1. Enter promptSwitch to Agent mode in the IDE chat box and enter your prompt. | |
|---|---|
2. Execute toolQoder CN prompts for confirmation before calling an MCP tool. | |
3. Check execution resultsThe Qoder CN chat box displays the results. Expand to view detailed input and output. | |
4. Review code and accept changesAfter the conversation completes, you can review and accept the final generated code. |
Example scenarios
Qoder CN supports two types of MCP services:
- SSE type (remote service hosting) : Runs on a remote server with minimal setup. Ideal for beginners. This example uses the Fetch MCP service from ModelScope MCP Market to retrieve and process webpage content.
- STDIO type (local service running) : Runs locally and requires environment setup. Suited for experienced developers. This example uses the weather MCP to query city weather.
Scenario 1: Using remote MCP to retrieve and process content from web pages
Use the Fetch MCP Server to retrieve web page content and convert HTML to Markdown.
1. Get the MCP SSE service endpoint
| |
2. Add MCP serviceIn MCP Services, configure the MCP server:
| |
3. Complete configurationVerify the service shows (connected). Expand to view available tools. | |
4. Use MCP in Qoder CNSwitch to Agent mode and enter a prompt to summarize online documentation: plaintext | |
| Enter the next prompt to generate code: plaintext |
Scenario 2: Using local MCP to query city weather
Use the weather MCP to query city weather information.
1. Check environmentEnsure Node.js is installed locally. You can ask Qoder CN to verify:
Please help me check my local environment to ensure Node.js is installed | |
|---|---|
2. Add MCP serviceIn MCP Services, configure the MCP server with the following parameters:
-y @h1deya/mcp-server-weather MCP service configuration information
| |
3. Complete configurationVerify the service shows (connected). Expand to view available tools. | |
4. Use MCP in Qoder CNSwitch to Agent mode and enter a prompt to check the weather. Prompt 1:plaintextHelp me check the weather in San Francisco, USA | |
| Prompt 2:plaintext Are there any weather alerts in the US tomorrow? |
MCP FAQ
Service installation or startup errors
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.
- Download and install
Windows
Use nvm-windows to manage multiple versions:
macOS
Install with Homebrew (install Homebrew first).
- After installation, run the following commands in the terminal to verify.
- If the installation succeeded, the terminal displays the installed Node.js version.
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 for quickly running Python scripts.
-
Visit the Python official site to download and install Python 3.8 or later, or use one of the methods below:
Installation and verification steps
- Download and install
Windows
Install on Windows with the following command:macOS
Install on macOS and Linux with the following command:- After installation, run the following command in the terminal to verify.
- If the installation succeeded, the terminal displays the installed uv version.
-
Visit the Python official site to download and install Python 3.8 or later, or use one of the methods below:
Installation and verification steps
3. Unable to initialize the MCP Client
- Error message: failed to initialize MCP client: context deadline exceeded
-
Possible causes, including but not limited to:
- Incorrect service parameter configuration: The parameters of the MCP service may be configured incorrectly, affecting service initialization.
- Resource fetch failure: Network issues prevent resources from being fetched successfully, causing installation to fail.
- Network security restrictions: Interception by internal security components in your organization causes MCP service initialization to fail.
- Troubleshooting steps:
| 1. Click Copy full command to obtain the complete command. | |
|---|---|
| 2. Run the command in a terminal to view detailed error information. | |
| 3. Analyze the error information and fix it accordingly. | Common issue 1: Configuration error In the example above, the error information shows that the connection failed because of an incorrect Redis connection URL. Edit the MCP service and correct the URL configuration. Common issue 2: Resource fetch failure If the command fails because resources cannot be fetched, run one of the following commands to add a mirror source, then restart the Qoder CN process and try again. ## Windowsplaintextnpm config set registry https://registry.npmmirror.com ## macOSplaintextexport UV_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/ |
Tool usage issues
For issues with services from the MCP marketplace, contact the ModelScope community for technical support.
1. Tool execution fails due to incorrect environment variables or parameters
Important Some MCP services (such as Mastergo and Figma) include critical authentication information such as API_KEY or TOKEN in the "arguments (args)". These parameters must be configured manually after installation from the MCP marketplace. | |
|---|---|
|
2. The model cannot invoke MCP tools
- Ensure the current mode is Agent mode.
| If the service connection is interrupted, click on the right side of the interface. The system will automatically attempt to restart the MCP service. |
|---|
- Recommendations: Avoid similar naming for MCP services and their tools (for example, TextAnalyzer-Pro and TextAnalyzer-Plus both include a tool named fetchText with similar functionality). Similar names may cause ambiguity when the model invokes tools.
3. Your Settings and MCP tools pages cannot be opened, and the chat panel is blank
When the page is blank and the idea.log contains the following error: "WARN - #c.i.u.j.JBCefApp - JCefAppConfig.class is not from a JBR module".
Cause: Android Studio does not support JCEF by default, so the Your Settings and MCP pages cannot be loaded.
Solution:
| |
|---|---|
|
4. The MCP service list fails to load
The service list keeps showing a loading state.
- Restart the IDE.
-
If the issue persists, try manually starting the Qoder CN service:
Windows
Go to the directory:.qoder/bin/x.x.x/CPU_architecture_64_system/Run the command: