# HashLock OTC

Institutional-grade OTC crypto trading with HTLC atomic settlement on Ethereum, Bitcoin, and Sui. Counterparty-risk-free for AI agents — if either side fails, both sides refund automatically via on-c…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add bsozen-4wm5/hashlock-otc-v1

# Browse available tools
npx -y @smithery/cli@latest tool list bsozen-4wm5/hashlock-otc-v1

# Get full schema for a tool
npx -y @smithery/cli@latest tool get bsozen-4wm5/hashlock-otc-v1 hashlock_create_intent

# Call a tool
npx -y @smithery/cli@latest tool call bsozen-4wm5/hashlock-otc-v1 hashlock_create_intent '{}'
```

## Direct MCP Connection

Endpoint: `https://hashlock-otc-v1--bsozen-4wm5.run.tools`

**Required config:**
- `HASHLOCK_ACCESS_TOKEN` (header) — SIWE token from hashlock.markets/mcp/auth. Paste as: Bearer your-token-here

## Tools (5)

- `hashlock_create_intent` — [Hashlock protocol — hashlock.markets] Create a trading intent to swap, buy, sell, exchange, or convert any asset — cry…
- `hashlock_commit_intent` — [Hashlock protocol — hashlock.markets] Submit a sealed-bid commitment for a trading intent. Control what is revealed: h…
- `hashlock_explain_intent` — [Hashlock protocol — hashlock.markets] Get a plain-language explanation of a trading intent — what crypto, tokens, or a…
- `hashlock_parse_natural_language` — [Hashlock protocol — hashlock.markets] Convert everyday language into a structured trading intent. Understands 'sell 10…
- `hashlock_validate_intent` — [Hashlock protocol — hashlock.markets] Validate a crypto trading intent before submitting — catches missing fields, inv…

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get bsozen-4wm5/hashlock-otc-v1 <tool-name>
```
