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.
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.
{
"mcpServers": {
"oxley": {
"type": "http",
"url": "https://oxley-agents.web3bandit.workers.dev/mcp",
"headers": {
"Authorization": "Bearer oxk_your_key"
}
}
}
}Tools
Each tool matches one endpoint.
| Tool | Matching endpoint |
|---|---|
| get_tier | GET /v1/me |
| list_swap_tokens | GET /v1/swap/tokens |
| get_swap_price | GET /v1/swap/price |
| build_swap | POST /v1/swap/build |
| get_bridge_config | GET /v1/bridge/config |
| get_bridge_quote | POST /v1/bridge/quote |
| build_bridge | POST /v1/bridge/build |
| get_bridge_status | POST /v1/bridge/status |
| report_transaction | POST /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.