Skip to main content
Glama
x402 Oracle MCP (Base USDC)

x402 Oracle MCP (Base USDC)

README.md
# x402 Oracle (`x402orcle`)

**402 is the answer. The Oracle is how you ask.**

[![x402 Oracle (KwizzleSurp) listed on x402-list](https://x402-list.com/badge/x402-oracle-kwizzlesurp.svg)](https://x402-list.com/services/x402-oracle-kwizzlesurp?utm_source=badge&utm_medium=referral&utm_campaign=embed)
[![x402 Oracle (KwizzleSurp) uptime on x402-list](https://x402-list.com/badge/x402-oracle-kwizzlesurp.svg?data=uptime)](https://x402-list.com/services/x402-oracle-kwizzlesurp?utm_source=badge&utm_medium=referral&utm_campaign=embed)

Paid MCP + HTTP 402 wisdom market for x402 / MCP / A2A / Bazaar. Seller-only public host. Base USDC (`eip155:8453`).

## Discover

| Surface | Path |
| --- | --- |
| Landing | `/` |
| Catalog | `/.well-known/x402` |
| MCP | `/mcp` streamable HTTP JSON-RPC + `/.well-known/mcp.json` |
| A2A | `/.well-known/agent-card.json` |
| Fund | `/.well-known/funding.json` |
| LLMs | `/llms.txt` |
| Agents | `/agents.txt` |
| OpenAPI | `/openapi.json` (`x-payment-info`) |

## Tools

Free: `oracle_health`, `oracle_pricing`  
Paid: `oracle_ask` $0.10 · `oracle_diagnose_402` $0.50 · `oracle_review_mcp` $3 · `oracle_bazaar_rewrite` $1.50 · `complete_oracle_task` $10 (clamped to `MAX_PRICE_USD=25`)

Paid replies are a **wisdom envelope**: verdict, wisdom, implementation_prompt, risk, citations, receipt.

## Env (never a spend key)

```
X402_PAY_TO=0x…                 # 42-char address only
X402_NETWORK=eip155:8453
X402_FACILITATOR_URL=https://api.cdp.coinbase.com/platform/v2/x402
CDP_API_KEY_ID=                 # Secret API key id (JWT). Not a wallet key.
CDP_API_KEY_SECRET=
MAX_PRICE_USD=25
DEMO_MODE=true                  # local DemoFacilitator
```

Do **not** set `EVM_PRIVATE_KEY` on Vercel/Render. Buyer keys stay on the operator laptop.

`x402.org/facilitator` is not the default production path for mainnet EVM.

## Run

```bash
cp .env.example .env
pnpm install
pnpm --filter @x402orcle/oracle-brain test
pnpm --filter @x402orcle/mcp test
pnpm --filter @x402orcle/mcp dev     # :4021
pnpm --filter @x402orcle/web dev     # :3000 landing
```

Unpaid consult → HTTP 402 + `PAYMENT-REQUIRED` (base64 JSON, `extensions.bazaar`).  
Demo: `POST /v1/demo/mint-payment` then retry with `PAYMENT-SIGNATURE`.

## Bazaar

Cataloging is **settlement-triggered**. Validate first (no pay):

```bash
curl -sS -X POST https://api.cdp.coinbase.com/platform/v2/x402/validate \
  -H 'content-type: application/json' \
  -d '{"resource":"https://YOUR_HOST/api/consult/oracle_ask","method":"POST"}'
```

Then one mainnet seed settle from a local burner. No settlement = no rank.

## Monorepo

```
apps/web            Next.js App Router landing + discovery + 402
apps/mcp            streamable-HTTP paid MCP + HTTP twins
packages/oracle-brain
```

FOSS: `@x402/mcp` `createPaymentWrapper` + `x402ResourceServer`, `@x402/extensions/bazaar` `declareDiscoveryExtension` (see `apps/mcp/src/x402-foss.ts`).

## Legal

Payment for delivered consult artifacts or a voluntary tip. Not a token, not equity, not a raise.

TDQS

A4.3/5.0

Scored across 7 tools

Disambiguation4/5

Each tool has a distinct target: server health, pricing discovery, general Q&A, 402 header decoding, MCP architecture audit, Bazaar metadata generation, and full launch planning. Descriptions explicitly say "use X instead of Y," which resolves most overlap. The only mild ambiguity is between oracle_ask (general architecture Q&A) and oracle_review_mcp / complete_oracle_task, separated mainly by depth and price rather than topic.

Naming Consistency4/5

All names are snake_case with a shared 'oracle_' prefix family, which makes the set readable and predictable. Ordering varies slightly — mostly prefix+verb+noun (oracle_diagnose_402, oracle_review_mcp) but oracle_bazaar_rewrite reverses to noun+verb and complete_oracle_task moves the prefix to the suffix, so the pattern is not perfectly uniform.

Tool Count5/5

Seven tools is well within the ideal range and each has a clear role: two free discovery/read tools plus five paid consult tools at distinct price points. No redundant or filler tools appear.

Completeness4/5

The surface covers the full consult lifecycle: free health/pricing checks, then paid tiers from $0.10 Q&A up to $10 end-to-end planning, including 402 debugging and Bazaar metadata. Minor gaps exist — no tool to check settlement/payment status after a paid call or retrieve past task results, but agents can work around these via retries and the pricing endpoint.

Maintenance

ActivityActive
ResponsivenessNo recent community issues