feat: add optional You.com web search integration - #44
Open
mouse-value-add wants to merge 1 commit into
Open
Conversation
- Add web_search tool using You.com Search API - Support both authenticated (YDC_API_KEY) and keyless operation - Complement existing semantic search with external web knowledge - Include comprehensive error handling and parameter validation - Add usage examples and configuration documentation - Include test coverage for all functionality The web search tool provides external information to enhance Context+'s local semantic intelligence, enabling agents to access current web knowledge alongside codebase analysis.
|
@mouse-value-add is attempting to deploy a commit to the ForLoopCodes' projects Team on Vercel. A member of the Team first needs to authorize it. |
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 an optional You.com web search MCP tool to complement Context+'s existing local semantic search capabilities with external web knowledge.
What Changed
Integration Architecture
The web search tool follows Context+'s existing MCP tool patterns:
Usage Example
Setup
Optional authentication:
Keyless mode (no API key needed):
Validation Performed
✅ TypeScript compilation and linting passes
✅ All existing tests continue to pass (245/245)
✅ New web search tests pass (9/9)
✅ MCP tool registration works correctly
✅ Both keyless and authenticated operation modes tested
✅ Error scenarios handled gracefully (401, 429, network failures)
✅ Backward compatibility maintained - existing functionality unchanged
✅ Follows all established MCP tool patterns and architecture
Fallback/Error Behavior
Why This Integration Benefits Context+
Context+ excels at local codebase intelligence through semantic search, AST analysis, and memory graphs. Adding web search provides:
This creates a powerful combination: deep local code understanding + current external knowledge.
Related tracking issue: youdotcom-oss/integration-tracking#163
The integration is purely optional and follows Context+'s high-quality standards. Happy to adjust the implementation based on feedback!