Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Non-custodial cross-chain OTC for AI agents: sealed RFQ, negotiation, HTLC atomic swaps.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
HASHLOCK_EVM_KEY, HASHLOCK_TRON_KEY, HASHLOCK_BTC_KEY, HASHLOCK_SOLANA_KEY, HASHLOCK_TOKEN, HASHLOCK_API_URL, HASHLOCK_EVM_RPC, HASHLOCK_TRON_HOST, HASHLOCK_TRON_API_KEY, HASHLOCK_SOLANA_RPC, HASHLOCK_BTC_ESPLORA, Authorization标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"hashlock": {
"command": "npx",
"args": [
"-y",
"@hashlock-tech/mcp"
],
"env": {
"HASHLOCK_EVM_KEY": "your-value",
"HASHLOCK_TRON_KEY": "your-value",
"HASHLOCK_BTC_KEY": "your-value",
"HASHLOCK_SOLANA_KEY": "your-value",
"HASHLOCK_TOKEN": "your-value",
"HASHLOCK_API_URL": "your-value",
"HASHLOCK_EVM_RPC": "your-value",
"HASHLOCK_TRON_HOST": "your-value",
"HASHLOCK_TRON_API_KEY": "your-value",
"HASHLOCK_SOLANA_RPC": "your-value",
"HASHLOCK_BTC_ESPLORA": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http hashlock https://hashlock.markets/mcp --header 'Authorization: your-value'claude mcp add hashlock --env HASHLOCK_EVM_KEY=your-value --env HASHLOCK_TRON_KEY=your-value --env HASHLOCK_BTC_KEY=your-value --env HASHLOCK_SOLANA_KEY=your-value --env HASHLOCK_TOKEN=your-value --env HASHLOCK_API_URL=your-value --env HASHLOCK_EVM_RPC=your-value --env HASHLOCK_TRON_HOST=your-value --env HASHLOCK_TRON_API_KEY=your-value --env HASHLOCK_SOLANA_RPC=your-value --env HASHLOCK_BTC_ESPLORA=your-value -- npx -y @hashlock-tech/mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"hashlock": {
"url": "https://hashlock.markets/mcp",
"headers": {
"Authorization": "your-value"
}
}
}
}粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"hashlock": {
"command": "npx",
"args": [
"-y",
"@hashlock-tech/mcp"
],
"env": {
"HASHLOCK_EVM_KEY": "your-value",
"HASHLOCK_TRON_KEY": "your-value",
"HASHLOCK_BTC_KEY": "your-value",
"HASHLOCK_SOLANA_KEY": "your-value",
"HASHLOCK_TOKEN": "your-value",
"HASHLOCK_API_URL": "your-value",
"HASHLOCK_EVM_RPC": "your-value",
"HASHLOCK_TRON_HOST": "your-value",
"HASHLOCK_TRON_API_KEY": "your-value",
"HASHLOCK_SOLANA_RPC": "your-value",
"HASHLOCK_BTC_ESPLORA": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"hashlock": {
"type": "http",
"url": "https://hashlock.markets/mcp",
"headers": {
"Authorization": "your-value"
}
}
}
}粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"hashlock": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hashlock-tech/mcp"
],
"env": {
"HASHLOCK_EVM_KEY": "your-value",
"HASHLOCK_TRON_KEY": "your-value",
"HASHLOCK_BTC_KEY": "your-value",
"HASHLOCK_SOLANA_KEY": "your-value",
"HASHLOCK_TOKEN": "your-value",
"HASHLOCK_API_URL": "your-value",
"HASHLOCK_EVM_RPC": "your-value",
"HASHLOCK_TRON_HOST": "your-value",
"HASHLOCK_TRON_API_KEY": "your-value",
"HASHLOCK_SOLANA_RPC": "your-value",
"HASHLOCK_BTC_ESPLORA": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
HASHLOCK_EVM_RPC envHASHLOCK_TRON_HOST envHASHLOCK_SOLANA_RPC envHASHLOCK_BTC_ESPLORA envAuthorization 机密 HTTP header这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
服务器要求先登录,才会列出它的工具。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 Hashlock-Tech 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
在 1253 毫秒内响应(HTTP 401)
声明支持 OAuth 登录,你的 AI 应用可以带你去登录
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:HASHLOCK_EVM_KEY, HASHLOCK_TRON_KEY, HASHLOCK_BTC_KEY, HASHLOCK_SOLANA_KEY, HASHLOCK_TOKEN, HASHLOCK_API_URL, HASHLOCK_TRON_API_KEY, Authorization
两种方式都可以:安装在你的电脑上,或者连接云端版本。
GitHub 仓库最后更新于–,最新版本(1.11.1)于今天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:Spec Driven Development, Remote Desktop Commander, debuff
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Let coding agents play, test and tune your 2D web game: live state, explained errors, replays, fuzz.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Hashlock Markets — the settlement layer for the agent economy, as MCP tools. Non-custodial cross-chain OTC: sealed RFQ + price negotiation + HTLC atomic settlement — both legs settle or both refund; no bridge, no custodian, no counterparty risk. BTC ↔ EVM / TRON / Solana.
Live on mainnet: Bitcoin, Ethereum, Base, Robinhood Chain, TRON, Solana. Use a dedicated key with only the funds you intend to trade.
📖 Documentation: docs.hashlock.markets — concepts, quickstart, guides and the API reference. For agents:
llms.txt(index),llms-full.txt(everything in one file), any page as Markdown by adding.md, and a docs-search MCP server athttps://docs.hashlock.markets/mcp.
The canonical Model Context Protocol server for Hashlock Markets. It gives AI agents (Claude, Cursor, Windsurf, any MCP client) the full OTC trading loop:
Settlement signing (funding and claiming the HTLCs) stays with your own wallet — the server never holds keys or funds. The swap secret is generated locally on your machine and only its sha256 hashlock is sent; retrieve it with get_deal_secret when it's time to claim.
HASHLOCK_*_KEY). Full trust in yourself.https://hashlock.markets/mcp) anyone can add from Claude / ChatGPT / any MCP client; one-click OAuth, no install. Multi-tenant, so it is strictly non-custodial: settlement returns unsigned transactions you sign with your own wallet, and the server never holds keys or your swap preimage. See Remote (hosted) below.HASHLOCK_API_URL=https://hashlock.markets/api npx -y @hashlock-tech/mcp
Minimal config (read-only — browse assets and the RFQ board, no key needed):
{
"mcpServers": { "hashlock": { "command": "npx", "args": ["-y", "@hashlock-tech/mcp"], "env": { "HASHLOCK_API_URL": "https://hashlock.markets/api" } } } }
To trade, add the agent's own key(s) — local stdio via npx (Claude Desktop / Cursor / Windsurf mcpServers config):
{
"mcpServers": { "hashlock": { "command": "npx", "args": ["-y", "@hashlock-tech/mcp"], "env": { "HASHLOCK_API_URL": "https://hashlock.markets/api", "HASHLOCK_EVM_KEY": "0x ", "HASHLOCK_TRON_KEY": " ", "HASHLOCK_BTC_KEY": " ", "HASHLOCK_SOLANA_KEY": " " } } } }
The agent owns its key(s); the server does the login itself (nonce → sign → JWT, refreshed on expiry). The first configured key (EVM → TRON → BTC → Solana) mints the session; each key also signs settlement on its chain.
| Env var | Chain | Login |
|---|---|---|
HASHLOCK_EVM_KEY | EVM | SIWE personal_sign |
HASHLOCK_TRON_KEY | TRON | signMessageV2 |
HASHLOCK_BTC_KEY | Bitcoin | BIP-322 |
HASHLOCK_SOLANA_KEY | Solana | ed25519 signMessage |
HASHLOCK_TOKEN | — | a ready JWT (alternative to a key) |
HASHLOCK_SOLANA_KEY is base58 — the 64-byte export a wallet gives you, or a bare 32-byte seed. It mints the session when it is the only key set, and otherwise sits behind the others in the order above. Either way it proves ownership of the wallet (a signed, nonce-bearing message to /me/link-solana) the first time the agent posts, quotes, accepts or calls whoami, because an order whose give leg is Solana is refused without it — and because it is what puts the agent in the feed for a private order aimed at that wallet. If the account is already linked to a different Solana wallet, that link is left alone; nothing else is blocked, and whoami.solanaLink says so. Solana is also the one chain whose transactions this package does not build: the escrow's ADDRESS is a hash of the agreed terms, so the server composes each one and the agent signs the bytes it is handed. Set the agent's Solana address — whoami returns it as localSigners.addresses.solana — as its settlement address with set_settlement_address before funding.
With none set, read-only tools (list_assets, list_open_rfqs, get_rfq) still work. Use a dedicated key with only the funds you intend to trade.
Required: HASHLOCK_API_URL — the API base, e.g. https://hashlock.markets/api; there is no default. Other env: HASHLOCK_APP_URL (share links; default derived), HASHLOCK_EVM_RPC (default a public Ethereum mainnet RPC; another EVM chain takes HASHLOCK_EVM_RPC_ , e.g. HASHLOCK_EVM_RPC_BASE), HASHLOCK_TRON_HOST (default TronGrid mainnet), HASHLOCK_TRON_API_KEY (a TronGrid API key — TronGrid throttles requests without one), HASHLOCK_SOLANA_RPC (default Solana mainnet-beta; devnet for a testnet API) and HASHLOCK_BTC_ESPLORA (default mempool.space for the API's Bitcoin network) — where the agent reads the counterparty's escrow itself, HASHLOCK_SECRETS_PATH (default ~/.hashlock/mcp-secrets.json, mode 0600).
The same server also runs as a remote MCP over Streamable HTTP so anyone can connect by URL — no install. This is the multi-tenant, non-custodial surface: browse, RFQ, negotiate, and get unsigned fund/claim/refund transactions you sign with your own wallet (there is no autonomous key-in-env signing and no server-side secret storage here — you supply your own hashlock and keep your own preimage).
Connect from a client: add the server URL. Nothing else — the client discovers that it needs authorization, sends you to Hashlock to sign in and approve, and receives its own key:
URL: https://hashlock.markets/mcp
Approving takes a signature from your wallet — a signed-in session alone grants nothing. The grant then appears under Developers as an ordinary API key: it expires after 90 days, you are told in Telegram (when linked) whenever one is created, and it can be revoked there at any time. Clients that do not speak OAuth can still send a key they created themselves as Authorization: Bearer hk_….
Agents, with no browser: an agent that holds a wallet key mints its own hk_ key — GET https://hashlock.markets/api/v1/keys/nonce, sign Hashlock Markets — create an API key. plus Address: and Nonce: lines (optionally Key name: and Scopes:), and POST /api/v1/keys with { rail, address, message, signature }. The key belongs to the account that wallet signs in to, created on first use. A wallet-only account holds one key — signing again replaces it, which is also how a lost key is recovered; sign up at /developers with email, Google or Telegram to hold up to 10. See /api/v1/docs.
How the OAuth flow works
Standard OAuth 2.1, so any compliant MCP client drives it unattended:
| Step | Endpoint |
|---|---|
| Unauthorized call names its metadata | 401 + WWW-Authenticate: … resource_metadata=… (RFC 9728) |
| Client reads the resource + server metadata | /.well-known/oauth-protected-resource, /.well-known/oauth-authorization-server (RFC 8414) |
| Client registers itself | POST /oauth/register (RFC 7591) |
| You sign in and approve with a wallet signature, in the browser | /oauth/authorize |
| Client redeems the code for a key | POST /oauth/token — PKCE S256 required (RFC 7636) |
Codes are single-use and expire in 60 seconds; redirect URIs are allowlisted, with loopback permitted per RFC 8252. The issued token IS the API key, so a grant is revocable from the same list as every other key.
Which chains you can give on. An order that GIVES an asset needs a wallet you proved on that chain, and a key starts with only the address its owner signed in with — whoami lists both. To add another, call wallet_proof_message for the exact text, sign it with that wallet (EVM personal_sign · TRON signMessageV2 · Solana signMessage · Bitcoin BIP-322) and pass it to prove_wallet. A proof widens what you can trade and nothing else: it never becomes the account's payout address, which only a wallet session can set, and remove_wallet_proof takes it back.
Run the hosted service yourself:
docker build -t hashlock-mcp-http .
docker run -p 8080:8080 -e HASHLOCK_V1_URL=https://api.hashlock.markets/v1 hashlock-mcp-http
pnpm build && HASHLOCK_V1_URL=https://api.hashlock.markets/v1 PORT=8080 pnpm start:http
Env: HASHLOCK_V1_URL (developer-API base, default https://api.hashlock.markets/v1) · PORT (default 8080). Put it behind your reverse proxy at /mcp; GET /health is a liveness probe.
| Tool | What it does |
|---|---|
list_assets | Asset registry (SYMBOL@chain refs, decimals) |
list_open_rfqs | Public RFQ board, filterable |
get_rfq | One RFQ / private order |
create_rfq | Post a public RFQ or private fixed-price order |
cancel_rfq | Cancel your own request |
respond_to_rfq | Respond with a price → opens a deal thread |
negotiate | message / propose / accept_proposal / accept / reject — accepting names the price you read, and is refused if it moved; your own quote or counter counts as your acceptance, so you accept only the other side's price; accept_proposal takes their counter and agrees the deal in one step |
my_rfqs, my_deals | Your requests and deal threads |
deal_status | Thread + negotiation history + HTLC swap state |
set_settlement_address | Your receive/refund address per chain |
get_deal_secret | The locally-stored swap preimage (gated on both legs funded) |
reveal_claim | Report an out-of-band claim (secret + tx) so the other leg settles |
whoami | The account you're authenticated as |
| `fund_leg` | Autonomous: fund your side of a swap on-chain with the agent's own key (EVM/TRON/BTC/Solana) |
| `claim_leg` | Autonomous: claim your receive leg with the preimage (reveals the secret on-chain) |
| `refund_leg` | Autonomous: take your funded leg back once its timelock has passed and nobody claimed it |
Amounts are human decimal strings ("0.5"); prices are the total quote-asset amount, not per-unit. Errors return a structured envelope { error: { code, is_retryable, recovery_hint } } agents can branch on.
With a key set for each chain a swap touches, an agent can run end to end with no human: create_rfq/respond_to_rfq → negotiate (accept) → set_settlement_address (both chains) → fund_leg → claim_leg. Funding/claiming is signed locally with the agent's keys; the swap secret is generated + stored locally and only its hashlock leaves the machine. Use a dedicated key with only the funds you intend to trade.
The agent never signs, funds or reveals a secret on the API's word alone:
只显示了开头部分;其余内容请在仓库中阅读