feat: add Tavily search alongside Sogou in search_and_scrape_webpage#150
Open
tavily-integrations wants to merge 3 commits intoMiroMindAI:mainfrom
Open
Conversation
added 3 commits
March 31, 2026 21:06
…bal-search supplement alongside Sogou/Tencent
…bal-search supplement alongside Sogou/Tencent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tavily_searchMCP tool tosearch_and_scrape_webpage.pyas a configurable alternative for global/non-Chinese queriesTAVILY_API_KEYfrom environment; tool is only available when the key is setTAVILY_API_KEYthrough thesearch_and_scrape_webpageserver env dict insettings.pytavily-python>=0.5.0tolibs/miroflow-tools/pyproject.tomlFiles changed
libs/miroflow-tools/src/miroflow_tools/dev_mcp_servers/search_and_scrape_webpage.py— newtavily_searchtool +TAVILY_API_KEYenv readapps/miroflow-agent/src/config/settings.py—TAVILY_API_KEYenv var + forwarded in server env dictlibs/miroflow-tools/pyproject.toml— addedtavily-pythondependencyDependency changes
tavily-python>=0.5.0tolibs/miroflow-tools/pyproject.tomlEnvironment variable changes
TAVILY_API_KEYreference insettings.pyandsearch_and_scrape_webpage.pyNotes for reviewers
tavily_searchtool follows the same guard pattern asgoogle_search(checks for API key, returns error JSON if missing)Automated Review
tavily_searchMCP tool as an additive parallel supplement tosogou_searchandgoogle_searchinsearch_and_scrape_webpage.py. All imports are valid (tavily.errors.TimeoutErrorconfirmed present in v0.7.23). TheAsyncTavilyClientis correctly initialized at module level with aNoneguard, and theTAVILY_API_KEYcheck intavily_searchensuresmake_tavily_requestis never called when the client isNone. Retry logic is correctly scoped to transient exceptions only.TAVILY_API_KEYis properly threaded throughsettings.py(module level, MCP server env forwarding, andget_env_info). Thepyproject.tomldependency addition is correct. Code style is consistent with the existing Serper/Sogou patterns. One minor issue: thesearch_depthallowlist omits two valid Tavily values, and.env.exampleis not updated in this branch (covered by prerequisite unit).