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 onceef9e943(AnySearchd05482babin): ok; the push then rebased onto70a0c387c(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/mainceef9e943, 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.
18 lines
430 B
TOML
18 lines
430 B
TOML
[project]
|
|
name = "mcp-server-askecho-search-infinity"
|
|
version = "0.2.0"
|
|
description = "Web Search API MCP Server"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12,<3.14"
|
|
dependencies = [
|
|
"mcp>=1.29.0,<2.0.0",
|
|
"aiohttp>=3.9.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
mcp-server-askecho-search-infinity = "mcp_server_askecho_search_infinity:main"
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|