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 分