Mapae
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Mapae
Give your AI assistant a scoped payment pass, never your wallet.
Task-scoped payment mandates, isolated 7-step HSP settlement, and Chainlink CCIP cross-chain kill-switch controls for commercial AI assistants on HashKey Chain.
Demo Video (2m 42s · 1080p 30fps)
Timestamp | Scene | Live Proof Demonstrated |
| Problem & Landing | Why agent payments fail today + live |
| 4-Step StoryDeck | Interactive mission cap ( |
| Overview, MCP & 1-Tap Approval | Live console overview → Claude Duet Streamable HTTP MCP config → 1-tap approval minting scoped |
| End-to-End Mission & 7-Step HSP |
|
| Price-Drift Guardrail ( | Automatic |
| Multi-Rail Treasury & CCIP Revoke | Safe 2/3, Session Vault & EOA reservations → |
| Live On-Chain Verification | Blockscout |
| 5 Primitives & Verification Summary | Full HashKey ecosystem architecture, test scoreboard ( |
Related MCP server: QuestMCP
Live Production Endpoints (V2 — 24/7 Cloud AI Disposable Pass & OAuth 2.1)
Judge Quick Start: Read
JUDGES.md(60-second verification),PROOF.md(complete on-chain + Official HSP QA proof ledger),docs/PRODUCT_FEATURES.md(full feature catalog), anddocs/V2_PRODUCTION_PLAN.md(DC-0..DC-12completion checklist). Verify all 6 live on-chain & HSP proofs with zero private keys:node scripts/verify-proofs.mjs.
Surface | Live URL | Description |
Web & Installable PWA | Interactive landing, 4-step walkthrough, EN/KO, Light/Dark | |
Owner Console App (0-Click) | 5-view console + Live Verified Proof Inspector + 1-Time Scoped Spending Authority Passes | |
Remote Streamable HTTP MCP | 6 standard JSON-RPC 2.0 payment tools ( | |
OAuth 2.1 + PKCE ( | Spec-compliant MCP Auth ( | |
Mobile Out-of-Band Approval |
| 1-Tap Pass Issuance + optional 1-Time EIP-6963 Wallet Anchor ( |
Cross-Device Pairing & SIWE |
| Single-use 10-min QR pairing + 1-Time EIP-4361 Wallet SIWE sync |
Agent Skill & OpenAPI 3.1 | Drop-in skill + Manifest + OpenAPI 3.1 + Well-Known |
Verified On-Chain Smart Contracts & DC-0 Single-Order Correlated Proof
Layer / Contract | Network | Verified Address / Flow ID | Live On-Chain Proof |
DC-0 v2 Distinct-Signer Correlated Proof | HSK Mainnet ( | Mandate | Exact |
Official HSP QA Gateway ( | Ethereum Sepolia ( | 5 live |
|
| HashKey Chain Mainnet ( |
| Deploy · Full Guardrail Proof ( |
| HashKey Chain Testnet ( | ||
| Ethereum Sepolia ( |
Runtime Transparency & Non-Custodial Authority Model: Mapae has completed 5 real live settlements on HashKey's official HSP QA MCP server (
https://mcp-qa.hashkeymerchant.com/) (including the DC-0 v2 distinct-signer correlated run linking directly decoded Sepolia100,041micro-USDCTransferlogs to HSK Mainnet177MapaeRegistry.consume(100041)+ 6 live custom-error reverts) — independently verifiable withnode scripts/verify-proofs.mjs. Because Cloudflare Workers egress IPs are dynamic (outside HSP QA's static IP allowlist), the hosted interactive console (https://mapae.web-three.net) transparently displays a Sandbox Mode badge and emitsonchainAnchored: false/ccipStatus: simulated(zero fabricated tx hashes) alongside an inline Live Verified Proof Inspector, running real per-passviemEIP-712 signing, per-visitor isolated Durable Objects (MapaeSignerDO), non-custodial 1-time scoped spending authority passes (authorityStatus+releasedAuthorityUsd, zero custodial sweep), owner-authenticated CIBA out-of-band mobile approval, and OAuth 2.1 + PKCES256.
Why Mapae?
Commercial AI assistants (Claude Duet, OpenAI dots, Perplexity Computer, Gemini Spark, Grok Bot, Meta Muse, Pickle, Manus Cue, Cursor, Claude Code) can already browse merchants and invoke paid APIs — yet payments fail in three predictable ways:
Raw Credential Exposure — Handing credit cards or wallet private keys directly to an untrusted agent runtime.
Unbounded Spend Loops — Runaway tool calls draining funds before a human can intervene.
Approval Fatigue — Interrupting the user on every
$0.03metered API call instead of approving one mission budget once.
Mapae — inspired by the Joseon royal Mapae travel warrant (scoped authority, fixed allowance, instant recall) — issues a single-task proxy pass (mpt_...) with 0 private keys in the assistant VM. Metered HTTP 402 lookups auto-settle silently inside the limit, unexpected price drift holds for 1-tap owner approval, over-cap attempts revert on-chain (ExceedsMapaeCap), and one-tap revocation freezes every chain via Chainlink CCIP.
Product Preview
Architecture — 5 Organic HashKey Ecosystem Primitives
Mapae separates AI assistant execution from payment authority, cryptographic signing, and on-chain enforcement across five tightly interlocked layers:
flowchart TB
subgraph USER["1. Owner Surface (Zero Persistent Wallet)"]
PWA["Owner Console & Mobile PWA<br/>/app · /approve/:id · /pair/:code"]
WALLET["Optional 1-Time EIP-6963 Wallet<br/>MapaeRegistry.issue() / SIWE<br/>Auto-Disconnects Immediately"]
PWA -. "1-Time Sign Only" .-> WALLET
end
subgraph AI["2. 24/7 Cloud & Local AI Assistants (0 Private Keys)"]
CLIENTS["Claude · ChatGPT · Grok · Perplexity<br/>Claude Code · Codex · Cursor · OpenCode"]
TOK["Holds ONLY Scoped Pass Token (mpt_...)<br/>+ Agent Poll Token (mpp_...)"]
CLIENTS --- TOK
end
subgraph EDGE["3. Cloudflare Edge Control & Isolated Signer Plane"]
MCP["MCP Layer (6 Tools)<br/>/mcp (Streamable HTTP) · /mcp/oauth (OAuth 2.1)<br/>npx mapae-mcp · SKILL.md · OpenAPI 3.1"]
COORD["Global Coordinator DO<br/>Routes req_ / drift_ / sha256(mpt_)<br/>OAuth 2.1 · QR Pairing · SIWE Nonces"]
DO["Per-Owner Isolated MapaeSignerDO<br/>Atomic Cent Reservation · >5% Drift Guard<br/>Per-Pass viem EIP-712 · HTTP 402 Gateway"]
MCP --> COORD --> DO
end
subgraph HSKLAYER["4. Official HSP Settlement & HashKey Chain Authority"]
HSP["Official HSP 8-Tool Gateway<br/>get_chain_config -> create_order -> prepare<br/>EIP-3009 Gasless USDC -> query_payment"]
REG["MapaeRegistry.sol (HSK Mainnet 177)<br/>0x3a84...e3D3 · Verified<br/>issue() · delegate() · consume() · anchorReceipts() · revoke()"]
end
subgraph CCIPLAYER["5. Chainlink CCIP Cross-Chain Kill-Switch"]
MIRROR["MapaeMirror.sol (Sepolia / Base)<br/>0xC878...3d3a · ERC-165 OffRamp Receiver<br/>ccipReceive() -> assertChainActive()"]
end
CLIENTS -- "JSON-RPC 2.0 / HTTP 402" --> MCP
PWA -- "HttpOnly mapae_owner<br/>1-Tap Approve / Drift / Revoke" --> COORD
WALLET -- "1-Time issue() Tx" --> REG
DO -- "Verify MapaeIssued RPC<br/>+ Consume / Anchor / Revoke" --> REG
DO -- "7/8-Step Signed Settlement" --> HSP
REG -- "revokeAndPropagate()<br/>via Chainlink CCIP" --> MIRRORAI Assistant ↔ User ↔ Mapae Interaction Flow (CIBA Out-of-Band Pass)
How a user and a 24/7 cloud AI assistant actually exchange messages, issue a 1-time scoped pass, settle silently inside the cap, handle price drift, and seal remaining authority:
sequenceDiagram
autonumber
actor User as User (Web / Mobile)
participant AI as AI Assistant (0 Keys)
participant MCP as Mapae MCP & Coordinator
participant DO as Isolated MapaeSignerDO
participant HSP as Official HSP Gateway / HTTP 402
participant HSK as MapaeRegistry (HSK 177)
participant CCIP as MapaeMirror (CCIP)
rect rgb(244, 246, 250)
note over User,HSK: Phase 1 — Natural Request & 1-Time Scoped Pass Issuance (CIBA)
User->>AI: "Find the quietest humidifier under $110 and complete checkout"
AI->>MCP: mapae_request(task, capUsd=108, category="shopping", ttlHours=12)
MCP->>DO: Create pending pass & derive isolated disposablePassAddress
MCP-->>AI: approvalUrl (/approve/req_...) + pollToken (mpp_...) [0 keys]
AI-->>User: Share clickable approvalUrl in chat
AI->>MCP: mapae_poll_approval(req_..., mpp_...) [waiting]
User->>MCP: Open /approve/req_... -> review cap & stores -> Tap Approve
opt Optional 1-Time On-Chain Anchor (Auto-Disconnects Wallet)
User->>HSK: EIP-6963 1-time MapaeRegistry.issue(salt, passAddr, cap, merkleRoot, ttl)
DO->>HSK: Verify MapaeIssued log via HSK 177 RPC
end
MCP-->>AI: Approved! Deliver scoped 1-time proxyToken (mpt_...)
end
rect rgb(240, 250, 245)
note over AI,HSK: Phase 2 — Silent HTTP 402 Micro-APIs & 7/8-Step HSP Checkout
AI->>HSP: GET /merchants/reviewpulse/acoustic (no token)
HSP-->>AI: 402 PAYMENT_REQUIRED (orderId, $0.03)
AI->>HSP: Retry with X-Mapae-Token: mpt_... + X-Mapae-Order-Id
DO->>DO: Atomic cent cap check + auto-settle (0 popups)
HSP-->>AI: 200 OK (review data + auto_settled receipt)
AI->>MCP: mapae_quote("homecraft", "humidifier-4l")
MCP-->>AI: Authoritative server-locked quote ($100.08, orderId)
AI->>MCP: mapae_pay(orderId, mpt_..., idempotencyKey)
DO->>DO: Verify scope, cap, replay & price drift (<=5%) -> viem EIP-712 sign
DO->>HSP: 7/8-Step HSP EIP-3009 Gasless Settlement (USDC)
HSP-->>DO: payment-finalized + txHash
DO->>HSK: consume(exactAmount, hspOrderHash) & anchorReceipts(merkleRoot, hspRef)
MCP-->>AI: Settled receipt + remaining allowance ($7.83 left)
AI-->>User: "Done! Purchased HomeCraft 4.2L ($100.08). Receipt & $7.83 left."
end
rect rgb(253, 245, 245)
note over User,CCIP: Phase 3 — Guardrails (Drift Hold / Over-Cap Block) & Instant Seal / CCIP Revoke
alt Merchant Price Jumps > 5%
DO-->>AI: PriceDriftHeld + driftApprovalUrl (/approve/drift/...)
AI-->>User: Send 1-tap drift approval link
User->>MCP: 1-Tap Approve Drift -> DO signs & settles
else Over-Cap or Unapproved Store Attempt
DO-->>AI: 402 Blocked BEFORE signing (ExceedsMapaeCap / MerchantNotInScope)
end
alt Mission Complete (Auto-Seal)
AI->>MCP: mapae_close(mpt_...)
DO->>DO: Seal pass & release unused authority (subsequent pay rejected)
else Emergency Owner Kill-Switch
User->>MCP: 1-Tap Revoke in Console
DO->>HSK: MapaeRegistry.revoke(mandateId)
HSK->>CCIP: revokeAndPropagate() -> MapaeMirror.ccipReceive()
CCIP-->>AI: Parent + all delegated sub-agents blocked across chains
end
end# | Official Tool / Ecosystem Primitive | Key Files | Organic Role in Workflow |
1 | HSP API (HashKey Stablecoin Payment) | 8-tool Official HSP QA MCP client ( | |
2 | Payment Mandate ( | HSK Mainnet | |
3 | HSP Gateway & HTTP 402 Facilitator |
| Isolated per-owner signer holding derived pass keys (0 keys in AI), atomic integer-cent budget & shared-wallet reservations, silent HTTP 402 metered API auto-settlement, and |
4 | MCP ( |
| 6 purpose-built payment tools ( |
5 | Chainlink CCIP Kill-Switch ( |
| Verified ERC-165 OffRamp receiver on Ethereum Sepolia ( |
For the full security boundary specification (HttpOnly mapae_owner vs ?ws= isolation, OAuth 2.1 PKCE + family revocation, concurrent wallet reservation, and strict 2-step HTTP 402 idempotency), see docs/ARCHITECTURE.md.
Connect Any Assistant in 10 Seconds
Remote Streamable HTTP MCP (Claude / OpenAI / Grok / Perplexity)
{
"mcpServers": {
"mapae": {
"type": "http",
"url": "https://mapae.web-three.net/mcp"
}
}
}Local Zero-Key Stdio Shim (Cursor / Claude Desktop / Claude Code)
{
"mcpServers": {
"mapae": {
"command": "npx",
"args": ["-y", "mapae-mcp"],
"env": {
"MAPAE_MCP_URL": "https://mapae.web-three.net/mcp"
}
}
}
}Repository Structure
mapae/
├── apps/
│ ├── web/ # React 19 + Tailwind v4 landing, 5-view console, EN/KO, installable PWA
│ └── worker/ # Cloudflare Worker + MapaeSignerDO, 7-step HSP adapter, MCP & HTTP 402 APIs
├── contracts/
│ ├── src/ # MapaeRegistry.sol (HSK Chain) & MapaeMirror.sol (Chainlink CCIP mirror)
│ ├── script/ # DeployHSK.s.sol, DeployMirror.s.sol, verify-anvil-live.sh
│ └── test/ # Foundry test suite (7/7 PASS)
├── packages/
│ ├── mapae-mcp/ # Zero-key stdio MCP shim (JSON-RPC single/batch + SSE)
│ └── shared/ # Shared chain configs (HSK 133/177, CCIP routers), types, horse grades
├── plugin/ # Static SKILL.md, manifest.json, and OpenAPI 3.1 spec
├── scripts/ # deploy-onchain.sh, verify-live.mjs, verify-browser-e2e.mjs
└── docs/ # ARCHITECTURE.md, VERIFICATION_EVIDENCE.md, and QA proof screenshotsLocal Development, Testing & On-Chain Deployment
Prerequisites
Node.js 20+,
pnpm9+, Foundry (forge,cast,anvil)
Build & Run All Verification Suites
# 1. Install dependencies
pnpm install
# 2. Build web bundle, strict typecheck, and run all 26 unit/contract tests
pnpm build:web && pnpm typecheck && pnpm test
# 3. Run local Anvil (chainId 133) live signed EVM tx verification (7/7)
./contracts/script/verify-anvil-live.sh
# 4. Run live HTTPS production E2E against https://mapae.web-three.net (11/11)
pnpm verify:live
# 5. Run real Headless Chrome interactive browser E2E (14/14, multi-browser isolation + 390px mobile + PWA)
pnpm verify:browser
# 6. Start local dev servers (Vite proxies /api, /mcp, /merchants, /plugin to Worker)
pnpm dev:worker
pnpm dev:webDeploy Smart Contracts to HashKey Chain (1 Command)
cp .env.example .env
# Set DEPLOYER_PRIVATE_KEY in .env (~0.003 HSK needed on HSK Testnet at ~1 gwei)
# Deploy & verify MapaeRegistry on HSK Testnet (133) only:
./scripts/deploy-onchain.sh testnet --registry-only
# Or deploy MapaeRegistry (HSK 133) + MapaeMirror (Ethereum Sepolia 11155111):
./scripts/deploy-onchain.sh testnet
# Mainnet (HSK 177 + Base 8453):
./scripts/deploy-onchain.sh mainnetVerification Scoreboard
Verification Suite | Status | Coverage |
Independent On-Chain & Official HSP QA Verifier ( | 6 / 6 PASS | Live HSK Mainnet |
Foundry Smart Contracts ( | 7 / 7 PASS | Caps, Merkle allowlists, delegation replay, ERC-165 CCIP mirror, spoofed-router rejection, non-payable pull refunds |
Worker Engine, CIBA & OAuth 2.1 ( | 15 / 15 PASS | Full lifecycle, CIBA global routing, zero CSRF self-approval bypass ( |
| 4 / 4 PASS | Single & batch JSON-RPC relay, |
Live HTTPS Production E2E ( | 11 / 11 PASS | Verified live on |
Real Chrome Browser E2E ( | 14 / 14 PASS | 0-click console, DC-0 v2 Live Proof Inspector, proactive owner auth on CIBA |
Real Agent Resumption E2E ( | 2 / 2 PASS | Live Claude Code & OpenAI Codex ( |
Adversarial Security Audit ( | PASS (0 P0/P1) | Full review & re-verification of OAuth 2.1, CIBA, coordinator, pairing, SIWE, LIVE guards, and V2 frontend |
Full cryptographic digests, transaction hashes, and product feature catalogs are documented in PROOF.md, JUDGES.md, docs/PRODUCT_FEATURES.md, and docs/V2_PRODUCTION_PLAN.md.
License
MIT © 2026 Mapae Contributors — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Payments for AI agents in any coin: pay bills, get paid, one-tap approval, quantum-safe receipts.
Payment infrastructure for AI agents: wallet, passport, owner-enabled Polygon and Base payments.
- AgentPaysDeprecateddev.agentpays
Payment infrastructure for AI agents: spending rules, approval flows, single-use virtual cards.
Non-custodial stablecoin bill-pay rails on Celo & Base for AI agents, settled on-chain via MCP.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to perform financial transactions such as direct payments, escrows, and bounty management using natural language with zero code integration. It provides a comprehensive suite of tools for fund streaming, subscriptions, and reputation tracking to facilitate secure agent-to-agent commerce.MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to post real-world tasks, match them to people, and release payments through a delegation-based authorization system that enforces scoped, spend-capped permissions.-
- AlicenseAqualityBmaintenanceEnables AI agents to make non-custodial USDC payments on Base through an MCP endpoint, with server-enforced per-payment and daily caps, human approval bands, and recipient allowlists.728 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to manage ephemeral payment tokens with cryptographic spend mandates, risk scoring, catalog resolution, and automated bargaining through native MCP tools.7MIT