feat: add optional You.com MCP server integration - #4770
Conversation
- Add comprehensive You.com MCP integration documentation to MCP.md - Include configuration examples for both authenticated and keyless operation - Add hosted SSE server option using https://api.you.com/mcp - Document available tools: you-search, you-contents, you-research - Add practical usage examples and error handling guidance - Include example configuration file for easy setup - Update main README with MCP integration quick start guide This integration enables AI-Native IDE users to access current web search, content extraction, and cited research capabilities through You.com's MCP server, enhancing AI assistant functionality with up-to-date information.
|
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough新增 You.com MCP 搜索集成说明、配置示例和完整文档,覆盖服务配置、搜索工具、认证选项、配额限制及错误处理。 ChangesYou.com MCP 集成
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 6
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@examples/youcom-mcp-config.json`:
- Around line 14-18: 为旧配置中的所有 STDIO 服务器补全类型字段,确保迁移逻辑能够识别它们:在
examples/youcom-mcp-config.json 的 14-18 行添加 type 为 stdio 并显式设置 enabled 为 true;在
packages/ai-native/MCP.md 的 203-210 行和 219-225 行的本地配置示例中添加 type 为 stdio。
- Around line 5-10: Rewrite the hosted You.com MCP examples in
examples/youcom-mcp-config.json (lines 5-10), README.md (lines 76-82), and
packages/ai-native/MCP.md (lines 234-243) to use type "sse" with url
"https://api.you.com/mcp" instead of command-based stdio configuration; remove
the remote env mapping and pass YDC_API_KEY through an Authorization Bearer
value or the SSE transportOptions.authProvider.token configuration in each
affected example.
In `@packages/ai-native/MCP.md`:
- Around line 205-206: 更新 MCP.md 中 You.com MCP 配置示例的 args,将不可用的
`@youdotcom/mcp-server` 替换为 `@youdotcom-oss/mcp`,并同步修改后续所有重复的 You.com MCP 安装示例。
- Around line 302-312: 将 Error Handling 章节改为与当前实现一致的可验证描述:不要宣称已支持
429、401、网络错误、malformed response 的专项提示或 fallback,除非能在 addExternalMCPServers 及 SSE
错误处理流程中补齐实现并提供测试依据;否则仅描述现有 logger 记录和启动异常捕获行为。
- Around line 277-283: Update the you-research example in the “Research with
Citations” section to replace sources_count with the MCP-supported
source_control parameter. Preserve query and only retain research_effort if
needed; do not document sources_count as an input.
- Around line 215-228: 更新 MCP.md 中 youcom-search 的 keyless 本地配置:移除
--keyless,改为省略 YDC_API_KEY 并在 env 中设置 YDC_PROFILE=free。同步修正远程 free profile 说明,使用
https://api.you.com/mcp?profile=free,并明确该 profile 仅提供 you-search、每日限制 100 次,不包含
you-contents 或 you-research。
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: d7fb6baa-7bed-4d14-8dd2-7db14d0b445b
📒 Files selected for processing (3)
README.mdexamples/youcom-mcp-config.jsonpackages/ai-native/MCP.md
- Fix SSE server config to use 'url' instead of 'command' - Add missing 'type' and 'enabled' fields for STDIO servers - Update package name from @youdotcom/mcp-server to @youdotcom-oss/mcp - Fix keyless config to use YDC_PROFILE=free instead of --keyless - Update research API example to use source_control parameter - Revise error handling section to match current implementation
|
Fixed all CodeRabbit review comments: ✅ SSE Configuration: Updated to use All configurations now follow the correct MCP server format and You.com integration patterns. |
|
All CodeRabbit feedback has been addressed in the latest commits. The CLA still needs to be signed - please visit https://cla-assistant.io/opensumi/core?pullRequest=4770 to complete the contributor agreement. |
Summary
This PR adds comprehensive integration documentation and configuration examples for You.com's MCP (Model Context Protocol) server, enabling OpenSumi users to add web search, content extraction, and research capabilities to their AI-Native IDE.
What's Added
Documentation
Configuration Support
Available Tools
Benefits for OpenSumi Users
Integration Approach
This follows OpenSumi's existing MCP architecture patterns:
Validation
This integration provides immediate value to OpenSumi users developing with AI assistance, enabling access to current web information and research capabilities that complement the existing file system and workspace tools.
Summary by CodeRabbit
新功能
文档