Server data from the Official MCP Registry
Diagnose x402 seller endpoints: what is wrong with your 402 challenge, and how to fix it.
About
Diagnose x402 seller endpoints: what is wrong with your 402 challenge, and how to fix it.
Remote endpoints: streamable-http: https://x402-doctor.tsharpe.workers.dev/mcp
Security Report
Valid MCP server (1 strong, 1 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.
3 tools verified · Open access · No issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Connect
Remote Plugin
No local installation needed. Your AI client connects to the remote endpoint directly.
Add this to your MCP configuration to connect:
{
"mcpServers": {
"com-twelvepermissions-x402-doctor": {
"url": "https://x402-doctor.tsharpe.workers.dev/mcp"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
Twelve Permissions — verification apparatus
Twelve NFTs on XRP Ledger mainnet. Twelve permissions a man gave himself while learning what he could build with AI — the last of which mints only if a robot dog is delivered to Anchorage, paid for entirely by NFTs his agents minted and sold. The art is not illustration: every mark is derived from the SHA-256 of the canonical authorization record, so the seal is the hash, rendered.
This repository exists so you don't have to take any of that on trust. It holds the generator, the canonical records, and the server source. Re-run them yourself.
Collection: https://twelvepermissions.com/
Issuer: rHEiuaYLNQ4UdLqeUrnE9AwEHqsDMr9g9R (taxon 12, 5% royalty)
Verify a seal from first principles
No dependencies. Node only.
node generate.js # regenerates every seal from events.json
git status # should report no changes
The second line is the test. The generator overwrites pieces/ in place, so if
git reports nothing changed, the published art reproduced byte for byte. If a
single character of a canonical record differed, the palette, the 64-tick ring
and the central sigil would all change with it. Forging a seal means breaking
SHA-256.
To check one piece end to end:
- Read its canonical record in
events.json. - Take the SHA-256 of that record — it is committed in the NFT's on-chain URI.
- Re-run the generator and compare the art, byte for byte.
- Look up the mint transaction in
records/minted.mainnet.jsonon any XRPL explorer.
VERIFY.md has the long version.
What's here
| Path | What it is |
|---|---|
generate.js | The deterministic seal generator. No dependencies. Byte-identical to the copy served at /generate.js. |
events.json | Canonical authorization records — the input to everything |
pieces/NN.json | Per-piece NFT metadata as published |
pieces/NN.svg | The seals, as vectors — regenerated in place by generate.js |
records/minted.mainnet.json, listings.mainnet.json | Mint and listing transactions, all public on-chain facts |
records/refusals.json | The constraints ledger: standing policy on what the issuing agent will not do. Hash-chained, head anchored on mainnet. Includes an erratum correcting an earlier, overstated version of itself — the anchor of that version is preserved rather than erased. |
records/PRECOMMITMENT-12.md | Binding terms for piece #12, anchored on-chain before the fact |
src/worker.js | The Cloudflare Worker: storefront, MCP server, catalog |
src/x402.js | The x402 seller implementation (Base, USDC) |
Two artifacts, and only one of them proves anything
Each piece has two images, and the difference matters:
pieces/NN.svg— the canonical seal. Derived deterministically from the SHA-256 of its record bygenerate.js. This is what verifies, and it is whatanimation_urlpoints at in the metadata.NN.png— the display image. The same seal composited over generated field artwork bycompose-art.js. It is whatimagepoints at, it is what you see on a marketplace, and it is not hash-derived. The field art is decorative.
That split is deliberate and is stated in every piece's metadata under
verification. Art that cannot be regenerated from the record proves nothing,
so the provable artifact is kept separate from the pretty one rather than
quietly merged into it.
PNGs are not committed here because they are large and are display-only. Operational tooling (minting, listing, sale-watching, wallet handling) and internal planning notes are deliberately not published.
The MCP server
The collection is installable as a tool. Streamable HTTP, stateless:
POST https://twelve-permissions.tsharpe.workers.dev/mcp
Tools: list_pieces, get_piece, get_buy_transaction, get_x402_info,
verify_seal, get_refusals.
The x402 seller, and what it cost to learn
src/x402.js is a working x402 seller on Base mainnet, settling real USDC
through the Coinbase CDP facilitator. Seller-side x402 is meaningfully harder
than buyer-side, and several failure modes are undocumented. If you are building
one, these cost us time:
outputSchema: nullis rejected. The facilitator's schema is not nullable. Omit the field entirely rather than sending an explicit null.- Verdicts arrive with HTTP 400. Read the response body regardless of status code; a non-2xx does not mean "no answer."
- A piped secret can upload empty. A stray blank line produced a binding that existed but was falsy. Length-check what you upload.
- 402 challenges must not be cacheable. A CDN happily caches them, and a
cached challenge hands a paying agent stale payment requirements — an old
price, or an item already sold. Send
no-store. - Bazaar discovery declarations belong at the top level of the 402 body, not
inside an
acceptsentry. Entries inacceptsare forwarded verbatim to a strict schema that rejects unknown fields.
Those traps are now a tool: the x402 Doctor
Three of the failures above are checks you can run against your own endpoint,
so they are — along with thirteen more — in doctor/.
https://x402-doctor.tsharpe.workers.dev
curl -s -X POST https://x402-doctor.tsharpe.workers.dev/probe \
-H 'Content-Type: application/json' \
-d '{"url":"https://your-service.example/paid-endpoint"}'
It performs the handshake a paying client would — a GET with no X-PAYMENT
header — and reports what is wrong with the 402 you answer with, plus a fix for
each finding. Also an MCP server at POST /mcp. Free, no payment, no key, and
it never validates through a facilitator, because that would route your traffic
through someone else's facilitator credentials.
Every check states where it came from: spec means the specification requires
it, observed (source) means we watched a real facilitator reject it and the
source is named. See doctor/README.md for the full table
and doctor/SECURITY.md for the SSRF posture and the
residual risks that were accepted rather than fixed.
It is unrelated to anything sold here, and nothing about it asks you to buy anything.
Licensing
No licence is granted at this time; all rights reserved. The code is published for inspection and verification. If you want to reuse any of it, ask.
A note on the origin, and on a correction
A widely-shared post described an AI agent that minted NFTs, sold them, and funded a robot dog. This collection is an attempt at the same thing from a standing start, by someone with no platform and no background in software, with every step recorded so a stranger can check the chain.
The first seven seals were withdrawn and reissued on 16 August 2026. They were written by an agent that made itself the hero of someone else's story. Nothing had sold, so no owner was harmed by the correction, and the original mint and burn transactions remain permanently on the ledger. See ERRATUM-2026-08-16.md.
Nothing here asks to be believed.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Fetch
Freeby Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
mcp-creator-python
Freeby mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
MarkItDown
Freeby Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
FinAgent
Freeby mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.
