Shipping a single MCP server usually teaches you one happy path: either you bundle a local stdio binary for desktop coding agents, or you put a stateless streamable-http endpoint behind a Worker.
Putting three very different servers under the same io.github.xgbtxy/* namespace in the Official MCP Registry — and getting both remote Workers to 10/10 registered resources (6/6 + 4/4) with zero errors and zero warnings on x402scan — forced every hidden schema assumption into the open.
Here are the three live entries currently active under io.github.xgbtxy/*:
- xgbtxy/ap (
io.github.xgbtxy/ap,v2.98.0, also on Glama) — a zero-dependency pure-Rust 37-tool localstdioMCP server and CLI (AST symbol read/edit, SQLite FTS5 log sieve, headless CDP checks, and Win32 process isolation), distributed as five platform.mcpbbundles. - xgbtxy/cf-x402-mcp (
io.github.xgbtxy/cf-x402-mcp,v0.3.0, /llms.txt, Glama) — a statelessstreamable-httpMCP server on Cloudflare Workers settling per-call Base USDC (eip155:8453) via x402 v2, with6/6endpoints registered on x402scan. - xgbtxy/coingecko-longtail-agent (
io.github.xgbtxy/coingecko-longtail-agent,v0.2.0, live Worker) — a Cloudflare Worker combining free Solana token discovery/risk MCP tools (Data by CoinGecko API+ Solana JSON-RPC mint/holder checks) with a Solana USDC (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp) x402 v2 paywall for Jupiter exit-slippage simulation and unsigned Solana Memo v2 attestations, with4/4resources registered on x402scan.
In an earlier note I covered discovery surfaces around cf-x402-mcp alone. Below is a side-by-side look at what actually differed across local Rust stdio, Base x402, and Solana x402 v2 — and the concrete schema pitfalls that broke CI or scanner checks along the way.
1. Three MCP shapes under one namespace
All three repositories validate against the same 2025-12-11 Registry schema (https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json) and publish via passwordless GitHub Actions OIDC (./mcp-publisher login github-oidc), yet almost everything underneath differs:
| Dimension | io.github.xgbtxy/ap (v2.98.0) |
io.github.xgbtxy/cf-x402-mcp (v0.3.0) |
io.github.xgbtxy/coingecko-longtail-agent (v0.2.0) |
|---|---|---|---|
| Runtime | Native single binary (pure Rust) | Cloudflare Workers (TypeScript) | Cloudflare Workers (TypeScript) |
| MCP transport | stdio |
streamable-http (POST /mcp) |
streamable-http (POST /mcp) |
server.json shape |
packages (5 .mcpb archives + fileSha256) |
remotes (1 HTTPS URL) |
remotes (1 HTTPS URL) |
| Payment rail | Free / MIT local binary | x402 v2 · Base USDC (eip155:8453, $0.01–$0.02) |
x402 v2 · Solana USDC (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp, $0.02) |
$0 inspection path |
Local CLI / --help / MCP tools/list |
{"sample": true} / ?sample=true + /api/poly-signals/preview |
Free /scan, /analyze, /mcp + ?demo=1 offline fixtures |
x402scan status |
N/A (local stdio) |
6/6 endpoints (0 errors, 0 warnings) |
4/4 endpoints (0 errors, 0 warnings) |
2. server.json and GitHub OIDC: packages vs. remotes
Using GitHub OIDC (permissions: id-token: write) was the cleanest part of the setup. Because the repository owner matches the reversed namespace (io.github.xgbtxy/*), mcp-publisher exchanges GitHub's short-lived OIDC token directly with the Registry — zero long-lived registry credentials stored in repository secrets.
Where the workflows diverged was artifact verification:
- Local
stdio(packages+.mcpb) has a release-CDN timing trap. Inxgbtxy/ap,server.jsondeclares fiveregistryType: "mcpb"entries (windows-x64,darwin-arm64,darwin-x64,linux-x64,linux-arm64), each requiring an exactfileSha256. Keeping real hashes committed inmainguarantees stale metadata on the next tag, so the repo keeps zeroed placeholders and stamps computed SHA-256 digests duringrelease.yml. Even then, runningmcp-publisher publishimmediately after uploading GitHub Release assets can race GitHub's release CDN. Adding a boundedcurl -ILreadiness loop until all five.mcpbdownload URLs returnHTTP 200— plus verifying themcp-publishertarball with Sigstorecosign verify-blobbeforevalidateandpublish— eliminated flaky release runs. - Remote Workers (
remotes+streamable-http) are simpler, until metadata limits bite. Bothcf-x402-mcpandcoingecko-longtail-agentomitpackagesentirely and declare a singleremotesentry:
{
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"name": "io.github.xgbtxy/coingecko-longtail-agent",
"description": "Solana long-tail token due-diligence & exit-liquidity MCP server (Data by CoinGecko API).",
"version": "0.2.0",
"repository": { "url": "https://github.com/xgbtxy/coingecko-longtail-agent", "source": "github" },
"remotes": [
{ "type": "streamable-http", "url": "https://coingecko-longtail-agent.yan8925298.workers.dev/mcp" }
]
}
Two small traps showed up across all three repos:
- The
<= 100-characterdescriptionceiling. Registry validation rejects verbose repository taglines (cf-x402-mcpfailed publish untilv0.2.1trimmeddescriptiondown; the three live descriptions now sit at96,97, and89characters). - Immutable published versions. You cannot overwrite
0.2.0in place after noticing a typo; everyserver.jsonfix requires bumping semver and pushing a freshv*tag. Running./mcp-publisher validatein CI before tagging saves burning patch numbers on schema mistakes.
3. Getting 10/10 (6/6 + 4/4) clean on x402scan across Base and Solana
cf-x402-mcp (6 POST tool/signal routes on Base) and coingecko-longtail-agent (GET /scan, GET /analyze, GET /premium/analyze, and POST /mcp on Solana) look similar from 10,000 feet, yet coingecko-longtail-agent initially failed x402scan compatibility because its paywall started with x402 v1 habits.
Reaching 10/10 registered endpoints with zero errors and zero warnings came down to three groups of fixes:
A. Upgrading from informal v1 fields to strict x402 v2 + CAIP-2
In x402 v1 examples, it was common to see x402Version: 1, "network": "solana", "maxAmountRequired": "20000", and "error": "X-PAYMENT header is required". Strict v2 indexers reject or downgrade that shape. Moving coingecko-longtail-agent to match cf-x402-mcp required:
- Setting
x402Version: 2,error: "payment required", and a top-levelresource: { url, description, mimeType: "application/json" }block. - Using
amount(atomic USDC units:"10000"for$0.01,"20000"for$0.02) insideaccepts[]rather thanmaxAmountRequired. - Using CAIP-2 chain identifiers paired with canonical USDC mint/contract addresses:
- Base mainnet:
network: "eip155:8453",asset: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"(/.well-known/x402). - Solana mainnet:
network: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",asset: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"(/.well-known/x402).
- Base mainnet:
B. HTTP 402 headers and CORS exposure
Returning JSON in the 402 response body is not enough. Both Workers encode the v2 challenge JSON as Base64 in the PAYMENT-REQUIRED header and include Access-Control-Expose-Headers: PAYMENT-REQUIRED, PAYMENT-RESPONSE (plus Mcp-Session-Id on cf-x402-mcp). Without Access-Control-Expose-Headers, curl -i looks completely fine in your terminal while browser-based inspectors and web agents see an empty header map.
C. OpenAPI 3.1 lint details that silently trip scanners
Directory scanners read /openapi.json literally:
- Query parameter drift: in
coingecko-longtail-agent, the Worker parsed?q=<mint>on/analyzeand/premium/analyze, while the early OpenAPI spec still named the query parametermint. Aligning both routes toqfixed automated probe mismatches. - Mixed free and paid routes: unlike
cf-x402-mcp(where all six REST routes in openapi.json are paidPOSTendpoints),coingecko-longtail-agent's openapi.json mixes three free routes (/scan,/analyze,/mcp) with one paid route (/premium/analyze). Explicitly marking free operations withsecurity: [], adding typed200application/jsonschemas, and includinginfo.contactmetadata cleared the last scanner warnings across all four Solana resources.
4. $0 trial paths and keyless CI keep you honest
A paywall makes cold-start testing painful for both external callers and your own CI pipeline. Two patterns kept iteration fast without holding any wallet keys in Worker secrets or GitHub Actions:
- Deterministic
$0inspection modes:- Every tool on
cf-x402-mcpadvertises"sampleArguments": { "sample": true }in/.well-known/x402, returning a deterministic response at$0via MCP or?sample=trueover REST. coingecko-longtail-agentkeeps/scan,/analyze, and/mcp(scan_longtail,analyze_token) free, and supports?demo=1(plus--offlineon the CLI) backed by deterministicRUGGYandSOLIDtoken fixtures so anyone — or CI — can exercise the full risk scorer, Jupiter$500/$2,500exit-slippage check, and SHA-256 Solana Memo v2 instruction builder with zero API keys or funds.
- Every tool on
- Contract tests on the unpaid
402boundary:cf-x402-mcp(51/51Vitest tests) andcoingecko-longtail-agentassertx402Version === 2, exact CAIP-2networkstrings, atomicamountvalues, Base64PAYMENT-REQUIREDheaders, and OpenAPI schema parity on every push before deployment.- Neither Worker ever holds a wallet signing key: payments verify via facilitator, and Solana audit trails are emitted as unsigned Memo Program v2 instructions for the caller's own wallet to sign if they choose.
5. Honest limits and what is still rough
Having 3/3 active entries on the Official MCP Registry and 10/10 zero-warning endpoints on x402scan feels tidy, though I want to be candid about what it does not solve:
- Schema compliance is not settlement load-testing. Zero warnings on
x402scanproves that discovery manifests, OpenAPI 3.1 specs, and unpaid402headers match the v2 contract. It does not prove facilitator latency, RPC rate-limit resilience, or wallet UX when real Base or Solana transactions hit concurrently. - Discovery surfaces still drift across repos.
cf-x402-mcpserves/llms.txt,/.well-known/x402, and/openapi.json;coingecko-longtail-agentcurrently ships/.well-known/x402,/openapi.json, and an interactive browser terminal at/, without/llms.txtyet. Every extra repo multiplies metadata maintenance. - Client tooling is still split down the middle. Desktop coding agents make local
stdio(ap) effortless, whereas very few general-purpose MCP clients automatically negotiatestreamable-httpand retry HTTP402challenges across both EVM (eip155:8453) and Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp) without custom client glue.
If you are maintaining multiple MCP servers under one namespace — or shipping x402 v2 endpoints on either Base or Solana — I would love to compare notes: which schema check or client quirk cost you the most debugging time?
Links
- Official MCP Registry ·
io.github.xgbtxy/*(3 active servers) github.com/xgbtxy/ap(MIT,v2.98.0,691+release downloads, 5-platform.mcpbbundles)github.com/xgbtxy/cf-x402-mcp(MIT,v0.3.0, 51/51 Vitest tests, Base USDC) · x402scan (6/6, 0 warnings)github.com/xgbtxy/coingecko-longtail-agent(MIT,v0.2.0, Solana USDC) · x402scan (4/4, 0 warnings)- Essay #11: Discovery Is the Hard Part: Shipping an x402 MCP Server Agents Can Actually Find
- Essay #10: Shipping a Pure-Rust MCP Server Across the Official Registry, Glama, Docker, and a Plugin Bundle
我觉得技术没有壁垒,在合适的时间做合适的事情就好,hhh