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 (one8d42c02d): 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 on1534474c8): - 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/maineadeb89c4is 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.
This commit is contained in:
@@ -3748,6 +3748,7 @@ const I18N = {
|
||||
"Repositories, issues, pull requests, Actions and code search on GitHub.": "GitHub 上的仓库、Issue、PR、Actions 和代码搜索。",
|
||||
"Ask questions about any public GitHub repository and read its generated wiki.": "就任意公开 GitHub 仓库提问,并阅读自动生成的 Wiki。",
|
||||
"Web search and code search built for agents, with clean page contents.": "为 Agent 打造的网页与代码搜索,返回干净的页面内容。",
|
||||
"Real-time web search, vertical searches (finance, papers, code, security and more) and full pages as Markdown.": "实时网页搜索、垂直搜索(金融、论文、代码、安全等)以及整页内容转 Markdown。",
|
||||
"Read, write and search files, limited to the folders you allow.": "读、写、搜索文件,仅限你允许的文件夹。",
|
||||
"Fetch a web page and hand it over as Markdown.": "抓取网页并转成 Markdown。",
|
||||
"A knowledge graph the agent keeps across conversations.": "Agent 跨对话保留的知识图谱。",
|
||||
@@ -3772,6 +3773,7 @@ const I18N = {
|
||||
"Folder": "文件夹",
|
||||
"The folder it may read and write": "它可以读写的文件夹",
|
||||
"Optional — raises the rate limit. From context7.com/dashboard": "可选 — 提高速率限制。在 context7.com/dashboard 获取",
|
||||
"Optional — raises the rate limit. From anysearch.com/console/api-keys": "可选 — 提高速率限制。在 anysearch.com/console/api-keys 获取",
|
||||
// Plugins
|
||||
"{name} is installed — sign in to use it": "{name} 已安装,登录后即可使用",
|
||||
"{name} is installed": "{name} 已安装",
|
||||
@@ -7873,6 +7875,7 @@ const I18N = {
|
||||
"Repositories, issues, pull requests, Actions and code search on GitHub.": "GitHub 上的倉庫、Issue、PR、Actions 和程式碼搜尋。",
|
||||
"Ask questions about any public GitHub repository and read its generated wiki.": "就任意公開 GitHub 倉庫提問,並閱讀自動生成的 Wiki。",
|
||||
"Web search and code search built for agents, with clean page contents.": "為 Agent 打造的網頁與程式碼搜尋,返回乾淨的頁面內容。",
|
||||
"Real-time web search, vertical searches (finance, papers, code, security and more) and full pages as Markdown.": "即時網頁搜尋、垂直搜尋(金融、論文、程式碼、資安等)以及整頁內容轉 Markdown。",
|
||||
"Read, write and search files, limited to the folders you allow.": "讀、寫、搜尋檔案,僅限你允許的資料夾。",
|
||||
"Fetch a web page and hand it over as Markdown.": "抓取網頁並轉成 Markdown。",
|
||||
"A knowledge graph the agent keeps across conversations.": "Agent 跨對話保留的知識圖譜。",
|
||||
@@ -7897,6 +7900,7 @@ const I18N = {
|
||||
"Folder": "資料夾",
|
||||
"The folder it may read and write": "它可以讀寫的資料夾",
|
||||
"Optional — raises the rate limit. From context7.com/dashboard": "可選 — 提高速率限制。在 context7.com/dashboard 取得",
|
||||
"Optional — raises the rate limit. From anysearch.com/console/api-keys": "可選 — 提高速率限制。在 anysearch.com/console/api-keys 取得",
|
||||
"{name} is installed — sign in to use it": "{name} 已安裝,登入後即可使用",
|
||||
"{name} is installed": "{name} 已安裝",
|
||||
"Getting Bun…": "正在下載 Bun…",
|
||||
@@ -12019,6 +12023,7 @@ const I18N = {
|
||||
"Repositories, issues, pull requests, Actions and code search on GitHub.": "GitHub のリポジトリ、Issue、プルリクエスト、Actions、コード検索。",
|
||||
"Ask questions about any public GitHub repository and read its generated wiki.": "公開されている GitHub リポジトリについて質問し、生成された Wiki を読めます。",
|
||||
"Web search and code search built for agents, with clean page contents.": "エージェント向けのウェブ検索とコード検索。ページ内容をきれいに返します。",
|
||||
"Real-time web search, vertical searches (finance, papers, code, security and more) and full pages as Markdown.": "リアルタイムのウェブ検索、分野別検索(金融、論文、コード、セキュリティなど)、ページ全体の Markdown 化。",
|
||||
"Read, write and search files, limited to the folders you allow.": "許可したフォルダに限って、ファイルの読み書きと検索を行います。",
|
||||
"Fetch a web page and hand it over as Markdown.": "ウェブページを取得して Markdown で渡します。",
|
||||
"A knowledge graph the agent keeps across conversations.": "エージェントが会話をまたいで保持するナレッジグラフ。",
|
||||
@@ -12043,6 +12048,7 @@ const I18N = {
|
||||
"Folder": "フォルダ",
|
||||
"The folder it may read and write": "読み書きを許可するフォルダ",
|
||||
"Optional — raises the rate limit. From context7.com/dashboard": "任意 — レート制限が上がります。context7.com/dashboard で取得",
|
||||
"Optional — raises the rate limit. From anysearch.com/console/api-keys": "任意 — レート制限が上がります。anysearch.com/console/api-keys で取得",
|
||||
"{name} is installed — sign in to use it": "{name} をインストールしました — サインインして使ってください",
|
||||
"{name} is installed": "{name} をインストールしました",
|
||||
"Getting Bun…": "Bun を取得中…",
|
||||
@@ -16178,6 +16184,7 @@ const I18N = {
|
||||
"Repositories, issues, pull requests, Actions and code search on GitHub.": "Repositorys, Issues, Pull Requests, Actions und Codesuche auf GitHub.",
|
||||
"Ask questions about any public GitHub repository and read its generated wiki.": "Fragen zu jedem öffentlichen GitHub-Repository stellen und sein generiertes Wiki lesen.",
|
||||
"Web search and code search built for agents, with clean page contents.": "Websuche und Codesuche für Agenten, mit sauberem Seiteninhalt.",
|
||||
"Real-time web search, vertical searches (finance, papers, code, security and more) and full pages as Markdown.": "Websuche in Echtzeit, Fachsuchen (Finanzen, Fachartikel, Code, Sicherheit und mehr) und ganze Seiten als Markdown.",
|
||||
"Read, write and search files, limited to the folders you allow.": "Dateien lesen, schreiben und durchsuchen, beschränkt auf die erlaubten Ordner.",
|
||||
"Fetch a web page and hand it over as Markdown.": "Eine Webseite abrufen und als Markdown übergeben.",
|
||||
"A knowledge graph the agent keeps across conversations.": "Ein Wissensgraph, den der Agent über Unterhaltungen hinweg behält.",
|
||||
@@ -16202,6 +16209,7 @@ const I18N = {
|
||||
"Folder": "Ordner",
|
||||
"The folder it may read and write": "Der Ordner, den es lesen und schreiben darf",
|
||||
"Optional — raises the rate limit. From context7.com/dashboard": "Optional – erhöht das Rate-Limit. Unter context7.com/dashboard",
|
||||
"Optional — raises the rate limit. From anysearch.com/console/api-keys": "Optional – erhöht das Rate-Limit. Unter anysearch.com/console/api-keys",
|
||||
"{name} is installed — sign in to use it": "{name} ist installiert – melden Sie sich an, um es zu nutzen",
|
||||
"{name} is installed": "{name} ist installiert",
|
||||
"Getting Bun…": "Bun wird geladen…",
|
||||
|
||||
@@ -106,6 +106,9 @@ var featured = []MarketServer{
|
||||
"Ask questions about any public GitHub repository and read its generated wiki.", false),
|
||||
remoteServer("exa", "Exa", "Exa", gh("exa-labs"), "https://mcp.exa.ai/mcp",
|
||||
"Web search and code search built for agents, with clean page contents.", false),
|
||||
remoteServer("anysearch", "AnySearch", "AnySearch", gh("anysearch-ai"), "https://api.anysearch.com/mcp",
|
||||
"Real-time web search, vertical searches (finance, papers, code, security and more) and full pages as Markdown.", false,
|
||||
Input{Key: "Authorization", Where: "header", Label: "API key", Description: "Optional — raises the rate limit. From anysearch.com/console/api-keys", Placeholder: "as_sk_…", Secret: true, format: "Bearer {}"}),
|
||||
localServer("filesystem", "Filesystem", "Model Context Protocol", gh("modelcontextprotocol"), "https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem",
|
||||
"Read, write and search files, limited to the folders you allow.", "npx", []string{"-y", "@modelcontextprotocol/server-filesystem"},
|
||||
Input{Key: "dir", Where: "arg", Label: "Folder", Description: "The folder it may read and write", Placeholder: "~/code", Required: true}),
|
||||
@@ -195,6 +198,7 @@ var homepages = map[string]string{
|
||||
"github": "https://github.com/github/github-mcp-server",
|
||||
"deepwiki": "https://deepwiki.com",
|
||||
"exa": "https://docs.exa.ai/reference/exa-mcp",
|
||||
"anysearch": "https://github.com/anysearch-ai/anysearch-mcp-server",
|
||||
"sentry": "https://docs.sentry.io/product/sentry-mcp/",
|
||||
"linear": "https://linear.app/docs/mcp",
|
||||
"notion": "https://developers.notion.com/docs/mcp",
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package library
|
||||
|
||||
import "testing"
|
||||
|
||||
// AnySearch (lileo on Discord) answers without a key, at lower rate limits,
|
||||
// and takes one as a Bearer token (anysearch-ai/anysearch-mcp-server's
|
||||
// README): added without one it sends no Authorization at all, and with
|
||||
// one it sends it as Bearer.
|
||||
func TestAnySearchKeyIsOptional(t *testing.T) {
|
||||
for _, c := range []struct{ key, want string }{{"", ""}, {" as_sk_k ", "Bearer as_sk_k"}} {
|
||||
t.Run(c.want, func(t *testing.T) {
|
||||
sandbox(t)
|
||||
ok(t)(InstallServer("anysearch", map[string]string{"Authorization": c.key}, []string{"claude"}))
|
||||
l, err := loadLocked()
|
||||
if err != nil || len(l.MCP) != 1 {
|
||||
t.Fatalf("library: %+v %v", l, err)
|
||||
}
|
||||
s := l.MCP[0]
|
||||
if s.Name != "anysearch" || s.Transport != "http" || s.URL != "https://api.anysearch.com/mcp" {
|
||||
t.Fatalf("server: %+v", s)
|
||||
}
|
||||
if got, has := s.Headers["Authorization"]; got != c.want || has != (c.want != "") {
|
||||
t.Fatalf("Authorization %q (%v), want %q: %+v", got, has, c.want, s.Headers)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user