Files
magpie/internal/library/testdata
yetone 969868ccda library: a Python MCP server in a GitHub repository's folder is found and added filled in (CyberCaius on Discord)
CyberCaius pasted
https://github.com/volcengine/mcp-server#subdirectory=server/mcp_server_askecho_search_infinity
(Volcengine's askecho web search) into the Library's MCP search. The
fragment was dropped, the MCP Registry was asked for "mcp-server" and
"volcengine", nothing it lists is there, so the page offered only a
blank command named "server".

A GitHub address naming a folder (#subdirectory=, /tree/<ref>/…,
/blob/<ref>/…/file) is now read before the registry: the folder's
pyproject.toml names the program ([project.scripts]) and its README's
"env": {…} examples the keys. It is offered as a normal market card:
uvx --from git+https://github.com/o/r[@ref]#subdirectory=<path> <program>,
with the keys asked for in the install sheet. Of several keys none is
required (askecho takes an API key, or an access key and secret); one
alone is. A bare repository is read that way only when the registry
has nothing at it. A pypi.org/project/ page, or a one-word search
naming mcp (with - _ or .) that the registry lists nothing by, asks
PyPI's JSON API and offers uvx <package> with its description's keys.
Claude Desktop is already wired for local Library servers
(claude_desktop_config.json); the test installs it there.

Run (mote):
- go test ./internal/library -run 'TestMarket|TestParseRepoAt|TestEnvInputs': ok
- go test ./internal/library rebased on ceef9e943 (AnySearch d05482bab in): ok; the push then rebased onto 70a0c387c (agent, cli only), not run again
- Full suite go test -timeout 45m ./... at d29414c1a (rebased only onto
  origin/main since): 78 ok; reds in internal/gateway (Antigravity
  turned-away x4, TestCodexSpentGrokFailingIsTold) and internal/gui
  (AppKit real-window tests). Same reds on fresh origin/main ceef9e943,
  filed as #4362, #2645, #4125, #1936, #3178, #3949.
- GOOS=linux/windows/darwin go vet ./internal/library: ok; gofmt clean.
- Broken by hand: MarketServers back on searchRegistryAt/searchRegistry,
  TestMarketServerInRepoFolder, ...RepoFolderPage and ...OnPyPI red.
- Real use: the search against live GitHub and PyPI returns the uvx
  command and the three keys; the command itself, run with uvx and a
  fake key, answered initialize and listed web_search.
- Fixtures are the real pyproject.toml, README.md and PyPI entry, in
  testdata/askecho; tests reach no network.

Not tried: a real search with a real Volcengine key; Claude Desktop
launching it (Desktop needs uvx and git on its PATH, as for the
featured fetch/git/time servers); Node servers in a folder (still the
blank form); a word search like "askecho" (no index has it). No GUI
change.
2026-10-30 14:47:13 +08:00
..