Qoder CN CLI can connect to Model Context Protocol (MCP) services to use external tools and data sources. After a service is added, its tools are made available to the agent in both interactive and non-interactive sessions.
Use
Stdio services start automatically with the CLI. If Qoder CN CLI is already running, use
Use
If no type is specified, a local command service should use the default stdio behavior.
Use
The MCP service configuration is saved in the following files:
List configured services:
Remove a service:
Common MCP services include:
MCP tools are still subject to Qoder CN CLI's permission system. In the default mode, calling an MCP tool usually requests confirmation. You can approve a specific tool, approve all tools under a specific MCP service, or configure rules in settings.
MCP tool names usually use the following format:
Example:
If an MCP tool is unavailable:
Quick Start
Use qodercli mcp add to add a stdio MCP service. The command after -- is the service process that Qoder CN CLI needs to start.
/mcp reload to rediscover MCP services and tools; new sessions discover them automatically at startup.
Service Types
Use -t to select the MCP transport type.
| Type | Applicable Scenarios |
|---|---|
stdio | The MCP service runs as a local command |
sse | The MCP service is exposed through a Server-Sent Events endpoint |
http | The MCP service is exposed through an HTTP endpoint |
ws | The MCP service is exposed through a WebSocket endpoint |
Scopes
Use -s to select where the MCP service configuration is saved.
| Scope | Applicable Scenarios |
|---|---|
user | You want the service to be available in all projects of the current account |
local | You want the service to be available only in the current project on this machine. The default scope is local |
project | You want the service configuration to be shared with the project |
Managing Services
List configured services:
Recommended Services
Common MCP services include:
Permissions
MCP tools are still subject to Qoder CN CLI's permission system. In the default mode, calling an MCP tool usually requests confirmation. You can approve a specific tool, approve all tools under a specific MCP service, or configure rules in settings.
MCP tool names usually use the following format:
Troubleshooting
If an MCP tool is unavailable:
- Run
qodercli mcp listto confirm that the service is configured. - If Qoder CN CLI is already running, run
/mcp reloadafter adding or modifying a service. - Confirm that the command after
--can run normally in the terminal. - For
npx-based services, confirm that Node.js and network access are available. - If the service is connected but tool calls are blocked, check the permission prompts.