You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add MCP (Model Context Protocol) integration for enhanced research (#230)
* Add support for query parameter in config files
Allow users to specify the research query in the configuration file as a fallback when not provided via CLI. This enables easier reuse of predefined queries for specific research scenarios.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Add MCP (Model Context Protocol) integration for enhanced research
- Add new MCP step that uses Anthropic's Claude with MCP tools to perform additional targeted searches via Exa
- Implement MCPResult model and custom materializer for visualization
- Update final report step to properly handle MCPResult objects
- Add preprocessing for Pydantic objects in MCP prompts
- Update README with MCP integration details and requirements
- Add support for MCP-powered searches including research papers, companies, LinkedIn, Wikipedia, and GitHub
The MCP step runs after reflection/approval and before final report generation, providing an additional layer of research depth using advanced search capabilities.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Fix README images
* Add Deep Research to main README
* Fix typo in comment within compute_metrics function in misc.py
- Corrected "mertic" to "metric" for clarity and accuracy in the code documentation.
This change enhances the readability and maintainability of the code by ensuring that comments accurately reflect their intended meaning.
* Fix LiteLLM model naming for Google Gemini models via OpenRouter
When replacing SambaNova models with Google ones, the model names were using
incorrect format "google/gemini-*" instead of the correct LiteLLM format
"openrouter/google/gemini-*" for OpenRouter routing.
Changes:
- Update all model defaults from "google/gemini-*" to "openrouter/google/gemini-*"
- Fix provider validation in llm_utils.py to handle OpenRouter's nested format
- Update comments to clarify correct naming conventions
- Ensure all Google Gemini models use proper OpenRouter prefix
This fixes the "LLM Provider NOT provided" error when using Google models.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Update deep_research/utils/pydantic_models.py
Co-authored-by: Copilot <[email protected]>
---------
Co-authored-by: Claude <[email protected]>
Co-authored-by: Copilot <[email protected]>
The pipeline includes a powerful MCP integration step that uses Anthropic's Model Context Protocol to perform additional targeted searches. This step runs after the reflection phase and before final report generation, providing an extra layer of research depth.
239
+
240
+
#### How MCP Works
241
+
242
+
The MCP step:
243
+
1. Receives the synthesized research data and analysis from previous steps
244
+
2. Uses Claude (via Anthropic API) with MCP tools to identify gaps or areas needing more research
245
+
3. Performs targeted searches using Exa's advanced search capabilities including:
246
+
- `research_paper_search`: Academic paper and research content
247
+
- `company_research`: Company website crawling for business information
248
+
- `competitor_finder`: Find company competitors
249
+
- `linkedin_search`: Search LinkedIn for companies and people
250
+
- `wikipedia_search_exa`: Wikipedia article retrieval
251
+
- `github_search`: GitHub repositories and issues
252
+
253
+
#### MCP Requirements
254
+
255
+
To use the MCP integration, you need:
256
+
- `ANTHROPIC_API_KEY`: For accessing Claude with MCP capabilities
257
+
- `EXA_API_KEY`: For the Exa search tools used by MCP
258
+
259
+
The MCP step uses Claude Sonnet 4.0 (claude-sonnet-4-20250514) which supports the MCP protocol.
260
+
230
261
### Search Providers
231
262
232
263
The pipeline supports multiple search providers for flexibility and comparison:
0 commit comments