Browse documentation

Agents & API

MCP

Connect an MCP client

oxley runs an MCP server (streamable HTTP) on the same service as the API, at https://oxley-agents.web3bandit.workers.dev/mcp. It uses the same key: send Authorization: Bearer <key> with every request.

Clients differ in file names and field names. Every client needs two things: the URL and the Authorization header.

Claude Code

Add the server with its header, then check it with /mcp inside Claude Code.

Add the server
claude mcp add --transport http oxley \
  https://oxley-agents.web3bandit.workers.dev/mcp \
  --header "Authorization: Bearer $OXLEY_API_KEY"

Other clients

Most clients read a JSON file of servers. Use the URL and the header; your client’s documentation names the file and any extra fields.

MCP client configuration
{
  "mcpServers": {
    "oxley": {
      "type": "http",
      "url": "https://oxley-agents.web3bandit.workers.dev/mcp",
      "headers": {
        "Authorization": "Bearer oxk_your_key"
      }
    }
  }
}

Tools

Each tool matches one endpoint.

ToolMatching endpoint
get_tierGET /v1/me
list_swap_tokensGET /v1/swap/tokens
get_swap_priceGET /v1/swap/price
build_swapPOST /v1/swap/build
get_bridge_configGET /v1/bridge/config
get_bridge_quotePOST /v1/bridge/quote
build_bridgePOST /v1/bridge/build
get_bridge_statusPOST /v1/bridge/status
report_transactionPOST /v1/report

Signing

The tools return unsigned transactions. The agent’s own wallet tool signs and sends them. oxley’s MCP server has no wallet and never signs.

After a transaction is sent, call report_transaction with its buildId and hash so it counts toward your volume.