cQnce MCP

io.github.cqnce-app由 GitHub 帳號 cqnce-app 發布v0.1.3更新於 Oct 24, 2026

Add human approval to AI agent workflows through cQnce authorization tools.

已驗證Streamable HTTP可網頁執行效率與工作流安全與監控

概覽

AI 產生的概覽

cQnce MCP 讓 AI 代理在執行操作前提交人工審批,並等待核准或拒絕的結果。

可以做什麼
  • 提交操作請求並阻塞等待人工核准或拒絕,或以非阻塞方式提交並立即取得請求 ID。
  • 查詢待處理請求的狀態、取消請求,以及依狀態、日期或標籤列出請求並檢視詳細內容與代理回覆。
  • 在提供管理員權杖時,管理專案、路由規則、代理、團隊與 webhook 回呼。
適用情境
適用於代理可能執行高風險或不可逆操作的情境,例如刪除資料、部署到正式環境、付款轉帳或變更憑證,需要先由人工確認。也適合需要留存審批紀錄的受監管或合規敏感流程。
執行需求
可使用 mcp.cqnce.app 的遠端 Streamable HTTP 端點並以 Authorization 承載權杖驗證,或在本機以 Node.js 18 以上版本執行 npm 套件。需要 cQnce 帳號與專案 API 金鑰,透過 CQNCE_API_KEY 或 Authorization 標頭提供;選用的 CQNCE_ADMIN_TOKEN 可啟用管理工具,CQNCE_BASE_URL 可指向私有部署。
安裝前請注意
API 金鑰與管理員權杖都是機密,管理員權杖可管理專案、代理、團隊與回呼。在「代理主動請求」模式下,遭入侵或設定錯誤的代理可能根本不呼叫審批工具,README 建議正式環境改用主機端強制攔截。審批請求會把操作細節與選用附件傳送到 cQnce,核准後對應操作即會執行。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 cQnce MCP,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.cqnce-app%2Fcqnce-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "cqnce": {
      "type": "http",
      "url": "https://mcp.cqnce.app/mcp"
    }
  }
}

README

@cqnce/mcp-server

Official MCP server for cQnce — add human-in-the-loop authorization to any AI agent or workflow.

Connect Claude, Cursor, GitHub Copilot, or any MCP-compatible client to cQnce so the AI can request human approval before performing risky or irreversible actions.

Quick start

bash
npx @cqnce/mcp-server

Set the CQNCE_API_KEY environment variable to your project API key before running.

Approval modes

Mode 1 — Agent-requested approval

The agent calls wait_for_approval or submit_authorization_request itself, as instructed in the system prompt or via tool discovery. This is the easiest integration path and works well for supervised workflows.

Risk: a compromised or misconfigured agent may simply not call the tool.

Mode 2 — Enforced approval gate (recommended for production)

The host application or executor intercepts every sensitive tool call before it runs and requires a prior cQnce approval, regardless of what the agent requested. The gate lives outside the model context — the agent cannot skip it.

This is a real security boundary. Build enterprise and compliance-sensitive integrations on this mode.

python
# Example: host-side interception (framework-agnostic)HIGH_RISK_TOOLS = {"send_payment", "deploy_production", "delete_customer"}
def execute_tool_call(tool_call):    if tool_call.name not in HIGH_RISK_TOOLS:        return run_tool(tool_call)    decision = cqnce.submit_and_wait(        payload={"action": tool_call.name, "parameters": tool_call.arguments},        timeout_seconds=300,    )    if decision["status"] != "APPROVED":        return {"error": "not_authorized", "status": decision["status"]}    return run_tool(tool_call)

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "cqnce": {      "command": "npx",      "args": ["-y", "@cqnce/mcp-server"],      "env": {        "CQNCE_API_KEY": "your-project-api-key"      }    }  }}

Cursor

Add to .cursor/mcp.json in your project (or the global ~/.cursor/mcp.json):

json
{  "mcpServers": {    "cqnce": {      "command": "npx",      "args": ["-y", "@cqnce/mcp-server"],      "env": {        "CQNCE_API_KEY": "your-project-api-key"      }    }  }}

Any MCP client (stdio transport)

bash
CQNCE_API_KEY=your-project-api-key npx @cqnce/mcp-server

Cloud agents (Streamable HTTP / remote MCP)

For cloud-hosted agents that cannot run local processes, use the cQnce MCP Worker deployed on Cloudflare Workers. It speaks the MCP Streamable HTTP transport and is stateless — every request authenticates with your API key.

Configure your cloud agent framework to connect to:

https://mcp.cqnce.app/mcpAuthorization: Bearer <your-project-api-key>

Example (Claude API with MCP):

python
import anthropic
client = anthropic.Anthropic()
response = client.beta.messages.create(    model="claude-opus-4-5",    max_tokens=1024,    mcp_servers=[        {            "type": "url",            "url": "https://mcp.cqnce.app/mcp",            "name": "cqnce",            "authorization_token": "your-project-api-key",        }    ],    messages=[{"role": "user", "content": "..."}],    betas=["mcp-client-2025-04-04"],)
Self-hosting

The Worker source is in this repository. Deploy your own instance to Cloudflare Workers:

bash
npm installnpx wrangler deploy

Set CQNCE_BASE_URL in the Cloudflare dashboard if you use a private cQnce deployment (defaults to https://api.cqnce.app).

Configuration

VariableRequiredDescription
CQNCE_API_KEYYesProject API key from cqnce.app
CQNCE_BASE_URLNoAPI base URL (default: https://api.cqnce.app)
CQNCE_ADMIN_TOKENNoTenant admin JWT — enables project/agent/team management tools

Tools

Core (requires CQNCE_API_KEY)

ToolDescription
wait_for_approvalSubmit a request and block until a human approves or rejects it. This is the primary tool for human-in-the-loop workflows.
submit_authorization_requestSubmit a request and return the requestId immediately (non-blocking).
poll_request_statusCheck the current status of a request by ID.
cancel_requestCancel a pending request.
list_requestsList requests for this project (filterable by status, date, tags).
get_requestGet full details of a single request including agent responses.

Admin (requires CQNCE_ADMIN_TOKEN)

Project management, routing rule configuration, agent/team management, and webhook callbacks.

Recommended system prompt

When integrating Claude via the Anthropic API, add this system prompt to enforce the authorization policy automatically — without relying on the user to request it each time:

You have access to the cQnce tool for human-in-the-loop authorization.
ALWAYS call wait_for_approval BEFORE performing any action that is:- Destructive or irreversible (deleting data, dropping tables, removing files)- Affecting production systems (deployments, database migrations, config changes)- Financial (payments, transfers, subscription changes)- Involving credentials or access control (creating/revoking API keys, changing permissions)
In the approval payload, include:- "action": what you are about to do- "target": what resource is affected- "reason": why this action is needed- "risk": what happens if approved or rejected- "attachments": (optional) list of supporting files as { name, contentType, data (base64) }  — include logs, diffs, screenshots, or any evidence that helps the reviewer decide
When the response status is "REJECTED":- Read the rejection reason carefully.- If the reason identifies missing information or context, gather that information,  enrich the payload (or attachments), and resubmit via wait_for_approval.- Only give up if the rejection reason makes clear the action itself is not permitted.
Proceed ONLY if the returned status is "APPROVED".If "EXPIRED" or the rejection reason leaves no actionable path forward, stop and explain.

Example

Once configured, you can tell Claude:

"Before deleting the production database, ask for human approval via cQnce."

Claude will call wait_for_approval with the action details, pause until a human approves or rejects from the cQnce mobile app, and only proceed if the status is APPROVED. If rejected with a reason (e.g. "missing rollback plan"), Claude will gather that information and resubmit automatically.

Requirements

  • Node.js 18+
  • A cQnce account and project API key — sign up free

來源:README.md,提交 ae05e67

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v0.1.3最新Sep 28, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分