{"_id":"@heura/mcp","_rev":"2-2c62abb48f5be6e7e1420e54c108ae73","name":"@heura/mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.0-stage":{"name":"@heura/mcp","version":"0.0.0-stage","_id":"@heura/mcp@0.0.0-stage","stub":true,"maintainers":[{"name":"heura","email":"dosiuhuy@gmail.com"}],"dist":{"shasum":"29fa0f8dc224b161125ca86f2142a6917de98fd0","tarball":"https://registry.npmjs.org/@heura/mcp/-/mcp-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-je32FXzhPP4H1n/dV/fOgmTXprIupTsduZYrbzyqxvqrOrgZe+PMcJf7wQxchjft3PSA8/H+Oe4Is436bM+J+g==","signatures":[{"sig":"MEQCIFBceJ2nfc7cm/4UhcaPWenPmDn9RbwukG4tf2KEFBiRAiAO1c969bjHyGmkkE5PV16hvfl2da7TseuHs/VtxM78Dg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":332},"_npmUser":{"name":"heura","email":"dosiuhuy@gmail.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.1.0":{"_id":"@heura/mcp@0.1.0","bin":{"mcp":"src/stdio.js","heura-mcp":"src/stdio.js"},"bugs":{"url":"https://github.com/useheura/heura/issues"},"dist":{"shasum":"b879b0410e1c3c6467dd25fc360253562cedbc3a","tarball":"https://registry.npmjs.org/@heura/mcp/-/mcp-0.1.0.tgz","fileCount":7,"integrity":"sha512-XL5sR+GMrNmlLsgSSf8Uzh08Up2Vl5eMCsnX2yJkeDqxvX1i358uB1FGUCIv50CPCiaEl3CiwOnh853Hd0LIVg==","signatures":[{"sig":"MEQCIDaIbIZe3jG3J2aEI4tBh2NjxUMifsAZVSpPt/yecNHcAiAR27O5WobI2sTg4MFSyHF5oZt85dym7fHnqF+V63ALdQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGc9y9gT7YUoa/vyK48go2UB0eXpgVAtzm8A0+ZwMXY0AiAatmlDwbOJR6o/62JW/yH6SV6wHZbG3iyEKyKkQ1aENQ=="}],"unpackedSize":32962},"main":"src/index.js","name":"@heura/mcp","type":"module","engines":{"node":">=20"},"gitHead":"82c617de0d9a1cda1be2ee3e24919f82b86a344a","license":"MIT","mcpName":"io.github.useheura/heura","scripts":{"test":"node --test test/*.test.mjs"},"version":"0.1.0","_npmUser":{"name":"heura","email":"dosiuhuy@gmail.com"},"homepage":"https://useheura.com/docs","repository":{"url":"git+https://github.com/useheura/heura.git","type":"git","directory":"mcp"},"_npmVersion":"10.9.2","description":"MCP server for heura: compare AI model prices across sellers, call models with a heura key, or pay one request in USDG on Robinhood Chain.","directories":{},"maintainers":[{"name":"heura","email":"dosiuhuy@gmail.com"}],"_nodeVersion":"22.14.0","dependencies":{"zod":"^3.23.8","ethers":"^6.17.0","@modelcontextprotocol/sdk":"^1.30.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp_0.1.0_1792921270297_0.5996692363072045"}}},"time":{"created":"2026-10-25T09:40:13.640Z","modified":"2026-10-25T09:41:10.673Z","0.0.0-stage":"2026-10-25T09:40:13.640Z","0.1.0":"2026-10-25T09:41:10.388Z"},"description":"MCP server for heura: compare AI model prices across sellers, call models with a heura key, or pay one request in USDG on Robinhood Chain.","maintainers":[{"name":"heura","email":"dosiuhuy@gmail.com"}],"readme":"# @heura/mcp\n\nMCP server for [heura](https://useheura.com): compare AI model prices across sellers, call a model with a heura key, or pay **one request** with USDG on Robinhood Chain (no account).\n\nWorks with Claude Code, Claude Desktop, Cursor, Codex and any MCP client.\n\n## Install\n\nRead-only (prices, quotes, status). No key, no wallet, nothing can be spent:\n\n```bash\nclaude mcp add heura -- npx -y @heura/mcp\n```\n\nHosted, read-only, nothing to install:\n\n```\nhttps://mcp.useheura.com/mcp\n```\n\n## Tools\n\n| Tool | What it does | Needs |\n|---|---|---|\n| `heura_status` | reachable? healthy sellers? what this server may spend | nothing |\n| `heura_models` | models on the market now, best price per million tokens, filters | nothing |\n| `heura_catalog` | heura's list price for every model | nothing |\n| `heura_topup_info` | where to send USDG to add API balance (read only) | nothing |\n| `heura_quote` | price of paying one request in USDG (nothing signed) | nothing |\n| `heura_spend` | what this session spent or reserved | nothing |\n| `heura_key_check` | does the API key work | `HEURA_API_KEY` |\n| `heura_chat` | call a model, paid from the key's balance | `HEURA_API_KEY` |\n| `heura_pay` | pay ONE request with USDG, dry run until `confirm:true` | `HEURA_WALLET_KEY_FILE` |\n\nSpending tools are **not registered** unless you configure the matching credential. The hosted server never has them.\n\n## Safety model\n\nThe model cannot be talked into spending more than you allow, because the limits live in the server, not in the prompt.\n\n- `heura_pay` is a **dry run** until `confirm:true`. The tool description tells the agent to show you the model, the price and the receiving address and wait for a yes.\n- The receiving address is **pinned** in the server. A quote that pays any other address is refused before anything is signed. Only USDG on Robinhood Chain (`eip155:4663`) is accepted. Malformed amounts are refused.\n- Caps, all enforced by the server: per call (`HEURA_MAX_CALL_USD`, default 0.05), per payment (`HEURA_MAX_PAY_USDG`, default 0.05) and per session (`HEURA_SESSION_BUDGET_USD`, default 1). The budget is reserved **before** the network call, so parallel calls cannot overrun it.\n- The model can only supply a model name, messages and numbers. It cannot supply a URL, header, address or secret.\n- Redirects are refused, so a hijacked gateway never receives your key or a payment proof. Responses are size-capped, and gateway text is cleaned of control characters and labelled untrusted.\n- The wallet key is read from a **mode-600 file** and the server refuses to start if the file is readable by others. It is never returned by any tool. Errors are scrubbed of RPC URLs and keys.\n- If a payment went through but the request failed, the error says so, includes the transaction hash and tells the agent **not** to pay again.\n\n## Configuration\n\n| Variable | Default | |\n|---|---|---|\n| `HEURA_BASE_URL` | `https://api.useheura.com` | https origin only |\n| `HEURA_API_KEY` | none | enables `heura_chat`, `heura_key_check` |\n| `HEURA_WALLET_KEY_FILE` | none | path to a mode-600 file with an EOA private key. Enables `heura_pay` |\n| `HEURA_PAY_TO` | production address | override only for your own deployment |\n| `HEURA_RPC_URL` | `https://rpc.mainnet.chain.robinhood.com` | |\n| `HEURA_MAX_CALL_USD` / `HEURA_MAX_PAY_USDG` / `HEURA_SESSION_BUDGET_USD` | 0.05 / 0.05 / 1 | |\n\nWith a key and a wallet:\n\n```bash\nclaude mcp add heura \\\n  -e HEURA_API_KEY=*** \\\n  -e HEURA_WALLET_KEY_FILE=$HOME/.heura-wallet \\\n  -- npx -y @heura/mcp\n```\n\nUse a **dedicated wallet** holding a few dollars of USDG plus a little ETH for gas. The payer must be an EOA (smart-contract wallets are refused by the gateway).\n\n## Status\n\nheura is pre-launch and has not been audited. The tests in this package run against a mocked gateway (27 tests, including hostile quotes and parallel spend) and, optionally, against production read-only endpoints. `test/mutation-check.sh` breaks each money safeguard on a copy and confirms the tests catch it.\n","readmeFilename":"README.md","homepage":"https://useheura.com/docs","repository":{"url":"git+https://github.com/useheura/heura.git","type":"git","directory":"mcp"},"bugs":{"url":"https://github.com/useheura/heura/issues"},"license":"MIT"}