diff --git a/internal/gui/assets/i18n.js b/internal/gui/assets/i18n.js index afb541029..3f495987d 100644 --- a/internal/gui/assets/i18n.js +++ b/internal/gui/assets/i18n.js @@ -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…", diff --git a/internal/library/market.go b/internal/library/market.go index e7309d6e5..53ff62883 100644 --- a/internal/library/market.go +++ b/internal/library/market.go @@ -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", diff --git a/internal/library/market_anysearch_test.go b/internal/library/market_anysearch_test.go new file mode 100644 index 000000000..5cb9215c4 --- /dev/null +++ b/internal/library/market_anysearch_test.go @@ -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) + } + }) + } +}