mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 03:31:24 +08:00
feat(mcp): add shouldConfig flag and i18n support for builtin MCPServer description (#8440)
* feat(mcp): 添加shouldConfig字段用于标记需要配置的服务器 在MCPServer接口中添加shouldConfig字段,用于标识需要额外配置的服务器 修改BuiltinMCPServersSection组件,根据shouldConfig字段显示配置提示标签 更新内置服务器列表,为需要配置的服务器添加shouldConfig字段 * feat(i18n): 添加内置服务器描述的多语言支持 * feat(mcp): 为内置MCP服务器添加国际化描述支持 将内置MCP服务器的描述从硬编码改为通过i18n获取,支持多语言显示 * feat(i18n): 添加内置MCP服务器的多语言描述 为内置MCP服务器添加多语言描述文本,包括中文、英文、日文等语言版本 同时优化mcp.ts中的描述文本引用方式,直接使用完整路径而非拼接前缀 * feat(mcp): 为内置服务器添加默认描述并修复无效描述显示 为内置MCP服务器添加默认描述字段,并在UI中使用国际化文本替换硬编码的"Invalid description"。同时为所有语言环境添加"no"键作为默认描述文本。
This commit is contained in:
parent
65257eb3d5
commit
4611e2c058
@ -2595,6 +2595,17 @@
|
||||
"argsTooltip": "Each argument on a new line",
|
||||
"baseUrlTooltip": "Remote server base URL",
|
||||
"builtinServers": "Builtin Servers",
|
||||
"builtinServersDescriptions": {
|
||||
"brave_search": "An MCP server implementation integrating the Brave Search API, providing both web and local search functionalities. Requires configuring the BRAVE_API_KEY environment variable",
|
||||
"dify_knowledge": "Dify's MCP server implementation provides a simple API to interact with Dify. Requires configuring the Dify Key",
|
||||
"fetch": "MCP server for retrieving URL web content",
|
||||
"filesystem": "A Node.js server implementing the Model Context Protocol (MCP) for file system operations. Requires configuration of directories allowed for access.",
|
||||
"mcp_auto_install": "Automatically install MCP service (beta) https://docs.cherry-ai.com/advanced-basic/mcp/auto-install",
|
||||
"memory": "Persistent memory implementation based on a local knowledge graph. This enables the model to remember user-related information across different conversations. Requires configuring the MEMORY_FILE_PATH environment variable. https://github.com/modelcontextprotocol/servers/tree/main/src/memory",
|
||||
"no": "No description",
|
||||
"python": "Execute Python code in a secure sandbox environment. Run Python with Pyodide, supporting most standard libraries and scientific computing packages",
|
||||
"sequentialthinking": "A MCP server implementation that provides tools for dynamic and reflective problem solving through structured thinking processes"
|
||||
},
|
||||
"command": "Command",
|
||||
"config_description": "Configure Model Context Protocol servers",
|
||||
"customRegistryPlaceholder": "Enter private registry URL, e.g.: https://npm.company.com",
|
||||
|
||||
@ -2595,6 +2595,17 @@
|
||||
"argsTooltip": "1行に1つの引数を入力してください",
|
||||
"baseUrlTooltip": "リモートURLアドレス",
|
||||
"builtinServers": "組み込みサーバー",
|
||||
"builtinServersDescriptions": {
|
||||
"brave_search": "Brave検索APIを統合したMCPサーバーの実装で、ウェブ検索とローカル検索の両機能を提供します。BRAVE_API_KEY環境変数の設定が必要です",
|
||||
"dify_knowledge": "DifyのMCPサーバー実装は、Difyと対話するためのシンプルなAPIを提供します。Dify Keyの設定が必要です。",
|
||||
"fetch": "URLのウェブページコンテンツを取得するためのMCPサーバー",
|
||||
"filesystem": "Node.jsサーバーによるファイルシステム操作を実現するモデルコンテキストプロトコル(MCP)。アクセスを許可するディレクトリの設定が必要です",
|
||||
"mcp_auto_install": "MCPサービスの自動インストール(ベータ版)https://docs.cherry-ai.com/advanced-basic/mcp/auto-install",
|
||||
"memory": "ローカルのナレッジグラフに基づく永続的なメモリの基本的な実装です。これにより、モデルは異なる会話間でユーザーの関連情報を記憶できるようになります。MEMORY_FILE_PATH 環境変数の設定が必要です。https://github.com/modelcontextprotocol/servers/tree/main/src/memory",
|
||||
"no": "説明なし",
|
||||
"python": "安全なサンドボックス環境でPythonコードを実行します。Pyodideを使用してPythonを実行し、ほとんどの標準ライブラリと科学計算パッケージをサポートしています。",
|
||||
"sequentialthinking": "構造化された思考プロセスを通じて動的かつ反省的な問題解決を行うためのツールを提供するMCPサーバーの実装"
|
||||
},
|
||||
"command": "コマンド",
|
||||
"config_description": "モデルコンテキストプロトコルサーバーの設定",
|
||||
"customRegistryPlaceholder": "プライベート倉庫のアドレスを入力してください(例:https://npm.company.com)",
|
||||
|
||||
@ -2595,6 +2595,17 @@
|
||||
"argsTooltip": "Каждый аргумент с новой строки",
|
||||
"baseUrlTooltip": "Адрес удаленного URL",
|
||||
"builtinServers": "Встроенные серверы",
|
||||
"builtinServersDescriptions": {
|
||||
"brave_search": "реализация сервера MCP с интеграцией API поиска Brave, обеспечивающая функции веб-поиска и локального поиска. Требуется настройка переменной среды BRAVE_API_KEY",
|
||||
"dify_knowledge": "Реализация сервера MCP Dify, предоставляющая простой API для взаимодействия с Dify. Требуется настройка ключа Dify",
|
||||
"fetch": "MCP-сервер для получения содержимого веб-страниц по URL",
|
||||
"filesystem": "Node.js-сервер протокола контекста модели (MCP) для реализации операций файловой системы. Требуется настройка каталогов, к которым разрешён доступ",
|
||||
"mcp_auto_install": "Автоматическая установка службы MCP (бета-версия) https://docs.cherry-ai.com/advanced-basic/mcp/auto-install",
|
||||
"memory": "реализация постоянной памяти на основе локального графа знаний. Это позволяет модели запоминать информацию о пользователе между различными диалогами. Требуется настроить переменную среды MEMORY_FILE_PATH. https://github.com/modelcontextprotocol/servers/tree/main/src/memory",
|
||||
"no": "без описания",
|
||||
"python": "Выполняйте код Python в безопасной песочнице. Запускайте Python с помощью Pyodide, поддерживается большинство стандартных библиотек и пакетов для научных вычислений",
|
||||
"sequentialthinking": "MCP серверная реализация, предоставляющая инструменты для динамического и рефлексивного решения проблем посредством структурированного мыслительного процесса"
|
||||
},
|
||||
"command": "Команда",
|
||||
"config_description": "Настройка серверов протокола контекста модели",
|
||||
"customRegistryPlaceholder": "Введите адрес частного склада, например: https://npm.company.com",
|
||||
|
||||
@ -2595,6 +2595,17 @@
|
||||
"argsTooltip": "每个参数占一行",
|
||||
"baseUrlTooltip": "远程 URL 地址",
|
||||
"builtinServers": "内置服务器",
|
||||
"builtinServersDescriptions": {
|
||||
"brave_search": "一个集成了Brave 搜索 API 的 MCP 服务器实现,提供网页与本地搜索双重功能。需要配置 BRAVE_API_KEY 环境变量",
|
||||
"dify_knowledge": "Dify 的 MCP 服务器实现,提供了一个简单的 API 来与 Dify 进行交互。需要配置 Dify Key",
|
||||
"fetch": "用于获取 URL 网页内容的 MCP 服务器",
|
||||
"filesystem": "实现文件系统操作的模型上下文协议(MCP)的 Node.js 服务器。需要配置允许访问的目录",
|
||||
"mcp_auto_install": "自动安装 MCP 服务(测试版)https://docs.cherry-ai.com/advanced-basic/mcp/auto-install",
|
||||
"memory": "基于本地知识图谱的持久性记忆基础实现。这使得模型能够在不同对话间记住用户的相关信息。需要配置 MEMORY_FILE_PATH 环境变量。https://github.com/modelcontextprotocol/servers/tree/main/src/memory",
|
||||
"no": "无描述",
|
||||
"python": "在安全的沙盒环境中执行 Python 代码。使用 Pyodide 运行 Python,支持大多数标准库和科学计算包",
|
||||
"sequentialthinking": "一个 MCP 服务器实现,提供了通过结构化思维过程进行动态和反思性问题解决的工具"
|
||||
},
|
||||
"command": "命令",
|
||||
"config_description": "配置模型上下文协议服务器",
|
||||
"customRegistryPlaceholder": "请输入私有仓库地址,如: https://npm.company.com",
|
||||
|
||||
@ -2595,6 +2595,17 @@
|
||||
"argsTooltip": "每個參數佔一行",
|
||||
"baseUrlTooltip": "遠端 URL 地址",
|
||||
"builtinServers": "內置伺服器",
|
||||
"builtinServersDescriptions": {
|
||||
"brave_search": "一個集成了Brave 搜索 API 的 MCP 伺服器實現,提供網頁與本地搜尋雙重功能。需要配置 BRAVE_API_KEY 環境變數",
|
||||
"dify_knowledge": "Dify 的 MCP 伺服器實現,提供了一個簡單的 API 來與 Dify 進行互動。需要配置 Dify Key",
|
||||
"fetch": "用於獲取 URL 網頁內容的 MCP 伺服器",
|
||||
"filesystem": "實現文件系統操作的模型上下文協議(MCP)的 Node.js 伺服器。需要配置允許訪問的目錄",
|
||||
"mcp_auto_install": "自動安裝 MCP 服務(測試版)https://docs.cherry-ai.com/advanced-basic/mcp/auto-install",
|
||||
"memory": "基於本地知識圖譜的持久性記憶基礎實現。這使得模型能夠在不同對話間記住使用者的相關資訊。需要配置 MEMORY_FILE_PATH 環境變數。https://github.com/modelcontextprotocol/servers/tree/main/src/memory",
|
||||
"no": "無描述",
|
||||
"python": "在安全的沙盒環境中執行 Python 代碼。使用 Pyodide 運行 Python,支援大多數標準庫和科學計算套件",
|
||||
"sequentialthinking": "一個 MCP 伺服器實現,提供了透過結構化思維過程進行動態和反思性問題解決的工具"
|
||||
},
|
||||
"command": "指令",
|
||||
"config_description": "設定模型上下文協議伺服器",
|
||||
"customRegistryPlaceholder": "請輸入私有倉庫位址,如: https://npm.company.com",
|
||||
|
||||
@ -2595,6 +2595,17 @@
|
||||
"argsTooltip": "Κάθε παράμετρος σε μια γραμμή",
|
||||
"baseUrlTooltip": "Σύνδεσμος Απομακρυσμένης διεύθυνσης URL",
|
||||
"builtinServers": "Ενσωματωμένοι Διακομιστές",
|
||||
"builtinServersDescriptions": {
|
||||
"brave_search": "μια εφαρμογή διακομιστή MCP που ενσωματώνει το Brave Search API, παρέχοντας δυνατότητες αναζήτησης στον ιστό και τοπικής αναζήτησης. Απαιτείται η ρύθμιση της μεταβλητής περιβάλλοντος BRAVE_API_KEY",
|
||||
"dify_knowledge": "Η υλοποίηση του Dify για τον διακομιστή MCP, παρέχει μια απλή API για να αλληλεπιδρά με το Dify. Απαιτείται η ρύθμιση του κλειδιού Dify",
|
||||
"fetch": "Εξυπηρετητής MCP για λήψη περιεχομένου ιστοσελίδας URL",
|
||||
"filesystem": "Εξυπηρετητής Node.js για το πρωτόκολλο περιβάλλοντος μοντέλου (MCP) που εφαρμόζει λειτουργίες συστήματος αρχείων. Απαιτείται διαμόρφωση για την επιτροπή πρόσβασης σε καταλόγους",
|
||||
"mcp_auto_install": "Αυτόματη εγκατάσταση υπηρεσίας MCP (προβολή) https://docs.cherry-ai.com/advanced-basic/mcp/auto-install",
|
||||
"memory": "Βασική υλοποίηση μόνιμης μνήμης με βάση τοπικό γράφημα γνώσης. Αυτό επιτρέπει στο μοντέλο να θυμάται πληροφορίες σχετικές με τον χρήστη ανάμεσα σε διαφορετικές συνομιλίες. Απαιτείται η ρύθμιση της μεταβλητής περιβάλλοντος MEMORY_FILE_PATH. https://github.com/modelcontextprotocol/servers/tree/main/src/memory",
|
||||
"no": "Χωρίς περιγραφή",
|
||||
"python": "Εκτελέστε κώδικα Python σε ένα ασφαλές περιβάλλον sandbox. Χρησιμοποιήστε το Pyodide για να εκτελέσετε Python, υποστηρίζοντας την πλειονότητα των βιβλιοθηκών της τυπικής βιβλιοθήκης και των πακέτων επιστημονικού υπολογισμού",
|
||||
"sequentialthinking": "ένας εξυπηρετητής MCP που υλοποιείται, παρέχοντας εργαλεία για δυναμική και αναστοχαστική επίλυση προβλημάτων μέσω δομημένων διαδικασιών σκέψης"
|
||||
},
|
||||
"command": "Εντολή",
|
||||
"config_description": "Ρυθμίζει το πλαίσιο συντονισμού πρωτοκόλλων διακομιστή",
|
||||
"customRegistryPlaceholder": "Παρακαλώ εισάγετε τη διεύθυνση του ιδιωτικού αποθετηρίου, π.χ.: https://npm.company.com",
|
||||
|
||||
@ -2595,6 +2595,17 @@
|
||||
"argsTooltip": "Cada argumento en una línea",
|
||||
"baseUrlTooltip": "Dirección URL remota",
|
||||
"builtinServers": "Servidores integrados",
|
||||
"builtinServersDescriptions": {
|
||||
"brave_search": "Una implementación de servidor MCP que integra la API de búsqueda de Brave, proporcionando funciones de búsqueda web y búsqueda local. Requiere configurar la variable de entorno BRAVE_API_KEY",
|
||||
"dify_knowledge": "Implementación del servidor MCP de Dify, que proporciona una API sencilla para interactuar con Dify. Se requiere configurar la clave de Dify.",
|
||||
"fetch": "Servidor MCP para obtener el contenido de la página web de una URL",
|
||||
"filesystem": "Servidor Node.js que implementa el protocolo de contexto del modelo (MCP) para operaciones del sistema de archivos. Requiere configuración del directorio permitido para el acceso",
|
||||
"mcp_auto_install": "Instalación automática del servicio MCP (versión beta) https://docs.cherry-ai.com/advanced-basic/mcp/auto-install",
|
||||
"memory": "Implementación básica de memoria persistente basada en un grafo de conocimiento local. Esto permite que el modelo recuerde información relevante del usuario entre diferentes conversaciones. Es necesario configurar la variable de entorno MEMORY_FILE_PATH. https://github.com/modelcontextprotocol/servers/tree/main/src/memory",
|
||||
"no": "sin descripción",
|
||||
"python": "Ejecuta código Python en un entorno sandbox seguro. Usa Pyodide para ejecutar Python, compatible con la mayoría de las bibliotecas estándar y paquetes de cálculo científico.",
|
||||
"sequentialthinking": "Una implementación de servidor MCP que proporciona herramientas para la resolución dinámica y reflexiva de problemas mediante un proceso de pensamiento estructurado"
|
||||
},
|
||||
"command": "Comando",
|
||||
"config_description": "Configurar modelo de contexto del protocolo del servidor",
|
||||
"customRegistryPlaceholder": "Por favor ingresa la dirección del repositorio privado, por ejemplo: https://npm.company.com",
|
||||
|
||||
@ -2595,6 +2595,17 @@
|
||||
"argsTooltip": "Chaque argument sur une ligne",
|
||||
"baseUrlTooltip": "Adresse URL distante",
|
||||
"builtinServers": "Serveurs intégrés",
|
||||
"builtinServersDescriptions": {
|
||||
"brave_search": "Une implémentation de serveur MCP intégrant l'API de recherche Brave, offrant des fonctionnalités de recherche web et locale. Nécessite la configuration de la variable d'environnement BRAVE_API_KEY",
|
||||
"dify_knowledge": "Implémentation du serveur MCP de Dify, fournissant une API simple pour interagir avec Dify. Nécessite la configuration de la clé Dify",
|
||||
"fetch": "serveur MCP utilisé pour récupérer le contenu des pages web URL",
|
||||
"filesystem": "Serveur Node.js implémentant le protocole de contexte de modèle (MCP) pour les opérations de système de fichiers. Nécessite une configuration des répertoires autorisés à être accédés.",
|
||||
"mcp_auto_install": "Installation automatique du service MCP (version bêta) https://docs.cherry-ai.com/advanced-basic/mcp/auto-install",
|
||||
"memory": "Implémentation de base de mémoire persistante basée sur un graphe de connaissances local. Cela permet au modèle de se souvenir des informations relatives à l'utilisateur entre différentes conversations. Nécessite la configuration de la variable d'environnement MEMORY_FILE_PATH. https://github.com/modelcontextprotocol/servers/tree/main/src/memory",
|
||||
"no": "sans description",
|
||||
"python": "Exécutez du code Python dans un environnement bac à sable sécurisé. Utilisez Pyodide pour exécuter Python, prenant en charge la plupart des bibliothèques standard et des packages de calcul scientifique.",
|
||||
"sequentialthinking": "Un serveur MCP qui fournit des outils permettant une résolution dynamique et réflexive des problèmes à travers un processus de pensée structuré"
|
||||
},
|
||||
"command": "Commande",
|
||||
"config_description": "Configurer le modèle du protocole de contexte du serveur",
|
||||
"customRegistryPlaceholder": "Veuillez entrer l'adresse du registre privé, par exemple : https://npm.company.com",
|
||||
|
||||
@ -2595,6 +2595,17 @@
|
||||
"argsTooltip": "Cada argumento em uma linha",
|
||||
"baseUrlTooltip": "Endereço de URL remoto",
|
||||
"builtinServers": "Servidores integrados",
|
||||
"builtinServersDescriptions": {
|
||||
"brave_search": "uma implementação de servidor MCP integrada com a API de pesquisa Brave, fornecendo funcionalidades de pesquisa web e local. Requer a configuração da variável de ambiente BRAVE_API_KEY",
|
||||
"dify_knowledge": "Implementação do servidor MCP do Dify, que fornece uma API simples para interagir com o Dify. Requer a configuração da chave Dify",
|
||||
"fetch": "servidor MCP para obter o conteúdo da página web do URL",
|
||||
"filesystem": "Servidor Node.js do protocolo de contexto de modelo (MCP) para implementar operações de sistema de ficheiros. Requer configuração do diretório permitido para acesso",
|
||||
"mcp_auto_install": "Instalação automática do serviço MCP (beta) https://docs.cherry-ai.com/advanced-basic/mcp/auto-install",
|
||||
"memory": "Implementação base de memória persistente baseada em grafos de conhecimento locais. Isso permite que o modelo lembre informações relevantes do utilizador entre diferentes conversas. É necessário configurar a variável de ambiente MEMORY_FILE_PATH. https://github.com/modelcontextprotocol/servers/tree/main/src/memory",
|
||||
"no": "sem descrição",
|
||||
"python": "Executar código Python num ambiente sandbox seguro. Utilizar Pyodide para executar Python, suportando a maioria das bibliotecas padrão e pacotes de computação científica",
|
||||
"sequentialthinking": "Uma implementação de servidor MCP que fornece ferramentas para resolução dinâmica e reflexiva de problemas através de um processo de pensamento estruturado"
|
||||
},
|
||||
"command": "Comando",
|
||||
"config_description": "Configurar modelo de protocolo de contexto do servidor",
|
||||
"customRegistryPlaceholder": "Por favor, insira o endereço do repositório privado, por exemplo: https://npm.company.com",
|
||||
|
||||
@ -44,13 +44,22 @@ const BuiltinMCPServersSection: FC = () => {
|
||||
</StatusIndicator>
|
||||
</ServerHeader>
|
||||
<Popover
|
||||
content={<PopoverContent>{server.description}</PopoverContent>}
|
||||
content={
|
||||
<PopoverContent>
|
||||
{server.getBuiltinDescription
|
||||
? server.getBuiltinDescription()
|
||||
: t('settings.mcp.builtinServersDescriptions.no')}
|
||||
</PopoverContent>
|
||||
}
|
||||
title={server.name}
|
||||
trigger="hover"
|
||||
placement="topLeft"
|
||||
overlayStyle={{ maxWidth: 400 }}>
|
||||
<ServerDescription>
|
||||
{server.description}
|
||||
{/* {server.getBuiltinDescription ? server.getBuiltinDescription() : 'Invalid description'} */}
|
||||
{server.getBuiltinDescription
|
||||
? server.getBuiltinDescription()
|
||||
: t('settings.mcp.builtinServersDescriptions.no')}
|
||||
<MoreIndicator>...</MoreIndicator>
|
||||
</ServerDescription>
|
||||
</Popover>
|
||||
@ -58,7 +67,7 @@ const BuiltinMCPServersSection: FC = () => {
|
||||
<Tag color="processing" style={{ borderRadius: 20, margin: 0, fontWeight: 500 }}>
|
||||
{getMcpTypeLabel(server.type ?? 'stdio')}
|
||||
</Tag>
|
||||
{server.env && Object.keys(server.env).length > 0 && (
|
||||
{server?.shouldConfig && (
|
||||
<Tag color="warning" style={{ borderRadius: 20, margin: 0, fontWeight: 500 }}>
|
||||
{t('settings.mcp.requiresConfig')}
|
||||
</Tag>
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { loggerService } from '@logger'
|
||||
import { createSlice, nanoid, type PayloadAction } from '@reduxjs/toolkit'
|
||||
import i18n from '@renderer/i18n'
|
||||
import type { MCPConfig, MCPServer } from '@renderer/types'
|
||||
|
||||
const logger = loggerService.withContext('Store:MCP')
|
||||
@ -74,8 +75,8 @@ export const builtinMCPServers: MCPServer[] = [
|
||||
{
|
||||
id: nanoid(),
|
||||
name: '@cherry/mcp-auto-install',
|
||||
description: '自动安装 MCP 服务(测试版)https://docs.cherry-ai.com/advanced-basic/mcp/auto-install',
|
||||
type: 'stdio',
|
||||
getBuiltinDescription: () => i18n.t('settings.mcp.builtinServersDescriptions.mcp_auto_install'),
|
||||
type: 'inMemory',
|
||||
command: 'npx',
|
||||
args: ['-y', '@mcpmarket/mcp-auto-install', 'connect', '--json'],
|
||||
isActive: false,
|
||||
@ -84,20 +85,20 @@ export const builtinMCPServers: MCPServer[] = [
|
||||
{
|
||||
id: nanoid(),
|
||||
name: '@cherry/memory',
|
||||
getBuiltinDescription: () => i18n.t('settings.mcp.builtinServersDescriptions.memory'),
|
||||
type: 'inMemory',
|
||||
description:
|
||||
'基于本地知识图谱的持久性记忆基础实现。这使得模型能够在不同对话间记住用户的相关信息。需要配置 MEMORY_FILE_PATH 环境变量。https://github.com/modelcontextprotocol/servers/tree/main/src/memory',
|
||||
isActive: true,
|
||||
env: {
|
||||
MEMORY_FILE_PATH: 'YOUR_MEMORY_FILE_PATH'
|
||||
},
|
||||
shouldConfig: true,
|
||||
provider: 'CherryAI'
|
||||
},
|
||||
{
|
||||
id: nanoid(),
|
||||
name: '@cherry/sequentialthinking',
|
||||
getBuiltinDescription: () => i18n.t('settings.mcp.builtinServersDescriptions.sequentialthinking'),
|
||||
type: 'inMemory',
|
||||
description: '一个 MCP 服务器实现,提供了通过结构化思维过程进行动态和反思性问题解决的工具',
|
||||
isActive: true,
|
||||
provider: 'CherryAI'
|
||||
},
|
||||
@ -105,19 +106,19 @@ export const builtinMCPServers: MCPServer[] = [
|
||||
id: nanoid(),
|
||||
name: '@cherry/brave-search',
|
||||
type: 'inMemory',
|
||||
description:
|
||||
'一个集成了Brave 搜索 API 的 MCP 服务器实现,提供网页与本地搜索双重功能。需要配置 BRAVE_API_KEY 环境变量',
|
||||
getBuiltinDescription: () => i18n.t('settings.mcp.builtinServersDescriptions.brave_search'),
|
||||
isActive: false,
|
||||
env: {
|
||||
BRAVE_API_KEY: 'YOUR_API_KEY'
|
||||
},
|
||||
shouldConfig: true,
|
||||
provider: 'CherryAI'
|
||||
},
|
||||
{
|
||||
id: nanoid(),
|
||||
name: '@cherry/fetch',
|
||||
type: 'inMemory',
|
||||
description: '用于获取 URL 网页内容的 MCP 服务器',
|
||||
getBuiltinDescription: () => i18n.t('settings.mcp.builtinServersDescriptions.fetch'),
|
||||
isActive: true,
|
||||
provider: 'CherryAI'
|
||||
},
|
||||
@ -125,8 +126,10 @@ export const builtinMCPServers: MCPServer[] = [
|
||||
id: nanoid(),
|
||||
name: '@cherry/filesystem',
|
||||
type: 'inMemory',
|
||||
description: '实现文件系统操作的模型上下文协议(MCP)的 Node.js 服务器',
|
||||
description: i18n.t('settings.mcp.builtinServersDescriptions.filesystem'),
|
||||
getBuiltinDescription: () => i18n.t('settings.mcp.builtinServersDescriptions.filesystem'),
|
||||
args: ['/Users/username/Desktop', '/path/to/other/allowed/dir'],
|
||||
shouldConfig: true,
|
||||
isActive: false,
|
||||
provider: 'CherryAI'
|
||||
},
|
||||
@ -134,18 +137,19 @@ export const builtinMCPServers: MCPServer[] = [
|
||||
id: nanoid(),
|
||||
name: '@cherry/dify-knowledge',
|
||||
type: 'inMemory',
|
||||
description: 'Dify 的 MCP 服务器实现,提供了一个简单的 API 来与 Dify 进行交互',
|
||||
getBuiltinDescription: () => i18n.t('settings.mcp.builtinServersDescriptions.dify_knowledge'),
|
||||
isActive: false,
|
||||
env: {
|
||||
DIFY_KEY: 'YOUR_DIFY_KEY'
|
||||
},
|
||||
shouldConfig: true,
|
||||
provider: 'CherryAI'
|
||||
},
|
||||
{
|
||||
id: nanoid(),
|
||||
name: '@cherry/python',
|
||||
type: 'inMemory',
|
||||
description: '在安全的沙盒环境中执行 Python 代码。使用 Pyodide 运行 Python,支持大多数标准库和科学计算包',
|
||||
getBuiltinDescription: () => i18n.t('settings.mcp.builtinServersDescriptions.python'),
|
||||
isActive: false,
|
||||
provider: 'CherryAI'
|
||||
}
|
||||
|
||||
@ -654,6 +654,8 @@ export interface MCPServer {
|
||||
registryUrl?: string
|
||||
args?: string[]
|
||||
env?: Record<string, string>
|
||||
shouldConfig?: boolean
|
||||
getBuiltinDescription?: () => string
|
||||
isActive: boolean
|
||||
disabledTools?: string[] // List of tool names that are disabled for this server
|
||||
disabledAutoApproveTools?: string[] // Whether to auto-approve tools for this server
|
||||
|
||||
Loading…
Reference in New Issue
Block a user