mcpField
Q
Quirna

Quirna

Local
quirna.comAI & Agents0Updated 5w ago

About Quirna

Quirna is an MCP server for agents that need human approval before consequential actions such as refunds, production deployments, or destructive migrations. Organization policies determine approvers and quorum; decisions are made on a phone and signed for later verification.

Key features

  1. 01Request and wait for human approval
  2. 02Apply organization-defined approval policies
  3. 03Decide requests on a phone
  4. 04Sign and export decision records
  5. 05Distinguish denials from system failures

Use cases

  1. 01Get approval before issuing a refund
  2. 02Confirm before a production deployment
  3. 03Gate a destructive database migration

MCP support

It exposes the `request_approval` and `check_approval` tools to MCP clients, allowing agents to request human decisions and check pending requests.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"quirna": {
"command": "npx",
"args": [
"-y",
"@quirna/mcp"
],
"env": {
"QUIRNA_API_KEY": "<QUIRNA_API_KEY>",
"QUIRNA_REQUESTER_ID": "<QUIRNA_REQUESTER_ID>",
"QUIRNA_REQUESTER_NAME": "<QUIRNA_REQUESTER_NAME>",
"QUIRNA_ENVIRONMENT": "<QUIRNA_ENVIRONMENT>",
"QUIRNA_WAIT_MS": "<QUIRNA_WAIT_MS>",
"QUIRNA_BASE_URL": "<QUIRNA_BASE_URL>"
}
}
}
}
Run commandnpx -y @quirna/mcp
Environment variables to set
QUIRNA_API_KEYSecretKey of a System registered in the Quirna Console (Users → Systems).
QUIRNA_REQUESTER_IDWho the Console shows as having asked. Defaults to "mcp".
QUIRNA_REQUESTER_NAMEDisplay name for the requester. Defaults to "AI agent".
QUIRNA_ENVIRONMENTEnvironment used when a tool call names none. Empty means the org default.
QUIRNA_WAIT_MSHow long a tool call waits for a decision before returning pending. Defaults to 90000.
QUIRNA_BASE_URLOverride the Quirna API URL. Leave unset.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@quirna/mcp0.1.2

Tools

2

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
kindstringYesWhat class of action this is, in snake_case — for example "database_migration", "refund", "deploy". The organization's policy for this kind decides who is asked and whether a human is needed at all.
tierenumNoRaise the risk tier shown to the approver. The policy sets the floor; this can only raise it, never lower it.routine | elevated | critical
messagestringYesOne imperative line naming the action, shown as the headline on the approver's phone: "Drop table users_v1 on production". Write it so someone who cannot see your session can judge it.
environmentstringNoDeployment label, for example "production" or "staging".
identifiersobjectNoThe specifics an approver needs, as flat string key/value pairs: amounts, table names, account ids, hostnames. For example {"table": "users_v1", "rows": "48213"}. Policy conditions are evaluated against these.

Details

From the project README

@quirna/mcp

Ask a human before your agent acts. Official Quirna server for the Model Context Protocol.

Add one block of config and your agent gains a tool it can call before doing something consequential — a refund, a production deploy, a destructive migration. A named human approves it on their phone. The agent proceeds only if they said yes, and the decision is signed and kept.

Nothing moves until someone says yes.

Your agent's framework may already have a way to pause for confirmation. This is different in three ways that matter once it is not just you at the terminal:

  • The decision leaves the loop. It goes to whoever your policy nominates, on their phone, behind Face ID — not to whoever happens to be watching the agent run.
  • Who approves is policy, not prompt. Quorum, risk tier and which group is asked live in your organization's settings. The agent cannot choose its own approvers, and neither can a prompt injection.
  • It leaves evidence. Every decision is signed at the moment it is made, and exports to a file a third party can verify without trusting us.

Install

Nothing to install: the config below runs it on demand with npx. To pin it, npm install -g @quirna/mcp and use quirna-mcp as the command.

Before you start

The mobile app is in private beta. Decisions are made on the phone and nowhere else — the Console configures policies and never decides one — so without the app an approval request is created and then waits until it expires. Write to [email protected] and we will get you in. Everything else below works today.

Then, in the Console:

  1. A System key. Open Users → Systems and register one for this agent. You get a key (ck_…), shown once.
  2. A Policy, which decides who approves a given kind of request and how many of them are needed.
  3. The app, on the phone of whoever will approve.

Configure your agent

Claude Code — claude mcp add quirna --env QUIRNA_API_KEY=ck_… -- npx -y @quirna/mcp

Cursor (~/.cursor/mcp.json), Claude Desktop (claude_desktop_config.json) and most other clients take the same shape:

{
  "mcpServers": {
    "quirna": {
      "command": "npx",
      "args": ["-y", "@quirna/mcp"],
      "env": {
        "QUIRNA_API_KEY": "ck_your_system_key",
        "QUIRNA_REQUESTER_NAME": "Ops Agent",
        "QUIRNA_ENVIRONMENT": "production"
      }
    }
  }
}
Environment
VariableDefaultWhat it does
QUIRNA_API_KEY—Required. The System key from the Console.
QUIRNA_REQUESTER_NAMEAI agentThe name an approver sees as having asked.
QUIRNA_REQUESTER_IDmcpStable id for this caller in the audit trail.
QUIRNA_ENVIRONMENT—Applied when a call does not name one.
QUIRNA_WAIT_MS90000How long a tool call waits before reporting back.
QUIRNA_BASE_URLhttps://api.quirna.comPoint at a self-hosted API.

On the key. It lives in your agent client's config file, which is often in a dotfile and sometimes in a repo. Treat it as a deployment credential: give each agent its own System rather than sharing one, scope it in the Console to the kinds it may request, and rotate it there if the file gets somewhere it should not be. A System key can only ask — it can never approve anything.

The tools

request_approval

Creates the request and waits for a human.

ArgumentRequired
kindyesThe class of action, e.g. database_migration. Selects the policy.
messageyesOne imperative line, shown as the headline on the phone.
identifiersnoFlat string key/values an approver needs: amounts, table names, hosts.
environmentnoproduction, staging, …
tiernoroutine, elevated, critical. Can only raise the policy's floor.

Notably absent: who approves, how many are needed, how long it stays open. Those are the organization's to decide in the Console, once, for every caller — an agent that could pick its own approvers would not be a control.

check_approval

Takes an approval_id and waits for that existing request. Use it when request_approval came back still pending; calling request_approval again would put the same action in front of a second human.

What the agent gets back

Anything that is not APPROVED opens with NOT AUTHORIZED, followed by why, and by an explicit instruction not to perform the action. The structured result carries authorized: true | false for code that parses instead of reading.

Asking and getting an answer is a successful tool call, whatever the answer was — a denial is the product working, not a failure. isError is reserved for the cases where the tool could not run at all and nothing was learned: Quirna unreachable, a key rejected, the call aborted. So an agent can tell "a human said no" from "the approval system is down", which are opposite situations, and nothing invites it to retry a denial into a second person's hands.

When nobody answers

An agent running unattended at 3am will hit this: the request expires and the action is never authorized. That is the correct outcome, not a bug to design around. If your agent needs to run without anyone awake, the answer is a policy whose condition does not require a human for that case — not a longer timeout.

Two timeouts are in play, and they are not the same:

  • QUIRNA_WAIT_MS (default 90s) is how long a tool call waits before returning the approval id so the agent can resume. It exists because agent clients kill long tool calls. The request stays live.
  • The policy's expiry (set in the Console) is how long the request stays open. Only this one can time a request out.

Links

MIT © Quirna

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.