cQnce MCP

v0.1.3
io.github.cqnce-app/cqnce-mcp Checked 14 hours ago Published 2 months ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

submit_authorization_request

Submit a human authorization request to cQnce. Use this BEFORE performing any risky, destructive, or irreversible action (e.g. deploying to production, executing a database migration, making a payment, modifying credentials). Returns a requestId that you can pass to wait_for_approval or poll_request_status.

ParameterTypeDescription
payload *objectStructured description of the action requiring authorization. Include all context a human needs to approve or reject (e.g. action, target, amount, reason).
callbackUrlstringWebhook URL to notify when the request is resolved.
metadataobjectOptional additional context (correlation IDs, tags, environment, etc.).
routingModestringOverride the routing mode configured on the matching rule.
routingRuleIdstringDirectly select a routing rule by ID, bypassing filter evaluation.
wsClientIdstringWebSocket client ID for real-time status delivery.

poll_request_status

Check the current status of a cQnce authorization request. Terminal statuses are: APPROVED, REJECTED, EXPIRED, CANCELLED. PENDING means the request is still waiting for a human decision. For a blocking wait, use wait_for_approval instead.

ParameterTypeDescription
requestId *stringThe request ID returned by submit_authorization_request.

wait_for_approval

Submit an authorization request and BLOCK until a human approves or rejects it (or until the timeout elapses). This is the primary tool for human-in-the-loop workflows: call it, wait for the result, and proceed ONLY if status is APPROVED. If status is REJECTED or EXPIRED, do NOT proceed with the action.

ParameterTypeDescription
payload *objectStructured description of the action requiring authorization. Include all context a human needs to approve or reject.
callbackUrlstringWebhook URL to notify when the request is resolved.
metadataobjectOptional additional context (correlation IDs, tags, environment, etc.).
pollIntervalMsintegerHow often to poll for a status update in milliseconds (default: 3000).
routingModestringOverride the routing mode configured on the matching rule.
routingRuleIdstringDirectly select a routing rule by ID, bypassing filter evaluation.
timeoutMsintegerMaximum milliseconds to wait for a human decision before giving up (default: 300000 = 5 min).

cancel_request

Cancel a pending cQnce authorization request. Use this if the action is no longer needed and you want to release the human agents.

ParameterTypeDescription
requestId *stringThe request ID to cancel.

list_requests

List authorization requests for this project. Useful for monitoring ongoing requests, debugging workflows, and auditing decisions.

ParameterTypeDescription
endDatestringISO 8601 end date filter (e.g. 2024-12-31).
limitintegerMaximum number of results to return (default: 50).
offsetintegerPagination offset (default: 0).
projectIdstringFilter by project ID (admin token required when used).
startDatestringISO 8601 start date filter (e.g. 2024-01-01).
statusstringFilter by request status.
tagsarrayFilter by one or more tags.

get_request

Get full details of a single authorization request, including payload, metadata, agent responses, and current status.

ParameterTypeDescription
requestId *stringThe request ID to retrieve.