SafeRoute
Noncustodial Base x402 payment control and seller settlement recovery
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (2)
- LOWin prepare_token_transfer
- LOWin guard_base_trade
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"saferoute": {
"url": "https://saferoute-x402-production.up.railway.app/mcp"
}
}
}Remote-Endpunkte
https://saferoute-x402-production.up.railway.app/mcpstreamable-httphttps://api.usesaferoute.com/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (13)
⚪protect_payment(idempotencyKey, payment, settlement)
One automatic x402 payment-safety front door: pre-payment ALLOW/BLOCK, duplicate-safe ID binding, policy risk reasons, and optional mined-settlement verification. Free and rate-limited; the buyer signs and pays.
Eingabe-Schema
{
"type": "object",
"properties": {
"idempotencyKey": {
"type": "string",
"minLength": 16,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9._:-]+$"
},
"payment": {
"type": "object",
"properties": {
"payer": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"paymentRequired": {
"type": "object",
"properties": {
"x402Version": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"resource": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"url"
],
"additionalProperties": {}
},
"accepts": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"scheme": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"network": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"asset": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"amount": {
"type": "string",
"pattern": "^\\d+$"
},
"payTo": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"maxTimeoutSeconds": {
"type": "integer",
"minimum": 1,
"maximum": 3600
}
},
"required": [
"scheme",
"network",
"asset",
"amount",
"payTo",
"maxTimeoutSeconds"
],
"additionalProperties": {}
}
}
},
"required": [
"x402Version",
"resource",
"accepts"
],
"additionalProperties": {}
},
"policy": {
"type": "object",
"properties": {
"maxAmountAtomic": {
"type": "string",
"pattern": "^\\d+$"
},
"reviewAboveAmountAtomic": {
"type": "string",
"pattern": "^\\d+$"
},
"allowedPayees": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
}
},
"blockedPayees": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
}
},
"allowedHosts": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
}
},
"required": [
"payer",
"paymentRequired"
],
"additionalProperties": false
},
"settlement": {
"type": "object",
"properties": {
"paymentResponseHeader": {
"type": "string",
"minLength": 1,
"maxLength": 8192
},
"transactionHash": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{64}$"
}
},
"additionalProperties": false
}
},
"required": [
"idempotencyKey",
"payment"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_base_swap(from, to, amount, sourceAgentId, referralCode, ...)
Wallet-free approved-token Base swap safety preflight. Costs $0.001 USDC.
Eingabe-Schema
{
"type": "object",
"properties": {
"from": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"to": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"amount": {
"type": "string"
},
"sourceAgentId": {
"type": "string"
},
"referralCode": {
"type": "string"
},
"intentId": {
"type": "string"
}
},
"required": [
"from",
"to",
"amount"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_safe_swap_quote(from, to, amount, wallet, executionMode, ...)
Safety-checked noncustodial Base swap quote. Costs $0.01 USDC; the buyer signs and broadcasts.
Eingabe-Schema
{
"type": "object",
"properties": {
"from": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"to": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"amount": {
"type": "string"
},
"wallet": {
"type": "string"
},
"executionMode": {
"type": "string",
"enum": [
"standard",
"gasless"
]
},
"sourceAgentId": {
"type": "string"
},
"referralCode": {
"type": "string"
},
"intentId": {
"type": "string"
}
},
"required": [
"from",
"to",
"amount",
"wallet"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡prove_safe_action(action, from, to, amount, wallet, ...)
Create a signed pre-sign ALLOW, BLOCK, or REVIEW receipt. Costs $0.05 USDC.
Eingabe-Schema
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"trade",
"transaction",
"token"
]
},
"from": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"to": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"amount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"wallet": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"executionMode": {
"type": "string",
"const": "standard"
},
"token": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"transaction": {
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"to": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"data": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]+$"
},
"value": {
"type": "string",
"pattern": "^\\d+$"
}
},
"required": [
"from",
"to",
"data"
]
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"action"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_wallet_risk(wallet, sourceAgentId, referralCode, intentId)
Read-only Base wallet account-posture check. Costs $0.01 USDC.
Eingabe-Schema
{
"type": "object",
"properties": {
"wallet": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"wallet"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_token_risk(token, sourceAgentId, referralCode, intentId)
Approved Base token risk and liquidity check. Costs $0.03 USDC.
Eingabe-Schema
{
"type": "object",
"properties": {
"token": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"token"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪preflight_transaction(transaction, sourceAgentId, referralCode, intentId)
Decode and simulate approved Base ERC-20 calldata or SafeRoute's exact official ERC-8004 registration. Costs $0.05 USDC.
Eingabe-Schema
{
"type": "object",
"properties": {
"transaction": {
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"to": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"data": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]+$"
},
"value": {
"type": "string",
"pattern": "^\\d+$"
}
},
"required": [
"from",
"to",
"data"
]
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"transaction"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪prepare_token_transfer(token, amount, sender, recipient, sourceAgentId, ...)
Prepare a bounded, simulated unsigned Base token transfer. Costs $0.10 USDC.
Eingabe-Schema
{
"type": "object",
"properties": {
"token": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"amount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"sender": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"recipient": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"token",
"amount",
"sender",
"recipient"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪guard_base_trade(from, to, amount, wallet, executionMode, ...)
Complete pre-sign trade guard with route and simulation evidence. Costs $0.12 USDC.
Eingabe-Schema
{
"type": "object",
"properties": {
"from": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"to": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"amount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"wallet": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"executionMode": {
"type": "string",
"const": "standard"
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"from",
"to",
"amount",
"wallet"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪verify_transaction_intent(transactionHash, intent, sourceAgentId, referralCode, intentId)
Compare a mined Base transaction with buyer intent. Costs $0.05 USDC.
Eingabe-Schema
{
"type": "object",
"properties": {
"transactionHash": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{64}$"
},
"intent": {
"type": "object",
"properties": {
"sender": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"recipient": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"sellToken": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"buyToken": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"sellAmount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"minimumBuyAmount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"expectedBuyAmount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"expectedTarget": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"expectedCalldataHash": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{64}$"
}
},
"required": [
"sender",
"recipient",
"sellToken",
"buyToken",
"sellAmount",
"minimumBuyAmount"
]
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"transactionHash",
"intent"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪verify_swap_execution(transactionHash, receipt, receiptSignature)
Verify a standard-mode SafeRoute Base execution against its signed receipt. Free; referral payouts remain disabled.
Eingabe-Schema
{
"type": "object",
"properties": {
"transactionHash": {
"type": "string"
},
"receipt": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"receiptSignature": {
"type": "string"
}
},
"required": [
"transactionHash",
"receipt",
"receiptSignature"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪route_agent_payment(request)
Prepare a bounded, simulated exact-buy route to a payer-owned Base USDC target covering the x402 payment and optional buffer. Costs $0.05 USDC; buyer confirms funding, then retries standard x402 once.
Eingabe-Schema
{
"type": "object",
"properties": {
"request": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"request"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢list_supported_assets
List SafeRoute's seven approved Base assets, limits, fees, and execution modes. Free.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}Community
Nachweis