diff --git a/README.md b/README.md index a80c0cd..4b2a6f9 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,21 @@ A tools package is a folder under `packages//` with: ## Web search APIs -A tools package can also give magpie a web search API. It is listed in Settings › Models › Web search under its own name, after Tavily, Brave and the rest, and is added, keyed, switched off and ordered like them. magpie keeps the keys (several are tried in turn; a refused one rests), masks the query, and logs the call. magpie's own `search` hook; OpenCode ignores it. There is no package for one yet: this is the template. +A tools package can also give magpie a web search API. It is listed in Settings › Models › Web search under its own name, after Tavily, Brave and the rest, and is added, keyed, switched off and ordered like them. magpie keeps the keys (several are tried in turn; a refused one rests), masks the query, and logs the call. magpie's own `search` hook; OpenCode ignores it. + +| Package | Search APIs | +|---|---| +| [magpie-websearch](https://github.com/guotree/magpie-websearch) | AnySearch, Keenable, Linkup, Metaso, Parallel, Querit and TinyFish; published as `@guotree/magpie-websearch` and maintained in its own repository | + +Install magpie-websearch: + +```sh +magpie plugin add @guotree/magpie-websearch +``` + +### Writing a web search plugin + +The following template shows how to implement the `search` hook: ```js // index.mjs of @magpie-community/tools- diff --git a/registry.json b/registry.json index cf11aba..0fc7bfe 100644 --- a/registry.json +++ b/registry.json @@ -112,6 +112,8 @@ "summary": { "en": "Two routings that keep something in reserve: fill accounts up to a ceiling of their allowance, or use subscriptions before API keys.", "zh": "两种留余量的路由:账号用到额度上限就换下一个,或订阅账号优先于 API key。" } }, { "package": "@magpie-community/tools-search1api", "name": "Search1API", "icon": "https://s1.dev/icon.png", "kind": "tools", "community": true, "summary": { "en": "Search1API web search, news, agentic search, page retrieval, sitemaps and trends through Magpie's tools MCP server. Sign in with OAuth or an API key.", "zh": "通过 Magpie 的工具 MCP 服务使用 Search1API 网页搜索、新闻、智能搜索、页面读取、站点链接和趋势;支持 OAuth 或 API key 登录。" } }, + { "package": "@guotree/magpie-websearch", "name": "magpie-websearch", "icon": "https://raw.githubusercontent.com/guotree/magpie-websearch/main/assets/icon-128.png", "kind": "tools", "community": true, + "summary": { "en": "Adds AnySearch, Keenable, Linkup, Metaso, Parallel, Querit and TinyFish to Magpie's Web search settings. AnySearch, Keenable, Parallel and TinyFish support keyless access; Linkup, Metaso and Querit require an API key. Magpie manages keys and request order. Failed keyed requests do not downgrade to anonymous access.", "zh": "为 Magpie 的网页搜索设置增加 AnySearch、Keenable、Linkup、Metaso、Parallel、Querit 和 TinyFish。AnySearch、Keenable、Parallel 和 TinyFish 支持免 Key 访问;Linkup、Metaso 和 Querit 需要 API Key。由 Magpie 管理密钥和请求顺序,带 Key 的请求失败时不会降级为匿名访问。" } }, { "package": "magpie-comfyui-link", "name": "ComfyUI", "kind": "tools", "community": true, "summary": { "en": "A bridge between Magpie agents and locally hosted ComfyUI models, exposing native workflows, model resources and generated images through Magpie's tools MCP endpoint.", "zh": "连接 Magpie Agent 与本地 ComfyUI 模型的桥接层,通过 Magpie 工具 MCP 入口提供原生工作流、模型资源和生成图片。" } }, { "package": "@magpie-community/tools-calc", "name": "Calc", "kind": "tools", "community": true,