Files
magpie/internal
yetone d05482bab3 library: AnySearch in the market (lileo on Discord)
lileo asked for the AnySearch MCP. From AnySearch's own repo
(github.com/anysearch-ai/anysearch-mcp-server, README): remote Streamable
HTTP at https://api.anysearch.com/mcp; the key is optional (anonymous use
has a lower rate limit), sent as Authorization: Bearer as_sk_..., and made
at anysearch.com/console/api-keys. Like Exa, a remote entry with an
optional secret header; the icon is the anysearch-ai GitHub account and
the docs link the repo. Its examples also send X-Anysearch-Client;
tools/list answers without it, so it isn't added.

Probed by hand from mote (not in a test): initialize 200, serverInfo
anysearch-mcp-server 1.0.0, protocol 2025-06-18; tools/list gives
batch_search, extract, get_sub_domains, score, search.

Run at this commit after the last rebase (on e8d42c02d): go test
./internal/sessions ./internal/library ok; go vet darwin, linux -tags
nogui, windows over ./internal/... VET-OK; i18n-keys ok (mote).
Run at 7ec95b5dd (the same two commits on 1534474c8):
- gofmt -l clean; go vet darwin, GOOS=linux -tags nogui, GOOS=windows
  (mote): VET-OK.
- Full go test -tags nogui ./... -timeout 45m on the Linux box (wsl-run):
  internal/library ok. Reds only where origin/main eadeb89c4 is red on the
  same box, each filed: internal/agent (#4033, #3548), internal/gateway
  (#4362); internal/cli's two field-name tests red in the full run and ok
  alone here (#4247).
- GUI files this reaches: i18n-keys and gui-de/ja/zh-tw ok on mote,
  both engines; library-* ok in the WSL full GUI run at this tip (on mote
  they timed out launching browsers at load ~140, not on an assertion).
  market-*, sessions-* and usage-* hadn't finished on mote when pushed.
- The whole GUI suite has not finished (WSL run about half way when
  pushed; its reds so far are in files this doesn't reach). It will be
  finished and each red filed on its own.
Before the rebase: go test ./internal/library and the internal/gui
Market/I18n tests on mote, ok.

Broken by hand: format "{}" in place of "Bearer {}" turns
TestAnySearchKeyIsOptional red.

Not tried: a search with a real AnySearch key, or the entry added from
the GUI and called by a real agent.
2026-10-30 14:38:22 +08:00
..
…
…
…
…
…