MCP server mode for Qoder CLI โ delegate coding tasks to local Qoder agents from any MCP client.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
English | ็ฎไฝไธญๆ
The missing MCP server mode for Qoder CLI โ delegate coding tasks to local Qoder agents from any MCP client (Qoder IDE, Claude Code, Cursorโฆ).
A minimal MCP server that wraps the local qodercli (Qoder CLI) as MCP tools, letting any MCP client (Qoder IDE, Claude Code, Cursor, โฆ) call Qoder like a sub-agent.

30s demo: MCP client โ qodercli-mcp โ qodercli โ initialize โ tools/list โ list-models (real output, not sped up)
Zero-config via npx โ add this to your MCP client config (~/.qoder/mcp.json, claude_desktop_config.json, โฆ):
Three tools are exposed:
| Tool | Purpose |
|---|---|
ask-qoder | Delegate a task to qodercli |
list-sessions | Discover resumable sessions |
list-models | Runtime model discovery |
Highlights: verified permission semantics (see below โ e.g. dont_ask is read-only),
codex-style sandbox/approval_policy, structured output (session_id/duration_ms/total_credits).
Full configuration options are in Install.
Some CLI agents ship an official MCP server mode (e.g. codex mcp-server), but qodercli currently only acts as an MCP client. This project fills that gap with a thin wrapper: it spawns qodercli -p <prompt> under the hood and streams the result back over MCP stdio.
ask-qoder tool โ delegate a prompt to qoderclisession_id, is_error, duration_ms, total_credits, num_turns) via -o json parsinglist-sessions tool to discover resumable sessionslist-models tool for runtime model discovery (no stale model lists)reasoning_effort parameter (--reasoning-effort)instructions in the MCP initialize result guide clients on usagesandbox levels (read-only / workspace-write / danger-full-access)system_prompt / append_system_prompt)resume_session_id) for multi-turn delegationHTTP_PROXY / HTTPS_PROXY injection)qodercli installed and signed in (qodercli login)Option A โ npx (recommended): no clone needed, the MCP client downloads the package on first use.
Option B โ from source (for development):
Add to ~/.qoder/mcp.json. Prefer the absolute path of node and set QODERCLI_PATH explicitly (nvm-managed binaries are often missing from the PATH seen by MCP child processes):
Proxy Support: To use your Qoder CLI proxy quota, add
HTTP_PROXYand/orHTTPS_PROXYto the server's environment. When these are set at the MCP server level, they will be passed to all qodercli subprocesses.
Developers running a local checkout instead of the published package (Option B) should replace command/args with the absolute node path and /path/to/qodercli-mcp/src/index.js (nvm-managed node is often missing from the PATH seen by MCP child processes).
ask-qoder| Parameter | Type | Description |
|---|---|---|
prompt | string (required) | The task or question for qodercli |
cwd | string | Working directory |
model | string | Model for this session; call list-models to discover available names |
reasoning_effort | string | Reasoning effort level (--reasoning-effort), e.g. low/medium/high; depends on the model |
permission_mode | enum | dont_ask (default, read-only) | accept_edits (auto-approve file edits) | bypass_permissions (full access incl. shell) | auto | default; mutually exclusive with approval_policy, prefer sandbox |
approval_policy | enum | codex-style: untrustedโread-only | on-requestโauto | neverโfull access |
sandbox | enum | read-only | workspace-write | danger-full-access (codex-style; controls the effective permission mode) |
system_prompt | string | Replace the default system prompt |
append_system_prompt | string | Append instructions to the default system prompt |
resume_session_id | string | Resume a previous session |
output_format | string | Passed to -o (default json). Note: non-json formats degrade structured output (session_id etc. become unavailable) |
extra_args | string[] | Raw CLI args appended before the prompt; reserved flags (permission mode, system prompt, model, -o, -r, -w...) are rejected |
timeout_ms | number | Timeout in ms, default 600000 |
ask-qoder declares an MCP outputSchema and returns, in addition to the
human-readable text, a structuredContent object:
| sandbox | Effective permission mode | Effect on qodercli |
|---|---|---|
| (omitted) | dont_ask | Read-only: permission-requiring tools are silently denied |
read-only | dont_ask | Plus --disallowed-tools write_file,replace,run_shell_command as defense in depth |
workspace-write | accept_edits | Agent can create/modify files in cwd |
danger-full-access | bypass_permissions | Full access including shell |
Explicit permission_mode or approval_policy always wins over sandbox.
| Mode | Behavior |
|---|---|
dont_ask | Read-only: silently denies every tool call that requires permission. Headless-safe default |
accept_edits | Auto-approves file edits; shell still governed by policy |
bypass_permissions | Auto-approves everything including shell |
auto | qodercli's own automatic policy |
default | Interactive confirmation โ not headless-friendly, avoid in MCP calls |
list-sessionsLists local qodercli sessions (index, summary, session id) so a client can
pick a resume_session_id. Takes no arguments.
list-modelsLists models currently supported by qodercli (via --list-models), so a
client can pick a valid model value at runtime instead of relying on
stale knowledge. Returns both a text list and a structured models array.
Takes no arguments.
read-only disables write/shell tools โ good for audits and reviews.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/qodercli-mcp)<a href="https://allmcps.com/mcp/qodercli-mcp"><img src="https://allmcps.com/api/badge/qodercli-mcp?style=directory" alt="Qodercli MCP on AllMCPs" /></a>