Skip to main content
Glama

basedhuman-mcp

STDIO bridge to Carbon Contractors — the HaaS platform where AI agents hire and pay humans via USDC on Base.

Runs as a local MCP server over STDIO and forwards every JSON-RPC message verbatim to the hosted streamable-HTTP endpoint at https://www.carbon-contractors.com/api/basedhuman.mcp. The tool surface, validation and business logic all live server-side; this package is the ergonomic local entrypoint so you don't have to hand-configure an HTTP endpoint.

Tools (defined server-side, surfaced through this bridge)

search_whitepages, request_human_work, get_task_status, confirm_task_completion, register_notification_channel, get_contractor, list_categories, get_reputation, dispute_task, get_signed_verdict

Related MCP server: cardzero-mcp

Install & configure

Not yet published to npm (publishing is gated on supply-chain hardening, tracked as CC-045). Until then, install from this repository:

git clone https://github.com/carbon-contractors/basedhuman-mcp
cd basedhuman-mcp
npm install
npm run build

Claude Code / Claude Desktop

{
  "mcpServers": {
    "carbon-contractors": {
      "command": "node",
      "args": ["/absolute/path/to/basedhuman-mcp/dist/index.js"],
      "env": {
        "BASEDHUMAN_MCP_URL": "https://www.carbon-contractors.com/api/basedhuman.mcp"
      }
    }
  }
}

Environment variables

Variable

Default

Purpose

BASEDHUMAN_MCP_URL

https://www.carbon-contractors.com/api/basedhuman.mcp

Remote endpoint

BASEDHUMAN_WALLET_PRIVATE_KEY

—

Private key for challenge-response wallet auth. Without it the bridge runs anonymous (read-only tools)

BASEDHUMAN_EXTRA_HEADERS

—

Extra headers on every request, multi-line Name: value

BASEDHUMAN_LOG

info

stderr log level: error | warn | info | debug

Wallet authentication (optional)

The remote endpoint authenticates callers with a challenge-response signature scheme (EOA or ERC-1271 smart wallet). The bridge handles it automatically when BASEDHUMAN_WALLET_PRIVATE_KEY is set:

  1. It requests a challenge (single-use nonce, 60s TTL) from the endpoint's /challenge route.

  2. Signs the exact challenge message with the private key.

  3. Attaches x-caller-wallet / x-caller-signature / x-caller-nonce headers to the session-creating request.

  4. On session expiry (~30 min idle) it transparently re-authenticates with a fresh challenge and replays the pending request.

For smart wallets (ERC-1271, e.g. Coinbase Smart Wallet) the remote verifier is on-chain aware; this bridge signs locally with the raw private key, which suits EOA-style operator keys. (Smart-wallet signing from STDIO would need a signer process; not currently supported.)

Development

npm install
npm run build      # tsc → dist/
npm test           # vitest, 19 unit tests
npm run lint
npm run typecheck
node scripts/smoke-test.mjs   # live smoke test against the hosted endpoint

Security notes

  • The bridge performs no argument validation of its own — every message is forwarded verbatim and validated by the remote server, which applies Zod schemas to every tool input. This package is transport-only.

  • BASEDHUMAN_WALLET_PRIVATE_KEY is a hot key by necessity (STDIO signing). Use a dedicated operator key, not a treasury key.

  • Supply-chain hardening and npm publish are tracked in CC-045; this package must not be published to npm before that work is complete.

License

MIT © Aaron Clifft

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Gives AI agents a smart-contract wallet on Base (USDC) with 10 stdio tools: create wallets, send USDC payments, pay x402-protected HTTP resources, and run ERC-8183 escrow Jobs for A2A service delivery.
      10
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an AI assistant to delegate coding tasks to local Codex or Claude Code CLIs, monitor their progress, read results, continue sessions, and browse the files in user-approved project workspaces. It exposes these capabilities over Streamable HTTP through a Cloudflare tunnel or locally over stdio, so a remote or cloud client can drive agents running on the user's own machine.
      71 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to interact with an agentic GameFi project on Robinhood Chain using their own wallet, supporting public state checks, sign-in, gameplay, daily skill trials, companion linking, persona management, job tickets, and job completion. It runs locally over stdio and signs only a free sign-in message, without sending transactions or moving funds.
      8
      MIT