feat: add optional You.com search engine integration - #105
Open
mouse-value-add wants to merge 1 commit into
Open
feat: add optional You.com search engine integration#105mouse-value-add wants to merge 1 commit into
mouse-value-add wants to merge 1 commit into
Conversation
- Add youcom search engine in src/engines/youcom/ - Implement searchYoucom() function with You.com Search API - Support both keyless and authenticated (YDC_API_KEY) modes - Update SUPPORTED_SEARCH_ENGINES to include youcom - Add engine name normalization for 'you', 'you.com', 'youcom' - Register youcom engine in runtime configuration - Update tool description to mention You.com support - Add comprehensive error handling and fallback behavior - Maintain backward compatibility with existing engines Follows existing engine patterns and integrates seamlessly with the multi-engine MCP server architecture.
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 adds You.com as an optional search engine to the open-webSearch multi-engine MCP server, following the existing engine architecture patterns.
What changed
youcomsearch engine insrc/engines/youcom/youcomtoSUPPORTED_SEARCH_ENGINESarray'you','you.com', and'youcom'engine namesHow it works
Keyless Operation (Default)
Enhanced Operation (Optional)
YDC_API_KEYenvironment variable for authenticated accessUsage Examples
MCP Tool Call
{ "query": "TypeScript tutorials", "engines": ["youcom", "duckduckgo"], "limit": 10 }CLI Usage
npm run search -- --query "AI frameworks" --engines youcom,brave --limit 15Environment Setup (Optional)
export YDC_API_KEY=your_api_key_hereError Handling
Validation Performed
✅ TypeScript compilation passes without errors
✅ All existing tests continue to pass
✅ You.com engine returns properly formatted SearchResult objects
✅ MCP tool integration works correctly
✅ Engine name normalization handles multiple variants
✅ Both keyless and authenticated modes tested
✅ Error scenarios handled gracefully
Backward Compatibility
enginesparameterIntegration Quality
This integration demonstrates the clean extensibility of open-webSearch's architecture. You.com fits naturally as another search provider in the multi-engine ecosystem, providing users with additional choice for web search without compromising the existing functionality.
The implementation follows all established patterns:
SearchResultinterface as other enginesReady for review and merge! 🚀