MPP index: MPPScan seeds (API, 314 origins) + discovery-doc probe targets (33 -> 167 verified sellers) - #830
Merged
Merged
Conversation
…dered origin list) and the seller's own /openapi.json x-payment-info operation as the probe target for origins the registry does not describe; verified sellers 33 -> 101 in one live crawl, still gated on our real probe; parsers unit-tested
| { | ||
| const page = `<script>self.__next_f.push([1,"[[\\"servers\\",\\"list\\"],{\\"input\\":{\\"originUrls\\":[\\"https://alpha.example\\",\\"https://beta.example/\\",\\"http://insecure.example\\",\\"https://alpha.example\\",\\"https://gamma.example/v1/tenant\\"]}}]"])</script>`; | ||
| const got = parseMppScanOrigins(page); | ||
| ok(got.length === 2 && got.includes("https://alpha.example") && got.includes("https://beta.example"), `parseMppScanOrigins: escaped SSR payload -> validated https origins, deduped, http and path-scoped dropped (got ${JSON.stringify(got)})`); |
| { | ||
| const page = `<script>self.__next_f.push([1,"[[\\"servers\\",\\"list\\"],{\\"input\\":{\\"originUrls\\":[\\"https://alpha.example\\",\\"https://beta.example/\\",\\"http://insecure.example\\",\\"https://alpha.example\\",\\"https://gamma.example/v1/tenant\\"]}}]"])</script>`; | ||
| const got = parseMppScanOrigins(page); | ||
| ok(got.length === 2 && got.includes("https://alpha.example") && got.includes("https://beta.example"), `parseMppScanOrigins: escaped SSR payload -> validated https origins, deduped, http and path-scoped dropped (got ${JSON.stringify(got)})`); |
| export function parseMppScanOrigins(html) { | ||
| const text = String(html || "").replace(/\\"/g, '"'); | ||
| const out = new Set(); | ||
| const re = /"originUrls":\s*\[((?:"https?:\/\/[^"]+"\s*,?\s*)+)\]/g; |
…-time, paginated, with name/description/logo; page scrape as fallback) - 314 origins; verified sellers 33 -> 167 in one live crawl
…al-stack sellers whose probed 402 carried an MPP challenge fold in every cycle - automatic detection, no registry, no submission); /sell and the MPP marketplace FAQ spell out the three listing paths incl. POST /api/mpp-index/register
MikeyPetrillo
temporarily deployed
to
agent402 / production
August 19, 2026 03:31 — with
GitHub Actions
Inactive
MikeyPetrillo
marked this pull request as ready for review
August 19, 2026 03:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
servers.list(all-time, paginated 200/page, 314 servers at launch, each with name/description/url/logo) is the primary source; the rendered page's origin list is the fallback. Metadata is used for sellers the mpp.dev registry does not describe.discoveryMppScanon the index snapshot reports source/total/error. Seeds only - nothing lists until our live probe sees a realWWW-Authenticate: Paymentchallenge./openapi.json(the MPP discovery format) and probe a pricedx-payment-infooperation instead of the bare root (registry endpoints > submitted hint > discovery doc > root; guarded fetch, 2 MB cap, 1 h cache).parseMppScanList/parseMppScanOrigins/probeTargetFromDiscoveryunit-tested.Verification