Skip to content
HALOWERK

Denkwerk

mcp x402 wrap

For each MCP tool and price, builds the PaymentRequired object as defined by the x402 v2 MCP transport (tool result with isError true, structuredContent and the same JSON in content[0].text), the accepts entry in atomic units for USDC on Base, and the bazaar discovery extension of input type "mcp" with toolName, description, inputSchema and transport. The bazaar info is validated against its schema. Includes the client key _meta["x402/payment"] and server key _meta["x402/payment-response"].

POST https://denk.halowerk.com/v1/mcp-x402-wrap

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
server_urlstringYes
pay_tostringYes
default_price_usdcstringNo
pricesobjectNo
transportstringNo
toolsarrayYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "server_url",
    "tools",
    "pay_to"
  ],
  "properties": {
    "server_url": {
      "type": "string",
      "format": "uri"
    },
    "pay_to": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$"
    },
    "default_price_usdc": {
      "type": "string",
      "pattern": "^\\d+(\\.\\d{1,6})?$",
      "default": "0.001"
    },
    "prices": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "^\\d+(\\.\\d{1,6})?$"
      }
    },
    "transport": {
      "type": "string",
      "enum": [
        "streamable-http",
        "sse"
      ],
      "default": "streamable-http"
    },
    "tools": {
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "items": {
        "type": "object",
        "required": [
          "name",
          "inputSchema"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "inputSchema": {
            "type": "object"
          }
        }
      }
    }
  }
}

Open original schema

Published input example

{
  "server_url": "https://halowerk.com/buyers/mcp",
  "pay_to": "0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E",
  "tools": [
    {
      "name": "financial_analysis",
      "description": "Analyse a ticker.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "ticker": {
            "type": "string"
          }
        },
        "required": [
          "ticker"
        ]
      }
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’