pusaka

v1.1.2
io.github.PugarHuda/pusaka Checked 1 day ago Published 19 days ago

NFTs on NEAR that each control a native Bitcoin address: buy, lend, borrow, inherit, with caps

Values you need

VariableWhat it is
PUSAKA_ACCOUNT_IDoptional NEAR account the agent acts as (optional: read-only without it)
PUSAKA_PRIVATE_KEYoptional secret Its ed25519 key
PUSAKA_MAX_SPEND_NEARoptional Spend cap per session in NEAR (default 5)
PUSAKA_CONTRACToptional Pusaka contract (default pusaka-v2.testnet; pusaka-btc.testnet for the classic one)
PUSAKA_ALLOW_OUTFLOWSoptional Set to 1 to let the agent move a Pusaka or its assets out
PUSAKA_ALLOWED_RECIPIENTSoptional Comma-separated accounts or addresses outflows may go to
PUSAKA_CONFIRMoptional off: no human confirmation even when the host supports elicitation (caps still apply)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add pusaka -- npx -y pusaka-mcp@1.1.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "pusaka": {
      "args": [
        "-y",
        "pusaka-mcp@1.1.2"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "pusaka": {
      "args": [
        "-y",
        "pusaka-mcp@1.1.2"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "pusaka": {
      "args": [
        "-y",
        "pusaka-mcp@1.1.2"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.pusaka]
command = "npx"
args = ["-y", "pusaka-mcp@1.1.2"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http pusaka https://pusaka-two.vercel.app/api/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "pusaka": {
      "args": [
        "-y",
        "mcp-remote",
        "https://pusaka-two.vercel.app/api/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "pusaka": {
      "url": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "pusaka": {
      "type": "http",
      "url": "https://pusaka-two.vercel.app/api/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.pusaka]
command = "npx"
args = ["-y", "mcp-remote", "https://pusaka-two.vercel.app/api/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: pusaka_overview, pusaka_inspect, pusaka_buy, pusaka_fund_loan, pusaka_repay_loan, pusaka_claim_collateral, pusaka_list, pusaka_cancel_listing, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json