feat: add optional you.com search integration - #150
Open
mouse-value-add wants to merge 1 commit into
Open
mouse-value-add wants to merge 1 commit into
mouse-value-add wants to merge 1 commit into
Conversation
在 MCP 配置页预设中新增 You.com 条目(streamable HTTP,免鉴权 free profile), 沿用 Context7 预设的既有结构,为 web_search / web_fetch 场景提供开箱即用的 远程 MCP 选项。默认行为不变,需用户显式选择预设并保存。 - MCP_PAGE_PRESETS 增加 youcom 预设(https://api.you.com/mcp?profile=free) - zh-CN / zh-TW / en-US / ja-JP / ko-KR settings.json 同步新增文案 - McpPage.test.tsx 增加预设创建回归测试
This branch has not been deployed
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.
变更摘要
在 MCP 配置页的预设列表中新增 You.com 条目, 为 web 搜索与内容提取场景提供一个免鉴权/开箱即用的远程 MCP 选项:
MCP_PAGE_PRESETS增加youcom预设:streamable_http传输, URLhttps://api.you.com/mcp?profile=free,tool_timeout: 60-- 完全沿用现有 Context7 预设的结构you-search/you-contents两个工具https://api.you.com/mcp并在连接配置里填bearer_token_env_var: "YDC_API_KEY"(streamable HTTP 配置原生支持该字段)settings.json同步新增预设文案McpPage.test.tsx增加一条预设创建回归测试 (对照 Context7 测试的写法)纯增量改动: 预设只有被用户显式选中并保存才会生效, 默认行为与现有服务器列表完全不变, 没有引入任何新依赖
i18n 影响
新增 / 变更 namespace
settings(settings.mcpPage.preset.youcom.name/.description, 五个 locale 同步)术语确认
internal/roadmap/i18n/glossary.md("You.com" 作为产品专名保持不译, 描述文案与 context7 预设句式一致)验证
npm run i18n:check-- 100% coverage,missing=0 extra=0npx vitest run src/components/mcp/McpPage.test.tsx-- 6/6 通过 (含新增用例)npx vitest run src/components/mcp/mcpPageModel.unit.test.ts-- 5/5 通过npx eslint src/components/mcp/mcpPageModel.ts src/components/mcp/McpPage.test.tsx --max-warnings 0-- 通过tsc --noEmit --project tsconfig.renderer.json-- 通过initialize+tools/list对https://api.you.com/mcp?profile=free走 streamable HTTP 均正常返回 (serverInfo: You.com 4.0.0, 工具含you-search)npm run verify:local-- 本地未跑全量门禁; 改动面限于 mcp 组件 + locale 资源, 如需要我可以补跑架构图确认
非重大原因: 仅在前端 MCP 预设目录追加一个条目, 不触碰 App Server / 协议 schema / Rust 侧或运行时行为
备注
You.com 也提供 agent skills 与插件形式的分发 (
npx skills add youdotcom-oss/agent-skills), 但本 PR 刻意保持最小改动, 只走 Lime 已有的 MCP 预设机制. 如果维护者更希望预设直接指向鉴权端点 (https://api.you.com/mcp+bearer_token_env_var), 我可以调整预设默认值.Tracking: youdotcom-oss/integration-tracking#307