Approval Rules
Auto-approve small agent actions under your rules; approval cards for the rest.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"approve": {
"url": "https://approve.cloudforbots.com/mcp"
}
}
}遠端端點
https://approve.cloudforbots.com/mcpstreamable-http它能做什麼
工具清單
工具(6)
🟢check_action(action)
Before a consequential action, ask whether the user's rules auto-approve it. Returns auto_approve, needs_approval (with a plain-English approval card and a link the user can tap) or deny. Free plan is watch-only: it reports what it WOULD decide and logs it for the weekly report, but nothing counts as approved, so ask your user as you normally would.
輸入結構描述
{
"type": "object",
"properties": {
"action": {
"type": "object",
"description": "The action your agent wants to take.",
"properties": {
"type": {
"type": "string",
"description": "Short verb: read, search, draft, send_email, send_message, post, purchase, payment, delete, deploy, change_settings, ..."
},
"summary": {
"type": "string",
"description": "One plain sentence of what will happen, e.g. \"Buy a $3.99 domain renewal for example.com\"."
},
"amount_usd": {
"type": "number",
"description": "Money involved, if any."
},
"target": {
"type": "string",
"description": "Who or what it touches: a recipient email, domain, file, repo."
},
"reversible": {
"type": "boolean",
"description": "Can it be undone easily?"
}
},
"required": [
"type",
"summary"
]
}
},
"required": [
"action"
]
}🟢get_decision(card_id, card_token)
Check whether the user approved or rejected an approval card (by card_id and card_token). Only act when status is approved.
輸入結構描述
{
"type": "object",
"properties": {
"card_id": {
"type": "string"
},
"card_token": {
"type": "string"
}
},
"required": [
"card_id",
"card_token"
]
}🟡set_rules(rules, confirm)
Save the user's rules (needs an API key so they stay yours). Each rule: {name, when:{type:[...], max_usd, min_usd, reversible, target_ends_with:[...]}, verdict:"auto"|"ask"|"deny"}. First matching rule wins; anything unmatched needs approval. Call once without confirm to preview, then with confirm=true.
輸入結構描述
{
"type": "object",
"properties": {
"rules": {
"type": "array",
"items": {
"type": "object"
}
},
"confirm": {
"type": "boolean"
}
},
"required": [
"rules"
]
}🟢get_rules
Show the rules in effect for your key (or the default starter rules).
輸入結構描述
{
"type": "object",
"properties": {}
}🟢weekly_report
Draft a plain-English report of the last 7 days: actions checked, how many your rules would auto-approve, how many needed you, top kinds of asks, and rule suggestions. Read-only; sends nothing.
輸入結構描述
{
"type": "object",
"properties": {}
}🟢usage_and_upgrade
Show today's usage for your key or IP and the $49/month All Access upgrade link (cloudforbots.com/offer). Free tier: 200 calls/day. Not metered.
輸入結構描述
{
"type": "object",
"properties": {}
}社群
證據