Files
magpie/internal/library
yetone 6dc94f57aa library: the MCP market offers the registry's 478 most starred servers, and 100 a search
The owner: both markets have too little in them. With nothing searched,
the MCP market offered only its 31 featured servers. A search asked the
MCP Registry and kept at most 30 of its results.

What changed:
- market_servers.json is a snapshot of the registry, crawled 2026-11-01:
  54,048 latest entries and the GitHub stars of their 27,816 repositories.
  It keeps the 500 most starred servers that can be installed: an https
  remote, or an npm/pypi/oci stdio package with no required named argument
  left blank. At most 3 come from one repository. Smithery's re-hosts,
  inactive entries and entries with no description are left out.
- A name has to belong to the repository it points to. io.github.<owner>/
  matches the repository's owner, and a domain name's main label is in the
  repository's path. That drops name squatters pointing at famous repos
  (IncorporatedPartners → paperclip, secforge → ChromeDevTools, ai.com.mcp
  → agentskills). Past that, star order is the only rule.
- After the featured servers and their copies, 478 remain. Browsing offers
  featured, then these by stars: 509 in all. Show more pages them 60 at a
  time (df0320156).
- A search keeps up to 100 of the registry's results, not 30. Popular
  servers that match the words come after them, and for an address search
  they come before the registry's. A server is offered once.
- A popular server installs by its id with no registry call (marketServer),
  and its icon is offered like a featured one.

Run at f79c0994e (origin/main ace58117a plus this), on mote:
- gofmt -l internal/library: clean. go vet ./internal/library: ok.
- go test -count=1 ./internal/library: ok (133s); ./internal/gui: ok.
- GUI: i18n-keys, market-*, library-mcp-*, search-mcp-library,
  images-library-way and vision-mcp-library: 280 of 284.
  - The 4 reds are search-mcp-library's WebKit 420px "Turn on the
    Library" cases, TimeoutError, at load 145 to 220, a different language
    each run. This change touches no GUI asset, so the page is main's.
  - They are #4756 (comment with this run). The same file passed 62/62 at
    77e853588. images-library-way and vision-mcp-library pass alone.

Broken by hand, each red in TestMarketServersPopular:
- no popular servers when browsing;
- the cap back at 30;
- a popular server not installable by id;
- popular matches put before the registry's in a word search;
- featured not seeded into the snapshot's dedupe (caught by the
  marketServer("io.github.feat/copy") check);
- a popular icon not offered.

Real servers:
- the tldraw and frontend-checklist remotes answered initialize;
- worldmonitor answered 401 (it needs a sign-in);
- on mote, npx -y @agent-infra/mcp-server-commands answered initialize
  as "Run Commands".

Not tried:
- installing a popular server from the GUI in the real app;
- a fresh crawl. Stars are a snapshot, and crawl.py/build.py are not in
  the repo.
2026-11-01 17:26:12 +08:00
..
…
…