XGuard — Payment Decision & Discovery
Payment decisions, durable evidence, x402 resource discovery and live gateway status for AI agents.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"xguard": {
"url": "https://xguard-mainnet.maqamapp.workers.dev/mcp"
}
}
}遠端端點
https://xguard-mainnet.maqamapp.workers.dev/mcpstreamable-httphttps://xguardgate.com/mcpstreamable-http它能做什麼
工具清單
工具(8)
🔴xguard_execute(intent, operation, capability, input, idempotency_key)
Execute an explicit scoped provider operation, or a supported public-source outcome. intent:demo is free. Never infer a mutation from ambiguous text.
輸入結構描述
{
"type": "object",
"properties": {
"intent": {
"type": [
"string",
"object"
]
},
"operation": {
"type": "string"
},
"capability": {
"type": "string"
},
"input": {
"type": "object"
},
"idempotency_key": {
"type": "string"
}
},
"additionalProperties": true
}🔴xguard_secretless_call(capability, operation, input, target, method, ...)
Call an allowed provider operation with a capability. Enforces scope, call/credit budget and billing before server-side credential injection. Writes require idempotency_key.
輸入結構描述
{
"type": "object",
"properties": {
"capability": {
"type": "string",
"description": "Scoped XGuard capability, never an upstream key."
},
"operation": {
"type": "string",
"enum": [
"github.repository.read",
"github.issue.create",
"github.issue.comment",
"github.pull_request.create",
"cloudflare.zone.read",
"cloudflare.worker.metadata",
"slack.channel.read",
"slack.message.send",
"notion.page.read",
"notion.database.read",
"notion.page.create",
"notion.page.update",
"openai.response.create",
"anthropic.message.create",
"gemini.content.generate",
"stripe.customer.read"
]
},
"input": {
"type": "object"
},
"target": {
"type": "string",
"format": "uri"
},
"method": {
"type": "string",
"enum": [
"GET",
"HEAD",
"POST",
"PUT",
"PATCH",
"DELETE"
]
},
"body_json": {},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 128
}
},
"required": [
"capability"
],
"additionalProperties": false,
"anyOf": [
{
"required": [
"operation",
"input"
]
},
{
"required": [
"target"
]
}
]
}🟢xguard_preflight(intent, operation, capability, input, idempotency_key)
Inspect validation, scope and remaining capability budget without reserving, billing or executing. Execution rechecks everything.
輸入結構描述
{
"type": "object",
"properties": {
"intent": {
"type": [
"string",
"object"
]
},
"operation": {
"type": "string"
},
"capability": {
"type": "string"
},
"input": {
"type": "object"
},
"idempotency_key": {
"type": "string"
}
},
"additionalProperties": true
}🟢xguard_quote(intent, operation, capability, input, idempotency_key)
Inspect XGuard credit pricing for a capability, or obtain a signed x402 quote for a public outcome. Does not execute.
輸入結構描述
{
"type": "object",
"properties": {
"intent": {
"type": [
"string",
"object"
]
},
"operation": {
"type": "string"
},
"capability": {
"type": "string"
},
"input": {
"type": "object"
},
"idempotency_key": {
"type": "string"
}
},
"additionalProperties": true
}🟢xguard_verify_receipt(proof, receipt, result_sha256)
Verify a ProofRail proof and optionally its bound x402 receipt and result digest. Signature validity does not prove source truth.
輸入結構描述
{
"type": "object",
"properties": {
"proof": {
"type": "string",
"maxLength": 16000
},
"receipt": {
"type": "object"
},
"result_sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"proof"
],
"additionalProperties": false
}🟢xguard_discover
Find the paid API catalog and buying instructions, plus explicit provider operations and input schemas.
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢xguard_status
Read observed execution/MCP metrics and configuration; empty observations do not imply uptime.
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢xguard_get_result(payment_identifier, quote)
Recover a paid public outcome with its payment identifier and original signed quote without execution or another payment.
輸入結構描述
{
"type": "object",
"properties": {
"payment_identifier": {
"type": "string"
},
"quote": {
"type": "string"
}
},
"required": [
"payment_identifier",
"quote"
],
"additionalProperties": false
}社群
證據