x402 icon indicating copy to clipboard operation
x402 copied to clipboard

Add LogicNodes to ecosystem (Services/Endpoints)

Open cmdenney opened this issue 6 months ago • 3 comments

Description

Adds LogicNodes to the ecosystem page under Services/Endpoints, per the instructions in typescript/site/README.md (metadata.json + logo in partners-data/).

LogicNodes (https://logicnodes.io) provides agent payment, identity, and compliance infrastructure on Base: deterministic microservices (gas oracle, signature verification, escrow verification, attestations) priced per call and payable in USDC via x402. Live discovery surface: GET https://logicnodes.io/discovery/resources (the service count there is the source of truth — it changes as services are added/pruned, so this PR intentionally avoids hardcoding a number). Each POST /call/{service} returns a self-documenting 402 challenge with payment_instructions.

Tests

  • Site-content-only change (one metadata.json + one PNG under typescript/site); no package code touched, so no unit tests apply.
  • Validated metadata.json matches the documented schema (name, description, logoUrl, websiteUrl, category from the allowed list).
  • Live surface validated with npx [email protected] --endpoint --method POST https://logicnodes.io/call/mev_protection_score --origin https://logicnodes.io --strict-cache — no launch-readiness findings (CORS, preflight, cache policy all pass; see PR comments).

Checklist

  • [x] I have formatted and linted my code (JSON content only)
  • [x] All new and existing tests pass (no code paths changed)
  • [x] My commits are signed (required for merge) -- you may need to rebase if you initially pushed unsigned commits
  • [x] I added a changelog fragment for user-facing changes (docs-only changes can skip) — site-content only, skipped per the docs-only exemption

cmdenney avatar May 20 '26 02:05 cmdenney

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

cb-heimdall avatar May 20 '26 02:05 cb-heimdall

Quick no-payment launch-readiness pass on the live LogicNodes surface, public endpoints only. I did not send X-PAYMENT, signatures, credentials, or paid calls.

What looks good:

  • https://logicnodes.io/discovery/resources?limit=2 is reachable and reports total: 256 resources with Base USDC pricing and resource-bound /call/... URLs.
  • Sampled POST /call/... routes return structured 402 challenges under the response body detail field.

Patch notes before browser clients rely on this listing:

  • Sampled actual 402 responses do not include Access-Control-Allow-Origin, so browser clients cannot read the payment requirements from fetch().
  • Sampled OPTIONS preflights return 405 with no Access-Control-Allow-Headers, so browser clients cannot retry with X-PAYMENT / PAYMENT-SIGNATURE.
  • Sampled 402 responses did not send Cache-Control; for payment challenges I would send no-store / private.
  • This PR title says 242 workers, but the live Bazaar-style discovery response currently reports total: 256.
  • https://logicnodes.io/.well-known/x402 returns 404; if the intended discovery surface is only /discovery/resources, the listing may want to state that explicitly.
  • https://logicnodes.io/.well-known/mcp-config includes LOGICNODES_API_KEY in the Claude Desktop config while the PR says no signup. Worth clarifying whether the MCP bridge needs an API key while the direct x402 routes do not.

Repro example:

npx --yes [email protected] --endpoint --method POST https://logicnodes.io/call/mev_protection_score --origin https://logicnodes.io --strict-cache

Sampled routes: mev_protection_score, cross_dock_scheduler, prediction_market_oracle. Happy to rerun after patch.

TateLyman avatar May 20 '26 04:05 TateLyman

@TateLyman — thank you for the detailed launch-readiness pass. Everything you flagged has been addressed on the live surface:

  • CORS on 402s: Access-Control-Allow-Origin: * plus Access-Control-Expose-Headers are now sent on payment challenges, so browser fetch() clients can read the requirements.
  • OPTIONS preflight: now returns 200 with Access-Control-Allow-Headers covering X-PAYMENT / PAYMENT-SIGNATURE / X-Payment-Tx and Access-Control-Allow-Methods: GET, POST, OPTIONS (narrowed from the previous wildcard per your follow-up note).
  • Cache policy: 402 challenges send Cache-Control: no-store, private.
  • Testnet legs: arc-testnet / monad-testnet (and a "planned" TON placeholder) have been removed from accepts[] — it now lists only rails that are payable and verified today, and every leg carries the bound resource URL.
  • /.well-known/x402: now returns 200 and points at the discovery surface.
  • API key ambiguity: /.well-known/mcp-config now states explicitly that LOGICNODES_API_KEY is optional — direct /call/* routes are pure x402 with no signup; the key only applies to pre-paid Stripe customers using the MCP bridge shortcut.
  • Worker count: you're right that a hardcoded number drifts — I've retitled the PR without one. GET https://logicnodes.io/discovery/resources is the source of truth.

Your exact repro now reports no findings:

npx --yes [email protected] --endpoint --method POST https://logicnodes.io/call/mev_protection_score --origin https://logicnodes.io --strict-cache
# -> "No obvious launch-readiness findings from the public no-payment probes."

Would appreciate a rerun whenever convenient. Thanks again — this was genuinely useful.

cmdenney avatar Jun 12 '26 18:06 cmdenney