🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 style: Clarify MCP deeplink install consent (#16650)
Arvin Xuf690515c26f4
diff --git a/locales/en-US/plugin.json b/locales/en-US/plugin.jsonindex fb1d86fc16c..7031af8e2d7 100644--- a/locales/en-US/plugin.json+++ b/locales/en-US/plugin.json@@ -648,6 +648,7 @@"protocolInstall.actions.install": "Install","protocolInstall.actions.installAnyway": "Install anyway","protocolInstall.actions.installed": "Installed",+ "protocolInstall.actions.runCommandAndInstall": "Run command and install","protocolInstall.config.addEnv": "Add env var","protocolInstall.config.addHeaders": "Add header","protocolInstall.config.args": "Arguments",@@ -665,9 +666,8 @@"protocolInstall.custom.title": "Install custom Skill","protocolInstall.install.title": "Install info","protocolInstall.marketplace.title": "Install third-party Skill",- "protocolInstall.marketplace.trustedBy": "By {{name}}",- "protocolInstall.marketplace.unverified.title": "Unverified third-party Skill",- "protocolInstall.marketplace.unverified.warning": "Verify the source before installing this community Skill.",+ "protocolInstall.marketplace.unverified.title": "Third-party Skill",+ "protocolInstall.marketplace.unverified.warning": "This Skill is from a third-party source. Verify that you trust the source before installing.","protocolInstall.marketplace.verified": "Verified","protocolInstall.messages.connectionTestFailed": "Connection test failed","protocolInstall.messages.installError": "Install failed, retry",@@ -684,6 +684,8 @@"protocolInstall.official.loadingMessage": "Loading Skill details…","protocolInstall.official.loadingTitle": "Loading","protocolInstall.official.title": "Install official Skill",+ "protocolInstall.stdio.commandExecution.description": "STDIO MCPs connect through a local command. During installation, LobeHub will start the command shown below to test the connection. Continue only if you trust this source.",+ "protocolInstall.stdio.commandExecution.title": "This STDIO MCP will run a local command","protocolInstall.title": "Install MCP","protocolInstall.warning": "Verify the Skill source. Disable or remove anytime in settings.","search.config.addKey": "Add key",diff --git a/locales/zh-CN/plugin.json b/locales/zh-CN/plugin.jsonindex d95abf269cb..8d02b353ebd 100644--- a/locales/zh-CN/plugin.json+++ b/locales/zh-CN/plugin.json@@ -648,6 +648,7 @@"protocolInstall.actions.install": "安装","protocolInstall.actions.installAnyway": "仍要安装","protocolInstall.actions.installed": "已安装",+ "protocolInstall.actions.runCommandAndInstall": "运行命令并安装","protocolInstall.config.addEnv": "添加环境变量","protocolInstall.config.addHeaders": "添加请求头","protocolInstall.config.args": "参数",@@ -665,9 +666,8 @@"protocolInstall.custom.title": "安装自定义技能","protocolInstall.install.title": "安装信息","protocolInstall.marketplace.title": "安装第三方技能",- "protocolInstall.marketplace.trustedBy": "由 {{name}} 提供",- "protocolInstall.marketplace.unverified.title": "未经验证的第三方技能",- "protocolInstall.marketplace.unverified.warning": "此技能来自未验证的第三方社区,安装前请确认你信任该来源",+ "protocolInstall.marketplace.unverified.title": "第三方技能",+ "protocolInstall.marketplace.unverified.warning": "此技能来自第三方来源。安装前请确认你信任该来源。","protocolInstall.marketplace.verified": "已验证","protocolInstall.messages.connectionTestFailed": "连接测试失败","protocolInstall.messages.installError": "技能安装失败,请重试",@@ -684,6 +684,8 @@"protocolInstall.official.loadingMessage": "正在获取技能详情…","protocolInstall.official.loadingTitle": "加载中","protocolInstall.official.title": "安装官方技能",+ "protocolInstall.stdio.commandExecution.description": "STDIO MCP 需要通过本地命令连接。安装过程中,LobeHub 会启动下方显示的命令进行连接测试。请仅在信任该来源时继续。",+ "protocolInstall.stdio.commandExecution.title": "此 STDIO MCP 会运行本地命令","protocolInstall.title": "安装 MCP","protocolInstall.warning": "安装前请确认你信任此技能的来源。你随时可以在设置中禁用或移除","search.config.addKey": "添加秘钥",diff --git a/packages/locales/src/default/plugin.ts b/packages/locales/src/default/plugin.tsindex b9dca23f8ff..4d35c6cfd77 100644--- a/packages/locales/src/default/plugin.ts+++ b/packages/locales/src/default/plugin.ts@@ -665,6 +665,7 @@ export default {'protocolInstall.actions.install': 'Install','protocolInstall.actions.installAnyway': 'Install anyway','protocolInstall.actions.installed': 'Installed',+ 'protocolInstall.actions.runCommandAndInstall': 'Run command and install','protocolInstall.config.addEnv': 'Add env var','protocolInstall.config.addHeaders': 'Add header','protocolInstall.config.args': 'Arguments',@@ -683,10 +684,9 @@ export default {'protocolInstall.custom.title': 'Install custom Skill','protocolInstall.install.title': 'Install info','protocolInstall.marketplace.title': 'Install third-party Skill',- 'protocolInstall.marketplace.trustedBy': 'By {{name}}',- 'protocolInstall.marketplace.unverified.title': 'Unverified third-party Skill',+ 'protocolInstall.marketplace.unverified.title': 'Third-party Skill','protocolInstall.marketplace.unverified.warning':- 'Verify the source before installing this community Skill.',+ 'This Skill is from a third-party source. Verify that you trust the source before installing.','protocolInstall.marketplace.verified': 'Verified','protocolInstall.messages.connectionTestFailed': 'Connection test failed','protocolInstall.messages.installError': 'Install failed, retry',@@ -704,6 +704,9 @@ export default {'protocolInstall.official.loadingMessage': 'Loading Skill details…','protocolInstall.official.loadingTitle': 'Loading','protocolInstall.official.title': 'Install official Skill',+ 'protocolInstall.stdio.commandExecution.description':+ 'STDIO MCPs connect through a local command. During installation, LobeHub will start the command shown below to test the connection. Continue only if you trust this source.',+ 'protocolInstall.stdio.commandExecution.title': 'This STDIO MCP will run a local command','protocolInstall.title': 'Install MCP','protocolInstall.warning': 'Verify the Skill source. Disable or remove anytime in settings.','search.config.addKey': 'Add key',diff --git a/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsx b/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsxindex 2566fd9eb0f..c653c963b77 100644--- a/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsx+++ b/src/features/ProtocolUrlHandler/InstallPlugin/CustomPluginInstallModal.tsx@@ -16,8 +16,7 @@ import { type McpConnectionParams } from '@/types/plugins';import { type LobeToolCustomPlugin } from '@/types/tool/plugin';import ConfigDisplay from './ConfigDisplay';-import { type McpInstallRequest, type TrustedMarketplaceId } from './types';-import { TRUSTED_MARKETPLACES } from './types';+import { type McpInstallRequest } from './types';interface CustomPluginInstallModalProps {installRequest: McpInstallRequest | null;@@ -48,9 +47,7 @@ const CustomPluginInstallModal = memo<CustomPluginInstallModalProps>(const testState = useToolStore(mcpStoreSelectors.getMCPConnectionTestState(identifier));const schema = installRequest?.schema;- const marketId = installRequest?.marketId;- const marketplace =- isMarketplace && marketId ? TRUSTED_MARKETPLACES[marketId as TrustedMarketplaceId] : null;+ const isStdioMcp = schema?.config.type === 'stdio';// Reset loading state and configuseEffect(() => {@@ -141,23 +138,11 @@ const CustomPluginInstallModal = memo<CustomPluginInstallModalProps>(// Render different Alert components based on typeconst renderAlert = () => {- if (!isMarketplace) {- return (- <Alert- showIcon- title={t('protocolInstall.custom.security.description')}- type="warning"- variant={'borderless'}- />- );- }-- // marketplace type- return marketplace ? (+ const sourceAlert = !isMarketplace ? (<AlertshowIcon- title={t('protocolInstall.marketplace.trustedBy', { name: marketplace.name })}- type="success"+ title={t('protocolInstall.custom.security.description')}+ type="warning"variant={'borderless'}/>) : (@@ -168,15 +153,32 @@ const CustomPluginInstallModal = memo<CustomPluginInstallModalProps>(variant={'borderless'}/>);++ return (+ <Flexbox gap={8}>+ {sourceAlert}+ {isStdioMcp && (+ <Alert+ showIcon+ description={t('protocolInstall.stdio.commandExecution.description')}+ title={t('protocolInstall.stdio.commandExecution.title')}+ type="warning"+ variant={'borderless'}+ />+ )}+ </Flexbox>+ );};const modalTitle = isMarketplace? t('protocolInstall.marketplace.title'): t('protocolInstall.custom.title');- const okText = isMarketplace- ? t('protocolInstall.actions.install')- : t('protocolInstall.actions.installAnyway');+ const okText = isStdioMcp+ ? t('protocolInstall.actions.runCommandAndInstall')+ : isMarketplace+ ? t('protocolInstall.actions.install')+ : t('protocolInstall.actions.installAnyway');return (<ImperativeModaldiff --git a/src/features/ProtocolUrlHandler/InstallPlugin/types.ts b/src/features/ProtocolUrlHandler/InstallPlugin/types.tsindex a6280479bb0..0df0f91f75b 100644--- a/src/features/ProtocolUrlHandler/InstallPlugin/types.ts+++ b/src/features/ProtocolUrlHandler/InstallPlugin/types.ts@@ -22,24 +22,3 @@ export interface ModalConfig {title: string;width?: number;}--// List of trusted third-party marketplaces-export const TRUSTED_MARKETPLACES = {- higress: {- description: 'Enterprise-grade MCP plugins for cloud-native applications',- name: 'Higress Marketplace',- website: 'https://higress.ai',- },- mcprouter: {- description: 'Community-driven MCP plugin marketplace',- name: 'MCPRouter',- website: 'https://mcprouter.com',- },- smithery: {- description: 'Professional MCP plugins and tools',- name: 'Smithery',- website: 'https://smithery.ai',- },-} as const;--export type TrustedMarketplaceId = keyof typeof TRUSTED_MARKETPLACES;