feat: migrate search handler to support Tavily alongside Serper#146
Open
tavily-integrations wants to merge 2 commits intoMiroMindAI:mainfrom
Open
Conversation
added 2 commits
March 25, 2026 09:05
…lish-language search alongside Serper
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
Files changed
New files
libs/miroflow-tools/src/miroflow_tools/mcp_servers/tavily_mcp_server.py— FastMCP server exposingtavily_searchtool via the tavily-python SDK, mirrors serper_mcp_server.py interfacelibs/miroflow-tools/src/miroflow_tools/mcp_servers/searching_tavily_mcp_server.py— Orchestrator wrapper with retry logic, mirrors searching_google_mcp_server.pyapps/miroflow-agent/conf/agent/tavily_search.yaml— Agent config variant using tool-tavily-search instead of tool-google-search in the browsing sub-agentModified files
libs/miroflow-tools/pyproject.toml— Addedtavily-pythondependencyapps/miroflow-agent/src/config/settings.py— Added TAVILY_API_KEY env var, tool-tavily-search MCP server config block, and has_tavily_api_key to env infoapps/miroflow-agent/.env.example— Added TAVILY_API_KEY entryapps/gradio-demo/.env.example— Added TAVILY_API_KEY entryDependency changes
tavily-pythontolibs/miroflow-tools/pyproject.tomlEnvironment variable changes
TAVILY_API_KEYtoapps/miroflow-agent/.env.exampleandapps/gradio-demo/.env.exampleNotes for reviewers
TAVILY_API_KEYand select thetavily_searchagent config via Hydra (e.g.,agent=tavily_search)🤖 Generated with Claude Code
Automated Review
scrape_websiteis properly ported tosearching_tavily_mcp_server.pyusing JINA (feature parity with Google variant), JINA env vars are now actually consumed, the double-retry logic has been eliminated fromtavily_mcp_server.py, andtenacity/tavily-pythonare now explicit dependencies inpyproject.toml. The additive strategy is intact —multi_agent.yamlstill usestool-google-search, while the newtavily_search.yamlprovides a Tavily-only alternative. SDK patterns, imports, env var propagation, and MCP server architecture all mirror the existing Serper implementation consistently. One unused import (json) insearching_tavily_mcp_server.pyis the only finding.