feat: add Tavily search as configurable MCP tool in miroflow-agent#145
Open
ParakhJaggi wants to merge 2 commits intoMiroMindAI:mainfrom
Open
feat: add Tavily search as configurable MCP tool in miroflow-agent#145ParakhJaggi wants to merge 2 commits intoMiroMindAI:mainfrom
ParakhJaggi wants to merge 2 commits intoMiroMindAI:mainfrom
Conversation
added 2 commits
March 23, 2026 21:58
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
tool-tavily-searchas a new configurable MCP tool in the miroflow-agent app, alongside the existingtool-google-searchandtool-sogou-searchproviders (additive/parallel strategy).TAVILY_API_KEYenvironment variable loading insettings.py.tool-tavily-searchblock increate_mcp_server_parameters()that spawnsmiroflow_tools.mcp_servers.tavily_mcp_serverwith the Tavily API key.has_tavily_api_keyflag toget_env_info()for observability parity.TAVILY_API_KEYin.env.example.tool-tavily-searchas a commented-out alternative indefault.yaml.Files changed
apps/miroflow-agent/src/config/settings.py— env var, MCP server block, env info entryapps/miroflow-agent/.env.example— new TAVILY_API_KEY entryapps/miroflow-agent/conf/agent/default.yaml— commented-out tool optionDependency changes
miroflow_tools.mcp_servers.tavily_mcp_serveris expected to be provided by a separate unit)Environment variable changes
TAVILY_API_KEYreference in settings.py and .env.exampleNotes for reviewers
tool-google-search,tool-sogou-search) and their dependencies are fully preserved.miroflow_tools.mcp_servers.tavily_mcp_serverdoes not yet exist in the repo. It needs to be created separately beforetool-tavily-searchcan be activated.TAVILY_API_KEYin your.envfile and replacetool-google-searchwithtool-tavily-searchin your agent YAML config.🤖 Generated with Claude Code
Automated Review
tavily_mcp_server.pyfollows the existing FastMCP pattern fromserper_mcp_server.py, uses the correctTavilyClientSDK API, and is properly wired intosettings.pywith env-var validation, dependency declaration inpyproject.toml, and documentation in.env.example. No regressions — all changes are additive. Two minor quality issues exist (client instantiated per-call, no retry logic) but neither blocks functionality.