x402 Preflight
Inspect and validate an x402 endpoint before an autonomous agent spends USDC.
Sollte ich dies verwenden
Qualität und Sicherheit
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": {
"x402-preflight": {
"url": "https://x402-wallet-readiness-service.vercel.app/mcp"
}
}
}Remote-Endpunkte
https://x402-wallet-readiness-service.vercel.app/mcpstreamable-httphttps://x402.chikocorp.com/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (3)
🟢inspect_x402_endpoint(resource_url, method, expected_network, max_price_usd)
Call before spending on an unfamiliar x402 resource. Free, read-only, and never sends payment credentials.
Eingabe-Schema
{
"type": "object",
"properties": {
"resource_url": {
"type": "string",
"format": "uri",
"pattern": "^https://",
"maxLength": 2048,
"description": "Public HTTPS x402 resource to inspect without payment credentials."
},
"method": {
"type": "string",
"enum": [
"GET",
"HEAD",
"POST"
],
"default": "GET"
},
"expected_network": {
"type": "string",
"pattern": "^[a-z0-9]+:[A-Za-z0-9._-]+$",
"maxLength": 100
},
"max_price_usd": {
"type": "number",
"minimum": 0,
"maximum": 1000000
}
},
"required": [
"resource_url"
],
"additionalProperties": false
}Ausgabe-Schema
{
"type": "object",
"properties": {
"profile": {
"type": "string",
"enum": [
"inspect",
"audit"
]
},
"decision": {
"type": "string",
"enum": [
"ALLOW",
"CAUTION",
"BLOCK",
"UNKNOWN"
]
},
"score": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"requestId": {
"type": "string",
"pattern": "^req_[A-Za-z0-9_-]+$"
},
"observedAt": {
"type": "string",
"format": "date-time"
},
"expiresAt": {
"type": "string",
"format": "date-time"
},
"resource": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"method",
"finalUrl",
"statusCode",
"latencyMs"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"method": {
"type": "string",
"enum": [
"GET",
"HEAD",
"POST"
]
},
"finalUrl": {
"type": "string",
"format": "uri"
},
"statusCode": {
"type": [
"integer",
"null"
]
},
"latencyMs": {
"type": "integer",
"minimum": 0
}
}
},
"payment": {
"type": "object",
"additionalProperties": false,
"required": [
"detected",
"challengeSource",
"x402Version",
"scheme",
"network",
"asset",
"amountAtomic",
"priceUsd",
"payTo",
"facilitator",
"maxTimeoutSeconds",
"bazaar"
],
"properties": {
"detected": {
"type": "boolean"
},
"challengeSource": {
"type": [
"string",
"null"
],
"enum": [
"header",
"body",
null
]
},
"x402Version": {
"type": [
"integer",
"null"
]
},
"scheme": {
"type": [
"string",
"null"
]
},
"network": {
"type": [
"string",
"null"
]
},
"asset": {
"type": [
"string",
"null"
]
},
"amountAtomic": {
"type": [
"string",
"null"
]
},
"priceUsd": {
"type": [
"number",
"null"
]
},
"payTo": {
"type": [
"string",
"null"
]
},
"facilitator": {
"type": [
"string",
"null"
]
},
"maxTimeoutSeconds": {
"type": [
"integer",
"null"
]
},
"bazaar": {
"type": "object",
"additionalProperties": false,
"required": [
"found",
"valid",
"type",
"method",
"toolName",
"description",
"inputSchemaPresent",
"outputSchemaPresent",
"examplePresent"
],
"properties": {
"found": {
"type": "boolean"
},
"valid": {
"type": [
"boolean",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
},
"method": {
"type": [
"string",
"null"
]
},
"toolName": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"inputSchemaPresent": {
"type": "boolean"
},
"outputSchemaPresent": {
"type": "boolean"
},
"examplePresent": {
"type": "boolean"
}
}
}
}
},
"cors": {
"type": "object",
"additionalProperties": false,
"required": [
"allowOrigin",
"allowMethods",
"allowHeaders",
"exposeHeaders",
"allowCredentials",
"browserAgentCompatible"
],
"properties": {
"allowOrigin": {
"type": [
"string",
"null"
]
},
"allowMethods": {
"type": "array",
"items": {
"type": "string"
}
},
"allowHeaders": {
"type": "array",
"items": {
"type": "string"
}
},
"exposeHeaders": {
"type": "array",
"items": {
"type": "string"
}
},
"allowCredentials": {
"type": [
"boolean",
"null"
]
},
"browserAgentCompatible": {
"type": [
"boolean",
"null"
]
}
}
},
"checks": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"status",
"severity",
"evidence"
],
"properties": {
"id": {
"type": "string",
"maxLength": 120
},
"status": {
"type": "string",
"enum": [
"PASS",
"WARN",
"FAIL",
"UNKNOWN"
]
},
"severity": {
"type": "string",
"enum": [
"critical",
"high",
"medium",
"low",
"info"
]
},
"evidence": {
"type": "string",
"maxLength": 2000
}
}
}
},
"issues": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"severity",
"retryable",
"message",
"remediation"
],
"properties": {
"code": {
"type": "string",
"pattern": "^[A-Z0-9_]+$"
},
"severity": {
"type": "string",
"enum": [
"critical",
"high",
"medium",
"low",
"info"
]
},
"retryable": {
"type": "boolean"
},
"message": {
"type": "string",
"maxLength": 2000
},
"remediation": {
"type": "string",
"maxLength": 2000
}
}
}
},
"discovery": {
"type": "object",
"additionalProperties": false,
"required": [
"openapi",
"llmsTxt",
"agentMetadata",
"x402Metadata"
],
"properties": {
"openapi": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"statusCode",
"contentType",
"present",
"valid",
"consistent"
],
"properties": {
"url": {
"type": "string"
},
"statusCode": {
"type": [
"integer",
"null"
]
},
"contentType": {
"type": [
"string",
"null"
]
},
"present": {
"type": "boolean"
},
"valid": {
"type": [
"boolean",
"null"
]
},
"consistent": {
"type": [
"boolean",
"null"
]
}
}
},
"llmsTxt": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"statusCode",
"contentType",
"present",
"valid",
"consistent"
],
"properties": {
"url": {
"type": "string"
},
"statusCode": {
"type": [
"integer",
"null"
]
},
"contentType": {
"type": [
"string",
"null"
]
},
"present": {
"type": "boolean"
},
"valid": {
"type": [
"boolean",
"null"
]
},
"consistent": {
"type": [
"boolean",
"null"
]
}
}
},
"agentMetadata": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"statusCode",
"contentType",
"present",
"valid",
"consistent"
],
"properties": {
"url": {
"type": "string"
},
"statusCode": {
"type": [
"integer",
"null"
]
},
"contentType": {
"type": [
"string",
"null"
]
},
"present": {
"type": "boolean"
},
"valid": {
"type": [
"boolean",
"null"
]
},
"consistent": {
"type": [
"boolean",
"null"
]
}
}
},
"x402Metadata": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"statusCode",
"contentType",
"present",
"valid",
"consistent"
],
"properties": {
"url": {
"type": "string"
},
"statusCode": {
"type": [
"integer",
"null"
]
},
"contentType": {
"type": [
"string",
"null"
]
},
"present": {
"type": "boolean"
},
"valid": {
"type": [
"boolean",
"null"
]
},
"consistent": {
"type": [
"boolean",
"null"
]
}
}
}
}
},
"operational": {
"type": "object",
"additionalProperties": false,
"required": [
"contentType",
"cacheControl",
"responseBytes",
"timeoutMs",
"redirectChain"
],
"properties": {
"contentType": {
"type": [
"string",
"null"
]
},
"cacheControl": {
"type": [
"string",
"null"
]
},
"responseBytes": {
"type": "integer",
"minimum": 0
},
"timeoutMs": {
"type": "integer",
"minimum": 1
},
"redirectChain": {
"type": "array",
"maxItems": 5,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"from",
"to",
"statusCode"
],
"properties": {
"from": {
"type": "string",
"format": "uri"
},
"to": {
"type": "string",
"format": "uri"
},
"statusCode": {
"type": "integer",
"minimum": 300,
"maximum": 399
}
}
}
}
}
},
"evidence": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"source",
"observation"
],
"properties": {
"id": {
"type": "string",
"maxLength": 120
},
"source": {
"type": "string",
"maxLength": 500
},
"observation": {
"type": "string",
"maxLength": 2000
}
}
}
},
"claimBoundary": {
"type": "object",
"additionalProperties": false,
"required": [
"proves",
"doesNotProve"
],
"properties": {
"proves": {
"type": "array",
"items": {
"type": "string"
}
},
"doesNotProve": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"required": [
"profile",
"decision",
"score",
"requestId",
"observedAt",
"expiresAt",
"resource",
"payment",
"cors",
"checks",
"issues",
"discovery",
"operational",
"evidence",
"claimBoundary"
],
"additionalProperties": false
}🟢audit_x402_endpoint(resource_url, method, expected_network, max_price_usd)
Purchase a deep, deterministic audit of payment schema, discovery metadata, redirects, CORS, cache, and operational signals. Returns HTTP 402 until the MCP client supplies a valid payment for this call.
Eingabe-Schema
{
"type": "object",
"properties": {
"resource_url": {
"type": "string",
"format": "uri",
"pattern": "^https://",
"maxLength": 2048,
"description": "Public HTTPS x402 resource to inspect without payment credentials."
},
"method": {
"type": "string",
"enum": [
"GET",
"HEAD",
"POST"
],
"default": "GET"
},
"expected_network": {
"type": "string",
"pattern": "^[a-z0-9]+:[A-Za-z0-9._-]+$",
"maxLength": 100
},
"max_price_usd": {
"type": "number",
"minimum": 0,
"maximum": 1000000
}
},
"required": [
"resource_url"
],
"additionalProperties": false
}Ausgabe-Schema
{
"type": "object",
"properties": {
"profile": {
"type": "string",
"enum": [
"inspect",
"audit"
]
},
"decision": {
"type": "string",
"enum": [
"ALLOW",
"CAUTION",
"BLOCK",
"UNKNOWN"
]
},
"score": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"requestId": {
"type": "string",
"pattern": "^req_[A-Za-z0-9_-]+$"
},
"observedAt": {
"type": "string",
"format": "date-time"
},
"expiresAt": {
"type": "string",
"format": "date-time"
},
"resource": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"method",
"finalUrl",
"statusCode",
"latencyMs"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"method": {
"type": "string",
"enum": [
"GET",
"HEAD",
"POST"
]
},
"finalUrl": {
"type": "string",
"format": "uri"
},
"statusCode": {
"type": [
"integer",
"null"
]
},
"latencyMs": {
"type": "integer",
"minimum": 0
}
}
},
"payment": {
"type": "object",
"additionalProperties": false,
"required": [
"detected",
"challengeSource",
"x402Version",
"scheme",
"network",
"asset",
"amountAtomic",
"priceUsd",
"payTo",
"facilitator",
"maxTimeoutSeconds",
"bazaar"
],
"properties": {
"detected": {
"type": "boolean"
},
"challengeSource": {
"type": [
"string",
"null"
],
"enum": [
"header",
"body",
null
]
},
"x402Version": {
"type": [
"integer",
"null"
]
},
"scheme": {
"type": [
"string",
"null"
]
},
"network": {
"type": [
"string",
"null"
]
},
"asset": {
"type": [
"string",
"null"
]
},
"amountAtomic": {
"type": [
"string",
"null"
]
},
"priceUsd": {
"type": [
"number",
"null"
]
},
"payTo": {
"type": [
"string",
"null"
]
},
"facilitator": {
"type": [
"string",
"null"
]
},
"maxTimeoutSeconds": {
"type": [
"integer",
"null"
]
},
"bazaar": {
"type": "object",
"additionalProperties": false,
"required": [
"found",
"valid",
"type",
"method",
"toolName",
"description",
"inputSchemaPresent",
"outputSchemaPresent",
"examplePresent"
],
"properties": {
"found": {
"type": "boolean"
},
"valid": {
"type": [
"boolean",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
},
"method": {
"type": [
"string",
"null"
]
},
"toolName": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"inputSchemaPresent": {
"type": "boolean"
},
"outputSchemaPresent": {
"type": "boolean"
},
"examplePresent": {
"type": "boolean"
}
}
}
}
},
"cors": {
"type": "object",
"additionalProperties": false,
"required": [
"allowOrigin",
"allowMethods",
"allowHeaders",
"exposeHeaders",
"allowCredentials",
"browserAgentCompatible"
],
"properties": {
"allowOrigin": {
"type": [
"string",
"null"
]
},
"allowMethods": {
"type": "array",
"items": {
"type": "string"
}
},
"allowHeaders": {
"type": "array",
"items": {
"type": "string"
}
},
"exposeHeaders": {
"type": "array",
"items": {
"type": "string"
}
},
"allowCredentials": {
"type": [
"boolean",
"null"
]
},
"browserAgentCompatible": {
"type": [
"boolean",
"null"
]
}
}
},
"checks": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"status",
"severity",
"evidence"
],
"properties": {
"id": {
"type": "string",
"maxLength": 120
},
"status": {
"type": "string",
"enum": [
"PASS",
"WARN",
"FAIL",
"UNKNOWN"
]
},
"severity": {
"type": "string",
"enum": [
"critical",
"high",
"medium",
"low",
"info"
]
},
"evidence": {
"type": "string",
"maxLength": 2000
}
}
}
},
"issues": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"severity",
"retryable",
"message",
"remediation"
],
"properties": {
"code": {
"type": "string",
"pattern": "^[A-Z0-9_]+$"
},
"severity": {
"type": "string",
"enum": [
"critical",
"high",
"medium",
"low",
"info"
]
},
"retryable": {
"type": "boolean"
},
"message": {
"type": "string",
"maxLength": 2000
},
"remediation": {
"type": "string",
"maxLength": 2000
}
}
}
},
"discovery": {
"type": "object",
"additionalProperties": false,
"required": [
"openapi",
"llmsTxt",
"agentMetadata",
"x402Metadata"
],
"properties": {
"openapi": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"statusCode",
"contentType",
"present",
"valid",
"consistent"
],
"properties": {
"url": {
"type": "string"
},
"statusCode": {
"type": [
"integer",
"null"
]
},
"contentType": {
"type": [
"string",
"null"
]
},
"present": {
"type": "boolean"
},
"valid": {
"type": [
"boolean",
"null"
]
},
"consistent": {
"type": [
"boolean",
"null"
]
}
}
},
"llmsTxt": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"statusCode",
"contentType",
"present",
"valid",
"consistent"
],
"properties": {
"url": {
"type": "string"
},
"statusCode": {
"type": [
"integer",
"null"
]
},
"contentType": {
"type": [
"string",
"null"
]
},
"present": {
"type": "boolean"
},
"valid": {
"type": [
"boolean",
"null"
]
},
"consistent": {
"type": [
"boolean",
"null"
]
}
}
},
"agentMetadata": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"statusCode",
"contentType",
"present",
"valid",
"consistent"
],
"properties": {
"url": {
"type": "string"
},
"statusCode": {
"type": [
"integer",
"null"
]
},
"contentType": {
"type": [
"string",
"null"
]
},
"present": {
"type": "boolean"
},
"valid": {
"type": [
"boolean",
"null"
]
},
"consistent": {
"type": [
"boolean",
"null"
]
}
}
},
"x402Metadata": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"statusCode",
"contentType",
"present",
"valid",
"consistent"
],
"properties": {
"url": {
"type": "string"
},
"statusCode": {
"type": [
"integer",
"null"
]
},
"contentType": {
"type": [
"string",
"null"
]
},
"present": {
"type": "boolean"
},
"valid": {
"type": [
"boolean",
"null"
]
},
"consistent": {
"type": [
"boolean",
"null"
]
}
}
}
}
},
"operational": {
"type": "object",
"additionalProperties": false,
"required": [
"contentType",
"cacheControl",
"responseBytes",
"timeoutMs",
"redirectChain"
],
"properties": {
"contentType": {
"type": [
"string",
"null"
]
},
"cacheControl": {
"type": [
"string",
"null"
]
},
"responseBytes": {
"type": "integer",
"minimum": 0
},
"timeoutMs": {
"type": "integer",
"minimum": 1
},
"redirectChain": {
"type": "array",
"maxItems": 5,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"from",
"to",
"statusCode"
],
"properties": {
"from": {
"type": "string",
"format": "uri"
},
"to": {
"type": "string",
"format": "uri"
},
"statusCode": {
"type": "integer",
"minimum": 300,
"maximum": 399
}
}
}
}
}
},
"evidence": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"source",
"observation"
],
"properties": {
"id": {
"type": "string",
"maxLength": 120
},
"source": {
"type": "string",
"maxLength": 500
},
"observation": {
"type": "string",
"maxLength": 2000
}
}
}
},
"claimBoundary": {
"type": "object",
"additionalProperties": false,
"required": [
"proves",
"doesNotProve"
],
"properties": {
"proves": {
"type": "array",
"items": {
"type": "string"
}
},
"doesNotProve": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"required": [
"profile",
"decision",
"score",
"requestId",
"observedAt",
"expiresAt",
"resource",
"payment",
"cors",
"checks",
"issues",
"discovery",
"operational",
"evidence",
"claimBoundary"
],
"additionalProperties": false
}⚪order_x402_remediation(resource_url, goal, contact, constraints, callback_url, ...)
Purchase a durable remediation intake after a failed audit. Creates an order but never deploys, signs, or spends automatically.
Eingabe-Schema
{
"type": "object",
"properties": {
"resource_url": {
"type": "string",
"format": "uri",
"pattern": "^https://",
"maxLength": 500
},
"goal": {
"type": "string",
"minLength": 1,
"maxLength": 800
},
"contact": {
"type": "string",
"maxLength": 300
},
"constraints": {
"type": "string",
"maxLength": 1000
},
"callback_url": {
"type": "string",
"format": "uri",
"pattern": "^https://",
"maxLength": 2000
},
"response_format": {
"type": "string",
"enum": [
"json",
"markdown",
"both"
],
"default": "both"
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 20,
"default": "en"
}
},
"required": [
"resource_url",
"goal"
],
"additionalProperties": false
}Ausgabe-Schema
{
"type": "object",
"properties": {
"capability": {
"type": "string",
"const": "order_x402_remediation"
},
"service": {
"type": "string"
},
"orderId": {
"type": "string"
},
"status": {
"type": "string"
},
"acceptedAt": {
"type": "string",
"format": "date-time"
},
"payment": {
"type": "object",
"additionalProperties": false,
"required": [
"asset",
"assetContract",
"network",
"networkCaip2",
"expectedAmountAtomic",
"expectedAmountUsd",
"payTo",
"facilitator"
],
"properties": {
"asset": {
"type": "string"
},
"assetContract": {
"type": "string"
},
"network": {
"type": "string"
},
"networkCaip2": {
"type": "string"
},
"expectedAmountAtomic": {
"type": "string"
},
"expectedAmountUsd": {
"type": "number"
},
"payTo": {
"type": "string"
},
"facilitator": {
"type": "string",
"format": "uri"
}
}
},
"request": {
"type": "object",
"additionalProperties": false,
"required": [
"repository_or_url",
"goal",
"contact",
"constraints",
"callback_url",
"response_format",
"language"
],
"properties": {
"repository_or_url": {
"type": "string"
},
"goal": {
"type": "string"
},
"contact": {
"type": "string"
},
"constraints": {
"type": "string"
},
"callback_url": {
"type": "string"
},
"response_format": {
"type": "string",
"enum": [
"json",
"markdown",
"both"
]
},
"language": {
"type": "string"
}
}
},
"review": {
"type": "object",
"additionalProperties": false,
"required": [
"status",
"statusUrl",
"resultUrl",
"reportUrl",
"estimatedCompletionMinutes",
"accessToken"
],
"properties": {
"status": {
"type": "string"
},
"statusUrl": {
"type": "string",
"format": "uri"
},
"resultUrl": {
"type": "string",
"format": "uri"
},
"reportUrl": {
"type": "string",
"format": "uri"
},
"estimatedCompletionMinutes": {
"type": "integer",
"minimum": 1
},
"accessToken": {
"type": "string"
}
}
},
"persistence": {
"type": "object",
"additionalProperties": false,
"required": [
"status",
"settlementTracking"
],
"properties": {
"status": {
"type": "string"
},
"settlementTracking": {
"type": "boolean"
}
}
},
"claimBoundary": {
"type": "object",
"additionalProperties": false,
"required": [
"proves",
"doesNotProve"
],
"properties": {
"proves": {
"type": "array",
"items": {
"type": "string"
}
},
"doesNotProve": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"required": [
"capability",
"service",
"orderId",
"status",
"acceptedAt",
"payment",
"request",
"review",
"persistence",
"claimBoundary"
],
"additionalProperties": false
}Community
Nachweis