FEAT: Add support with web search and email capabilities - #56
Merged
NP-compete merged 18 commits intoApr 21, 2026
Conversation
- Tavily-powered web_search tool with multi-query, deduplication - knowledge_search tool for document retrieval - Registered both tools in MCP server
…ariables - Fix WEB_SEARCH_TIMEOUT default (30 → 15) and WEB_SEARCH_MAX_SNIPPET_LENGTH default (500 → 4000) to match actual code - Add missing env vars: MCP_HOST_ENDPOINT, ENVIRONMENT, COMPATIBLE_WITH_CURSOR, SESSION_SECRET, CORS_*, POSTGRES_POOL_SIZE, POSTGRES_MAX_CONNECTIONS - Organize configuration into categorized sections (Server, Auth, Web Search, CORS, Database) - Simplify OAuth models and API setup code
- Add 20 tests covering _search_with_retry, _truncate_snippet, and web_search - Cover TimeoutError retry path, exception retries, result deduplication - Cover env var overrides for timeout and snippet length - Achieve 100% code coverage for web_search_tool.py
…currency, and error handling - Move TAVILY_API_KEY, WEB_SEARCH_TIMEOUT, WEB_SEARCH_MAX_SNIPPET_LENGTH to Settings class - Add asyncio.Semaphore(5) to cap concurrent search requests - Use logger.exception() instead of logger.error() for full stack traces - Move tavily import to top-level with try/except ImportError guard - Update tests to mock settings instead of os.environ Made-with: Cursor
- Remove whimsify_number tool (unused demonstration tool) - Simplify web_search_tool tests by removing redundant test cases - Reduce test file from 308 to 138 lines while maintaining coverage Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
tuhinsharma121
marked this pull request as ready for review
April 6, 2026 19:28
Contributor
Author
|
I wonder if we should make the tool calls as mock tool calls with static data. |
mimran-khan
reviewed
Apr 14, 2026
mimran-khan
reviewed
Apr 14, 2026
Co-authored-by: NP-compete <NP-compete@users.noreply.github.com>
tuhinsharma121
marked this pull request as draft
April 19, 2026 16:09
Add threading lock to ensure thread-safe API key setting when sending emails with resend package, preventing conflicts in concurrent multi-tenant scenarios. Co-Authored-By: mimran-khan <mimran-khan@users.noreply.github.com>
Replace deprecated asyncio.get_event_loop() with asyncio.get_running_loop() for Python 3.12+ compatibility. Co-Authored-By: mimran-khan <mimran-khan@users.noreply.github.com>
Adds email format validation tool that checks email structure, length constraints, and format compliance. Includes 24 comprehensive test cases covering valid formats, invalid patterns, and edge cases. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
tuhinsharma121
marked this pull request as ready for review
April 20, 2026 13:54
NP-compete
approved these changes
Apr 21, 2026
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
This PR introduces Deep Agent capabilities to the MCP server with integrated web search and email functionality, while modernizing the toolset and improving infrastructure.
New Features
Infrastructure Improvements
Breaking Changes
multiply_numbers,generate_code_review_prompt,get_redhat_logocalculate_bmi,search_web,send_emailTesting
Documentation