Default MCP Server Configuration
You can configure a project-level or user-level MCP server. Table 1 MCP server configuration paths lists the configuration paths.
| Level | Application Scope | Configuration Path |
|---|---|---|
| Project | Current project Priority: project-level > user-level | Project root directory/.codeartsdoer/codearts_cli.jsonc or Project root directory/.codeartsdoer/codearts_cli.json |
| User | All projects of the current user | ~/.codeartsdoer/codearts_cli.jsonc or ~/.codeartsdoer/codearts_cli.json The tilde (~) indicates the home directory of the current user. In Windows, it is equivalent to C:\Users\Username\. In macOS, it is equivalent to /Users/Username/. In Linux, it is equivalent to /home/Username/. |
Local MCP Server
You can configure a local MCP server.
Parameters
| Parameter | Type | Description |
|---|---|---|
| type | String | This parameter is mandatory. The value must be local. |
| command | String array | Command and input parameters for starting the MCP service. This parameter is mandatory. |
| environment | Object | Environment variables set for running the server |
| enabled | Boolean | Whether to enable the MCP server |
| timeout | Number | Response timeout interval for obtaining the MCP service tool, in milliseconds. The default interval is 100,000 ms. |
Configuration Example
This section uses Windows as an example to describe how to configure a local MCP server in a personal environment.
- In the C:/Users/Username/.codeartsdoer/ directory, create the codearts_cli.jsonc file, write the following configuration to the file, and restart the CodeArts Agent CLI:
{ "mcp": { // Custom MCP service name: character analysis tool "mcp-character-tools" : { // Mandatory. Startup command: npx is used to start the local MCP service. "command" : [ "npx", "mcp-character-tools" ], // Mandatory. Service type: local MCP server "type": "local" } } } - Enter the TUI development environment.
- Open the root directory of the target project.
- Right-click in the blank area and select Open Windows Terminal here.
- Enter /codearts in the terminal and press Enter to enter the TUI development environment.
- Run the following command to check whether the configuration has taken effect:
/mcps
The status of mcp-character-tools is Enabled, indicating that the MCP server is enabled.
Figure 1 Status
- In the TUI dialog box, enter the following instruction.
How do I use mcp-character-tools?
The function description and usage method are returned, indicating that the configuration of the local MCP server has taken effect.
Remote MCP Server
You can configure a remote MCP server.
Parameters
| Parameter | Type | Description |
|---|---|---|
| type | String | This parameter is mandatory. The value must be remote. |
| url | String | (Mandatory) URL of the remote MCP server |
| headers | Object | Request header |
| environment | Object | Environment variables set for running the server |
| oauth | Object | OAuth authentication configuration |
| enabled | Boolean | Whether to enable the MCP server |
| timeout | Number | Response timeout interval for obtaining the MCP service tool, in milliseconds. The default interval is 5,000 ms. |
Configuration Example
This section uses Windows as an example to describe how to configure a remote MCP server in a personal environment.
- In the C:/Users/Username/.codeartsdoer/ directory, create the codearts_cli.jsonc file, write the following configuration to the file, and restart the CodeArts Agent CLI:
{ "mcp": { // EdgeOne Pages Deploy MCP is a dedicated service that allows you to quickly deploy web applications on EdgeOne Pages and generate public access links. This enables you to instantly preview and share AI-generated web pages. "edgeone-pages": { "type": "remote", "url": "https://mcp-on-edge.edgeone.site/mcp-server", "enabled": true, "timeout": 45000, "headers": { // API request authentication header, which is optional "Authorization": "Bearer edgeone_token_your_secret" } } } } - Enter the TUI development environment.
- Open the root directory of the target project.
- Right-click in the blank area and select Open Windows Terminal here.
- Enter /codearts in the terminal and press Enter to enter the TUI development environment.
- Run the following command to check whether the configuration has taken effect:
/mcps
The status of edgeone-pages is Enabled, indicating that the MCP server is enabled.
Figure 2 Status
- In TUI development mode, enter the following instruction and press Enter:
Generate and release a snake game.
AI invokes the MCP server and creates a snake game.
Figure 3 MCP server invoked successfully
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot