An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve stdio MCP environment variable settings https://github.com/siyuan-note/siyuan/issues/18656
Daniel525ba6076c6d
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.jsonindex fdffcc244a..0a7df113e8 100644--- a/app/appearance/langs/ar.json+++ b/app/appearance/langs/ar.json@@ -1,7 +1,7 @@{"aiMcpEnv": "متغيرات البيئة",- "aiMcpEnvTip": "أدخل كائن JSON؛ تُمرر الأسرار المشار إليها إلى هذا البرنامج، وتُخزن القيم المدخلة مباشرة كنص عادي",- "aiMcpEnvInvalid": "تنسيق متغيرات البيئة غير صالح؛ أدخل كائن JSON بأسماء صالحة وقيم نصية",+ "aiMcpEnvTip": "تُمرر الأسرار المشار إليها إلى هذا البرنامج، وتُخزن القيم المدخلة مباشرة كنص عادي",+ "aiMcpEnvInvalid": "متغيرات البيئة غير صالحة؛ تحقق من الأسماء الفارغة أو المكررة أو غير الصالحة","aiMcpInheritEnv": "توريث متغيرات البيئة","aiMcpInheritEnvTip": "حدد أسماء متغيرات البيئة التي يمكن تمريرها إلى خدمة MCP هذه؛ تُقرأ القيم عند بدء الخدمة","aiMcpEnvUnavailable": "غير متاح في هذا التشغيل",@@ -326,8 +326,8 @@"agentRetrying": "جارٍ إعادة المحاولة (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "مهلة خمول التدفق","agentStreamIdleTimeoutTip": "أقصى مدة دون إخراج من النموذج قبل إيقاف الطلب",- "aiMcpTrustToolAnnotations": "الوثوق بتعليقات الأدوات",- "aiMcpTrustToolAnnotationsTip": "السماح لتعليقات الأدوات للقراءة فقط من هذا الخادم بتخطي تأكيد العملية. فعّل هذا الخيار للخوادم الموثوقة فقط.",+ "aiMcpTrustToolAnnotations": "الوثوق بتصريحات الأدوات للقراءة فقط",+ "aiMcpTrustToolAnnotationsTip": "يثق بتصريحات هذا الخادم بأن الأدوات للقراءة فقط، فتعمل دون تأكيد؛ فعّل هذا الخيار للخوادم الموثوقة فقط","testConnectionFailMsg": "فشل الاتصال: ${msg}","testConnectionSuccessDimensions": "نجح الاتصال (الأبعاد ${dimensions})","masterPasswordMigrationPending": "جارٍ ترحيل كلمة المرور الرئيسية",diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.jsonindex 2cc792641f..1aa86aa592 100644--- a/app/appearance/langs/de.json+++ b/app/appearance/langs/de.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Umgebungsvariablen",- "aiMcpEnvTip": "Geben Sie ein JSON-Objekt ein; referenzierte Geheimnisse werden diesem Programm bereitgestellt, direkt eingegebene Werte werden im Klartext gespeichert",- "aiMcpEnvInvalid": "Ungültiges Format für Umgebungsvariablen; geben Sie ein JSON-Objekt mit gültigen Namen und Zeichenfolgenwerten ein",+ "aiMcpEnvTip": "Referenzierte Geheimnisse werden diesem Programm bereitgestellt, direkt eingegebene Werte werden im Klartext gespeichert",+ "aiMcpEnvInvalid": "Ungültige Umgebungsvariablen; prüfen Sie auf leere, doppelte oder ungültige Namen","aiMcpInheritEnv": "Umgebungsvariablen übernehmen","aiMcpInheritEnvTip": "Wählen Sie die Namen der Umgebungsvariablen aus, die an diesen MCP-Dienst übergeben werden dürfen; die Werte werden beim Start des Dienstes gelesen","aiMcpEnvUnavailable": "In dieser Ausführung nicht verfügbar",@@ -326,8 +326,8 @@"agentRetrying": "Erneuter Versuch (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Leerlaufzeitlimit des Streams","agentStreamIdleTimeoutTip": "Maximale Zeit ohne Modellausgabe, bevor die Anfrage beendet wird",- "aiMcpTrustToolAnnotations": "Werkzeuganmerkungen vertrauen",- "aiMcpTrustToolAnnotationsTip": "Erlaubt den Nur-Lese-Anmerkungen dieses Servers, die Bestätigung von Vorgängen zu überspringen. Nur für vertrauenswürdige Server aktivieren.",+ "aiMcpTrustToolAnnotations": "Nur-Lese-Deklarationen von Werkzeugen vertrauen",+ "aiMcpTrustToolAnnotationsTip": "Vertraut den Angaben dieses Servers, dass Werkzeuge schreibgeschützt sind, sodass sie ohne Bestätigung ausgeführt werden; nur für vertrauenswürdige Server aktivieren","testConnectionFailMsg": "Verbindung fehlgeschlagen: ${msg}","testConnectionSuccessDimensions": "Verbindung erfolgreich (Dimensionen ${dimensions})","masterPasswordMigrationPending": "Master-Passwort-Migration läuft",diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.jsonindex a312e5a921..9d76d21f98 100644--- a/app/appearance/langs/en.json+++ b/app/appearance/langs/en.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Environment variables",- "aiMcpEnvTip": "Enter a JSON object; referenced secrets are provided to this program, and direct values are stored in plaintext",- "aiMcpEnvInvalid": "Invalid environment variable format; enter a JSON object with valid names and string values",+ "aiMcpEnvTip": "Referenced secrets are provided to this program, and direct values are stored in plaintext",+ "aiMcpEnvInvalid": "Invalid environment variables; check for empty, duplicate, or invalid names","aiMcpInheritEnv": "Inherit environment variables","aiMcpInheritEnvTip": "Select environment variable names to pass to this MCP service; values are read when the service starts","aiMcpEnvUnavailable": "Unavailable in this run",@@ -326,8 +326,8 @@"agentRetrying": "Retrying (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Stream Idle Timeout","agentStreamIdleTimeoutTip": "Maximum time without model output before the request is stopped",- "aiMcpTrustToolAnnotations": "Trust tool annotations",- "aiMcpTrustToolAnnotationsTip": "Allow this server's read-only tool annotations to skip operation confirmation. Enable only for trusted servers.",+ "aiMcpTrustToolAnnotations": "Trust read-only tool declarations",+ "aiMcpTrustToolAnnotationsTip": "Trust this server's declarations that tools are read-only, so they run without confirmation; enable only for trusted servers","testConnectionFailMsg": "Connection failed: ${msg}","testConnectionSuccessDimensions": "Connection successful (dimensions ${dimensions})","masterPasswordMigrationPending": "Master password migration in progress",diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.jsonindex f3b2efe688..d309d04879 100644--- a/app/appearance/langs/es.json+++ b/app/appearance/langs/es.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Variables de entorno",- "aiMcpEnvTip": "Introduzca un objeto JSON; los secretos referenciados se proporcionan a este programa y los valores directos se almacenan como texto sin formato",- "aiMcpEnvInvalid": "Formato de variables de entorno no válido; introduzca un objeto JSON con nombres válidos y valores de texto",+ "aiMcpEnvTip": "Los secretos referenciados se proporcionan a este programa y los valores directos se almacenan como texto sin formato",+ "aiMcpEnvInvalid": "Variables de entorno no válidas; compruebe si hay nombres vacíos, duplicados o no válidos","aiMcpInheritEnv": "Heredar variables de entorno","aiMcpInheritEnvTip": "Seleccione los nombres de las variables de entorno que se pueden pasar a este servicio MCP; los valores se leen al iniciar el servicio","aiMcpEnvUnavailable": "No disponible en esta ejecución",@@ -326,8 +326,8 @@"agentRetrying": "Reintentando (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Tiempo de espera inactivo del flujo","agentStreamIdleTimeoutTip": "Tiempo máximo sin salida del modelo antes de detener la solicitud",- "aiMcpTrustToolAnnotations": "Confiar en las anotaciones de herramientas",- "aiMcpTrustToolAnnotationsTip": "Permite que las anotaciones de herramientas de solo lectura de este servidor omitan la confirmación de operaciones. Actívalo solo para servidores de confianza.",+ "aiMcpTrustToolAnnotations": "Confiar en declaraciones de herramientas de solo lectura",+ "aiMcpTrustToolAnnotationsTip": "Confía en las declaraciones de este servidor de que las herramientas son de solo lectura para ejecutarlas sin confirmación; actívalo solo para servidores de confianza","testConnectionFailMsg": "Error de conexión: ${msg}","testConnectionSuccessDimensions": "Conexión exitosa (dimensiones ${dimensions})","masterPasswordMigrationPending": "Migración de contraseña maestra en progreso",diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.jsonindex f09a915c34..75d2e65d2c 100644--- a/app/appearance/langs/fr.json+++ b/app/appearance/langs/fr.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Variables d'environnement",- "aiMcpEnvTip": "Saisissez un objet JSON ; les secrets référencés sont fournis à ce programme et les valeurs saisies directement sont stockées en texte brut",- "aiMcpEnvInvalid": "Format de variables d'environnement non valide ; saisissez un objet JSON avec des noms valides et des valeurs textuelles",+ "aiMcpEnvTip": "Les secrets référencés sont fournis à ce programme et les valeurs saisies directement sont stockées en texte brut",+ "aiMcpEnvInvalid": "Variables d'environnement non valides ; vérifiez les noms vides, dupliqués ou non valides","aiMcpInheritEnv": "Hériter des variables d'environnement","aiMcpInheritEnvTip": "Sélectionnez les noms des variables d'environnement pouvant être transmis à ce service MCP ; les valeurs sont lues au démarrage du service","aiMcpEnvUnavailable": "Indisponible pour cette exécution",@@ -326,8 +326,8 @@"agentRetrying": "Nouvelle tentative (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Délai d'inactivité du flux","agentStreamIdleTimeoutTip": "Durée maximale sans sortie du modèle avant l'arrêt de la requête",- "aiMcpTrustToolAnnotations": "Faire confiance aux annotations des outils",- "aiMcpTrustToolAnnotationsTip": "Autorise les annotations d’outils en lecture seule de ce serveur à ignorer la confirmation des opérations. À activer uniquement pour les serveurs de confiance.",+ "aiMcpTrustToolAnnotations": "Faire confiance aux déclarations d’outils en lecture seule",+ "aiMcpTrustToolAnnotationsTip": "Fait confiance aux déclarations de ce serveur indiquant que les outils sont en lecture seule afin de les exécuter sans confirmation ; à activer uniquement pour les serveurs de confiance","testConnectionFailMsg": "Échec de la connexion : ${msg}","testConnectionSuccessDimensions": "Connexion réussie (dimensions ${dimensions})","masterPasswordMigrationPending": "Migration du mot de passe principal en cours",diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.jsonindex 449b2ff3ad..5946c52475 100644--- a/app/appearance/langs/he.json+++ b/app/appearance/langs/he.json@@ -1,7 +1,7 @@{"aiMcpEnv": "משתני סביבה",- "aiMcpEnvTip": "יש להזין אובייקט JSON; סודות שמופנים יועברו לתוכנית זו, וערכים שיוזנו ישירות יישמרו כטקסט גלוי",- "aiMcpEnvInvalid": "תבנית משתני הסביבה אינה תקינה; יש להזין אובייקט JSON עם שמות תקינים וערכי מחרוזת",+ "aiMcpEnvTip": "סודות שמופנים יועברו לתוכנית זו, וערכים שיוזנו ישירות יישמרו כטקסט גלוי",+ "aiMcpEnvInvalid": "משתני הסביבה אינם תקינים; יש לבדוק שמות ריקים, כפולים או לא תקינים","aiMcpInheritEnv": "ירושת משתני סביבה","aiMcpInheritEnvTip": "יש לבחור את שמות משתני הסביבה שניתן להעביר לשירות MCP זה; הערכים נקראים בעת הפעלת השירות","aiMcpEnvUnavailable": "לא זמין בהפעלה זו",@@ -326,8 +326,8 @@"agentRetrying": "מנסה שוב (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "זמן קצוב לחוסר פעילות בזרם","agentStreamIdleTimeoutTip": "משך הזמן המרבי ללא פלט מהמודל לפני עצירת הבקשה",- "aiMcpTrustToolAnnotations": "מתן אמון בהערות כלי",- "aiMcpTrustToolAnnotationsTip": "אפשר להערות כלי לקריאה בלבד משרת זה לדלג על אישור הפעולה. יש להפעיל רק עבור שרתים מהימנים.",+ "aiMcpTrustToolAnnotations": "מתן אמון בהצהרות על כלים לקריאה בלבד",+ "aiMcpTrustToolAnnotationsTip": "נותן אמון בהצהרות של שרת זה שהכלים הם לקריאה בלבד, ולכן מפעיל אותם ללא אישור; יש להפעיל רק עבור שרתים מהימנים","testConnectionFailMsg": "החיבור נכשל: ${msg}","testConnectionSuccessDimensions": "החיבור הצליח (ממדים ${dimensions})","masterPasswordMigrationPending": "מעבר סיסמה ראשית בתהליך",diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.jsonindex f06fc1d8dc..33624105c2 100644--- a/app/appearance/langs/hi.json+++ b/app/appearance/langs/hi.json@@ -1,7 +1,7 @@{"aiMcpEnv": "पर्यावरण चर",- "aiMcpEnvTip": "एक JSON ऑब्जेक्ट दर्ज करें; संदर्भित रहस्य इस प्रोग्राम को दिए जाते हैं और सीधे दर्ज किए गए मान सादे पाठ में संग्रहीत होते हैं",- "aiMcpEnvInvalid": "पर्यावरण चर प्रारूप अमान्य है; मान्य नामों और स्ट्रिंग मानों वाला JSON ऑब्जेक्ट दर्ज करें",+ "aiMcpEnvTip": "संदर्भित रहस्य इस प्रोग्राम को दिए जाते हैं और सीधे दर्ज किए गए मान सादे पाठ में संग्रहीत होते हैं",+ "aiMcpEnvInvalid": "पर्यावरण चर अमान्य हैं; खाली, डुप्लिकेट या अमान्य नामों की जाँच करें","aiMcpInheritEnv": "पर्यावरण चर इनहेरिट करें","aiMcpInheritEnvTip": "इस MCP सेवा को दिए जा सकने वाले पर्यावरण चर नाम चुनें; सेवा शुरू होने पर मान पढ़े जाते हैं","aiMcpEnvUnavailable": "इस रन में अनुपलब्ध",@@ -326,8 +326,8 @@"agentRetrying": "पुनः प्रयास जारी है (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "स्ट्रीम निष्क्रियता समय सीमा","agentStreamIdleTimeoutTip": "अनुरोध रोकने से पहले मॉडल आउटपुट के बिना अधिकतम समय",- "aiMcpTrustToolAnnotations": "टूल एनोटेशन पर भरोसा करें",- "aiMcpTrustToolAnnotationsTip": "इस सर्वर के केवल-पढ़ने योग्य टूल एनोटेशन को कार्रवाई की पुष्टि छोड़ने दें। इसे केवल विश्वसनीय सर्वर के लिए सक्षम करें।",+ "aiMcpTrustToolAnnotations": "केवल-पढ़ने योग्य टूल घोषणाओं पर भरोसा करें",+ "aiMcpTrustToolAnnotationsTip": "इस सर्वर की इस घोषणा पर भरोसा करें कि टूल केवल-पढ़ने योग्य हैं, ताकि वे पुष्टि के बिना चलें; इसे केवल विश्वसनीय सर्वर के लिए सक्षम करें","testConnectionFailMsg": "कनेक्शन विफल: ${msg}","testConnectionSuccessDimensions": "कनेक्शन सफल (आयाम ${dimensions})","masterPasswordMigrationPending": "मास्टर पासवर्ड माइग्रेशन प्रगति पर है",diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.jsonindex f2592e962a..eebe60c359 100644--- a/app/appearance/langs/id.json+++ b/app/appearance/langs/id.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Variabel lingkungan",- "aiMcpEnvTip": "Masukkan objek JSON; rahasia yang dirujuk diberikan kepada program ini dan nilai yang dimasukkan langsung disimpan sebagai teks biasa",- "aiMcpEnvInvalid": "Format variabel lingkungan tidak valid; masukkan objek JSON dengan nama yang valid dan nilai string",+ "aiMcpEnvTip": "Rahasia yang dirujuk diberikan kepada program ini dan nilai yang dimasukkan langsung disimpan sebagai teks biasa",+ "aiMcpEnvInvalid": "Variabel lingkungan tidak valid; periksa nama yang kosong, duplikat, atau tidak valid","aiMcpInheritEnv": "Warisi variabel lingkungan","aiMcpInheritEnvTip": "Pilih nama variabel lingkungan yang boleh diteruskan ke layanan MCP ini; nilai dibaca saat layanan dimulai","aiMcpEnvUnavailable": "Tidak tersedia pada proses ini",@@ -326,8 +326,8 @@"agentRetrying": "Mencoba lagi (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Batas waktu diam aliran","agentStreamIdleTimeoutTip": "Waktu maksimum tanpa keluaran model sebelum permintaan dihentikan",- "aiMcpTrustToolAnnotations": "Percayai anotasi alat",- "aiMcpTrustToolAnnotationsTip": "Izinkan anotasi alat hanya-baca dari server ini melewati konfirmasi operasi. Aktifkan hanya untuk server tepercaya.",+ "aiMcpTrustToolAnnotations": "Percayai deklarasi alat hanya-baca",+ "aiMcpTrustToolAnnotationsTip": "Memercayai deklarasi server ini bahwa alat bersifat hanya-baca sehingga dapat dijalankan tanpa konfirmasi; aktifkan hanya untuk server tepercaya","testConnectionFailMsg": "Koneksi gagal: ${msg}","testConnectionSuccessDimensions": "Koneksi berhasil (dimensi ${dimensions})","masterPasswordMigrationPending": "Migrasi kata sandi utama sedang berlangsung",diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.jsonindex 93198ad08a..44725a686b 100644--- a/app/appearance/langs/it.json+++ b/app/appearance/langs/it.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Variabili d'ambiente",- "aiMcpEnvTip": "Inserisci un oggetto JSON; i segreti referenziati vengono forniti a questo programma e i valori inseriti direttamente vengono archiviati in testo semplice",- "aiMcpEnvInvalid": "Formato delle variabili d'ambiente non valido; inserisci un oggetto JSON con nomi validi e valori stringa",+ "aiMcpEnvTip": "I segreti referenziati vengono forniti a questo programma e i valori inseriti direttamente vengono archiviati in testo semplice",+ "aiMcpEnvInvalid": "Variabili d'ambiente non valide; verifica la presenza di nomi vuoti, duplicati o non validi","aiMcpInheritEnv": "Eredita variabili d'ambiente","aiMcpInheritEnvTip": "Seleziona i nomi delle variabili d'ambiente che possono essere passate a questo servizio MCP; i valori vengono letti all'avvio del servizio","aiMcpEnvUnavailable": "Non disponibile in questa esecuzione",@@ -326,8 +326,8 @@"agentRetrying": "Nuovo tentativo (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Timeout di inattività del flusso","agentStreamIdleTimeoutTip": "Tempo massimo senza output del modello prima di interrompere la richiesta",- "aiMcpTrustToolAnnotations": "Considera attendibili le annotazioni degli strumenti",- "aiMcpTrustToolAnnotationsTip": "Consente alle annotazioni degli strumenti di sola lettura di questo server di ignorare la conferma delle operazioni. Abilita solo per server attendibili.",+ "aiMcpTrustToolAnnotations": "Considera attendibili le dichiarazioni degli strumenti di sola lettura",+ "aiMcpTrustToolAnnotationsTip": "Considera attendibili le dichiarazioni di questo server secondo cui gli strumenti sono di sola lettura, eseguendoli senza conferma; abilita solo per server attendibili","testConnectionFailMsg": "Connessione non riuscita: ${msg}","testConnectionSuccessDimensions": "Connessione riuscita (dimensioni ${dimensions})","masterPasswordMigrationPending": "Migrazione della password principale in corso",diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.jsonindex c88509461f..3ac3aba53f 100644--- a/app/appearance/langs/ja.json+++ b/app/appearance/langs/ja.json@@ -1,7 +1,7 @@{"aiMcpEnv": "環境変数",- "aiMcpEnvTip": "JSON オブジェクトを入力します。参照したシークレットはこのプログラムに渡され、直接入力した値は平文で保存されます",- "aiMcpEnvInvalid": "環境変数の形式が無効です。有効な名前と文字列値を持つ JSON オブジェクトを入力してください",+ "aiMcpEnvTip": "参照したシークレットはこのプログラムに渡され、直接入力した値は平文で保存されます",+ "aiMcpEnvInvalid": "環境変数が無効です。名前が空、重複、または無効な文字を含んでいないか確認してください","aiMcpInheritEnv": "環境変数を継承","aiMcpInheritEnvTip": "この MCP サービスに渡す環境変数名を選択します。値はサービスの起動時に読み取られます","aiMcpEnvUnavailable": "今回の実行では利用不可",@@ -326,8 +326,8 @@"agentRetrying": "再試行中 (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "ストリームのアイドルタイムアウト","agentStreamIdleTimeoutTip": "モデルから出力がない状態でリクエストを停止するまでの最大時間",- "aiMcpTrustToolAnnotations": "ツール注釈を信頼する",- "aiMcpTrustToolAnnotationsTip": "このサーバーの読み取り専用ツール注釈による操作確認の省略を許可します。信頼できるサーバーに対してのみ有効にしてください。",+ "aiMcpTrustToolAnnotations": "読み取り専用ツールの宣言を信頼する",+ "aiMcpTrustToolAnnotationsTip": "ツールが読み取り専用であるというこのサーバーの宣言を信頼し、確認なしで実行します。信頼できるサーバーに対してのみ有効にしてください","testConnectionFailMsg": "接続に失敗しました:${msg}","testConnectionSuccessDimensions": "接続成功(次元 ${dimensions})","masterPasswordMigrationPending": "マスターパスワードの移行が進行中",diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.jsonindex 392b39bed9..0bcb2e3470 100644--- a/app/appearance/langs/ko.json+++ b/app/appearance/langs/ko.json@@ -1,7 +1,7 @@{"aiMcpEnv": "환경 변수",- "aiMcpEnvTip": "JSON 객체를 입력하세요. 참조된 비밀은 이 프로그램에 제공되며 직접 입력한 값은 일반 텍스트로 저장됩니다",- "aiMcpEnvInvalid": "환경 변수 형식이 잘못되었습니다. 유효한 이름과 문자열 값이 있는 JSON 객체를 입력하세요",+ "aiMcpEnvTip": "참조된 비밀은 이 프로그램에 제공되며 직접 입력한 값은 일반 텍스트로 저장됩니다",+ "aiMcpEnvInvalid": "환경 변수가 잘못되었습니다. 비어 있거나 중복되거나 잘못된 이름이 있는지 확인하세요","aiMcpInheritEnv": "환경 변수 상속","aiMcpInheritEnvTip": "이 MCP 서비스에 전달할 환경 변수 이름을 선택하세요. 값은 서비스가 시작될 때 읽습니다","aiMcpEnvUnavailable": "이번 실행에서 사용할 수 없음",@@ -326,8 +326,8 @@"agentRetrying": "재시도 중 (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "스트림 유휴 시간 초과","agentStreamIdleTimeoutTip": "모델 출력이 없을 때 요청을 중지하기까지의 최대 시간",- "aiMcpTrustToolAnnotations": "도구 주석 신뢰",- "aiMcpTrustToolAnnotationsTip": "이 서버의 읽기 전용 도구 주석이 작업 확인을 건너뛰도록 허용합니다. 신뢰할 수 있는 서버에만 활성화하세요.",+ "aiMcpTrustToolAnnotations": "읽기 전용 도구 선언 신뢰",+ "aiMcpTrustToolAnnotationsTip": "도구가 읽기 전용이라는 이 서버의 선언을 신뢰하여 확인 없이 실행합니다. 신뢰할 수 있는 서버에만 활성화하세요","testConnectionFailMsg": "연결 실패: ${msg}","testConnectionSuccessDimensions": "연결 성공(차원 ${dimensions})","masterPasswordMigrationPending": "마스터 비밀번호 마이그레이션 진행 중",diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.jsonindex 5a61a275a6..243db3a8cc 100644--- a/app/appearance/langs/nl.json+++ b/app/appearance/langs/nl.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Omgevingsvariabelen",- "aiMcpEnvTip": "Voer een JSON-object in; geheimen waarnaar wordt verwezen worden aan dit programma verstrekt en rechtstreeks ingevoerde waarden worden als platte tekst opgeslagen",- "aiMcpEnvInvalid": "Ongeldige indeling van omgevingsvariabelen; voer een JSON-object met geldige namen en tekenreekswaarden in",+ "aiMcpEnvTip": "Geheimen waarnaar wordt verwezen worden aan dit programma verstrekt en rechtstreeks ingevoerde waarden worden als platte tekst opgeslagen",+ "aiMcpEnvInvalid": "Ongeldige omgevingsvariabelen; controleer op lege, dubbele of ongeldige namen","aiMcpInheritEnv": "Omgevingsvariabelen overnemen","aiMcpInheritEnvTip": "Selecteer de namen van omgevingsvariabelen die aan deze MCP-service mogen worden doorgegeven; waarden worden gelezen wanneer de service start","aiMcpEnvUnavailable": "Niet beschikbaar in deze uitvoering",@@ -326,8 +326,8 @@"agentRetrying": "Opnieuw proberen (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Time-out bij inactiviteit van stream","agentStreamIdleTimeoutTip": "Maximale tijd zonder modeluitvoer voordat de aanvraag wordt gestopt",- "aiMcpTrustToolAnnotations": "Toolannotaties vertrouwen",- "aiMcpTrustToolAnnotationsTip": "Sta toe dat alleen-lezen-toolannotaties van deze server de bevestiging van bewerkingen overslaan. Schakel dit alleen in voor vertrouwde servers.",+ "aiMcpTrustToolAnnotations": "Alleen-lezenverklaringen van tools vertrouwen",+ "aiMcpTrustToolAnnotationsTip": "Vertrouwt de verklaringen van deze server dat tools alleen-lezen zijn, zodat ze zonder bevestiging worden uitgevoerd; schakel dit alleen in voor vertrouwde servers","testConnectionFailMsg": "Verbinding mislukt: ${msg}","testConnectionSuccessDimensions": "Verbinding geslaagd (dimensies ${dimensions})","masterPasswordMigrationPending": "Migratie van hoofdwachtwoord is bezig",diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.jsonindex 4c5154774e..978a941a98 100644--- a/app/appearance/langs/pl.json+++ b/app/appearance/langs/pl.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Zmienne środowiskowe",- "aiMcpEnvTip": "Wprowadź obiekt JSON; wskazane sekrety są udostępniane temu programowi, a wartości wpisane bezpośrednio są przechowywane jako zwykły tekst",- "aiMcpEnvInvalid": "Nieprawidłowy format zmiennych środowiskowych; wprowadź obiekt JSON z prawidłowymi nazwami i wartościami tekstowymi",+ "aiMcpEnvTip": "Wskazane sekrety są udostępniane temu programowi, a wartości wpisane bezpośrednio są przechowywane jako zwykły tekst",+ "aiMcpEnvInvalid": "Nieprawidłowe zmienne środowiskowe; sprawdź puste, zduplikowane lub nieprawidłowe nazwy","aiMcpInheritEnv": "Dziedzicz zmienne środowiskowe","aiMcpInheritEnvTip": "Wybierz nazwy zmiennych środowiskowych, które można przekazać do tej usługi MCP; wartości są odczytywane podczas uruchamiania usługi","aiMcpEnvUnavailable": "Niedostępne w tym uruchomieniu",@@ -326,8 +326,8 @@"agentRetrying": "Ponawianie próby (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Limit bezczynności strumienia","agentStreamIdleTimeoutTip": "Maksymalny czas bez odpowiedzi modelu przed zatrzymaniem żądania",- "aiMcpTrustToolAnnotations": "Ufaj adnotacjom narzędzi",- "aiMcpTrustToolAnnotationsTip": "Zezwala adnotacjom narzędzi tylko do odczytu z tego serwera na pomijanie potwierdzenia operacji. Włączaj tylko dla zaufanych serwerów.",+ "aiMcpTrustToolAnnotations": "Ufaj deklaracjom narzędzi tylko do odczytu",+ "aiMcpTrustToolAnnotationsTip": "Uznaje deklaracje tego serwera, że narzędzia są tylko do odczytu, i uruchamia je bez potwierdzenia; włączaj tylko dla zaufanych serwerów","testConnectionFailMsg": "Połączenie nie powiodło się: ${msg}","testConnectionSuccessDimensions": "Połączenie nawiązane (wymiary ${dimensions})","masterPasswordMigrationPending": "Trwa migracja hasła głównego",diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.jsonindex cbd220596b..7cbf0d0eee 100644--- a/app/appearance/langs/pt-BR.json+++ b/app/appearance/langs/pt-BR.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Variáveis de ambiente",- "aiMcpEnvTip": "Insira um objeto JSON; os segredos referenciados são fornecidos a este programa e os valores inseridos diretamente são armazenados como texto simples",- "aiMcpEnvInvalid": "Formato de variáveis de ambiente inválido; insira um objeto JSON com nomes válidos e valores de texto",+ "aiMcpEnvTip": "Os segredos referenciados são fornecidos a este programa e os valores inseridos diretamente são armazenados como texto simples",+ "aiMcpEnvInvalid": "Variáveis de ambiente inválidas; verifique se há nomes vazios, duplicados ou inválidos","aiMcpInheritEnv": "Herdar variáveis de ambiente","aiMcpInheritEnvTip": "Selecione os nomes das variáveis de ambiente que podem ser passadas a este serviço MCP; os valores são lidos quando o serviço é iniciado","aiMcpEnvUnavailable": "Indisponível nesta execução",@@ -326,8 +326,8 @@"agentRetrying": "Tentando novamente (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Tempo limite de inatividade do fluxo","agentStreamIdleTimeoutTip": "Tempo máximo sem saída do modelo antes de interromper a solicitação",- "aiMcpTrustToolAnnotations": "Confiar nas anotações das ferramentas",- "aiMcpTrustToolAnnotationsTip": "Permite que as anotações de ferramentas somente leitura deste servidor ignorem a confirmação de operações. Ative apenas para servidores confiáveis.",+ "aiMcpTrustToolAnnotations": "Confiar nas declarações de ferramentas somente leitura",+ "aiMcpTrustToolAnnotationsTip": "Confia nas declarações deste servidor de que as ferramentas são somente leitura para executá-las sem confirmação; ative apenas para servidores confiáveis","testConnectionFailMsg": "Falha na conexão: ${msg}","testConnectionSuccessDimensions": "Conexão bem-sucedida (dimensões ${dimensions})","masterPasswordMigrationPending": "Migração de senha mestra em andamento",diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.jsonindex de89e4c6a7..62aa100939 100644--- a/app/appearance/langs/ru.json+++ b/app/appearance/langs/ru.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Переменные окружения",- "aiMcpEnvTip": "Введите объект JSON; указанные секреты передаются этой программе, а введённые напрямую значения хранятся в открытом виде",- "aiMcpEnvInvalid": "Неверный формат переменных окружения; введите объект JSON с допустимыми именами и строковыми значениями",+ "aiMcpEnvTip": "Указанные секреты передаются этой программе, а введённые напрямую значения хранятся в открытом виде",+ "aiMcpEnvInvalid": "Недопустимые переменные окружения; проверьте пустые, повторяющиеся или недопустимые имена","aiMcpInheritEnv": "Наследовать переменные окружения","aiMcpInheritEnvTip": "Выберите имена переменных окружения, которые можно передать этой службе MCP; значения считываются при запуске службы","aiMcpEnvUnavailable": "Недоступно в этом запуске",@@ -326,8 +326,8 @@"agentRetrying": "Повторная попытка (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Тайм-аут простоя потока","agentStreamIdleTimeoutTip": "Максимальное время без вывода модели до остановки запроса",- "aiMcpTrustToolAnnotations": "Доверять аннотациям инструментов",- "aiMcpTrustToolAnnotationsTip": "Разрешает аннотациям инструментов только для чтения с этого сервера пропускать подтверждение операций. Включайте только для доверенных серверов.",+ "aiMcpTrustToolAnnotations": "Доверять заявлениям об инструментах только для чтения",+ "aiMcpTrustToolAnnotationsTip": "Доверяет заявлениям этого сервера о том, что инструменты доступны только для чтения, и запускает их без подтверждения; включайте только для доверенных серверов","testConnectionFailMsg": "Ошибка подключения: ${msg}","testConnectionSuccessDimensions": "Подключение успешно (измерений: ${dimensions})","masterPasswordMigrationPending": "Выполняется миграция мастер-пароля",diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.jsonindex c3be4c5bde..bd6b143f45 100644--- a/app/appearance/langs/sk.json+++ b/app/appearance/langs/sk.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Premenné prostredia",- "aiMcpEnvTip": "Zadajte objekt JSON; odkazované tajomstvá sa poskytnú tomuto programu a priamo zadané hodnoty sa uložia ako obyčajný text",- "aiMcpEnvInvalid": "Neplatný formát premenných prostredia; zadajte objekt JSON s platnými názvami a textovými hodnotami",+ "aiMcpEnvTip": "Odkazované tajomstvá sa poskytnú tomuto programu a priamo zadané hodnoty sa uložia ako obyčajný text",+ "aiMcpEnvInvalid": "Neplatné premenné prostredia; skontrolujte prázdne, duplicitné alebo neplatné názvy","aiMcpInheritEnv": "Dediť premenné prostredia","aiMcpInheritEnvTip": "Vyberte názvy premenných prostredia, ktoré možno odovzdať tejto službe MCP; hodnoty sa načítajú pri spustení služby","aiMcpEnvUnavailable": "V tomto spustení nedostupné",@@ -326,8 +326,8 @@"agentRetrying": "Opakovaný pokus (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Časový limit nečinnosti toku","agentStreamIdleTimeoutTip": "Maximálny čas bez výstupu modelu pred zastavením požiadavky",- "aiMcpTrustToolAnnotations": "Dôverovať anotáciám nástrojov",- "aiMcpTrustToolAnnotationsTip": "Umožní anotáciám nástrojov iba na čítanie z tohto servera preskočiť potvrdenie operácie. Povoľte iba pre dôveryhodné servery.",+ "aiMcpTrustToolAnnotations": "Dôverovať deklaráciám nástrojov iba na čítanie",+ "aiMcpTrustToolAnnotationsTip": "Dôveruje vyhláseniam tohto servera, že nástroje sú iba na čítanie, a spúšťa ich bez potvrdenia; povoľte iba pre dôveryhodné servery","testConnectionFailMsg": "Pripojenie zlyhalo: ${msg}","testConnectionSuccessDimensions": "Pripojenie úspešné (rozmery ${dimensions})","masterPasswordMigrationPending": "Prebieha migrácia hlavného hesla",diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.jsonindex 4dca56b5bf..2fd98becb1 100644--- a/app/appearance/langs/th.json+++ b/app/appearance/langs/th.json@@ -1,7 +1,7 @@{"aiMcpEnv": "ตัวแปรสภาพแวดล้อม",- "aiMcpEnvTip": "ป้อนอ็อบเจ็กต์ JSON โดยข้อมูลลับที่อ้างอิงจะถูกส่งให้โปรแกรมนี้ และค่าที่ป้อนโดยตรงจะถูกจัดเก็บเป็นข้อความธรรมดา",- "aiMcpEnvInvalid": "รูปแบบตัวแปรสภาพแวดล้อมไม่ถูกต้อง โปรดป้อนอ็อบเจ็กต์ JSON ที่มีชื่อถูกต้องและค่าเป็นสตริง",+ "aiMcpEnvTip": "ข้อมูลลับที่อ้างอิงจะถูกส่งให้โปรแกรมนี้ และค่าที่ป้อนโดยตรงจะถูกจัดเก็บเป็นข้อความธรรมดา",+ "aiMcpEnvInvalid": "ตัวแปรสภาพแวดล้อมไม่ถูกต้อง โปรดตรวจสอบชื่อที่ว่าง ซ้ำ หรือไม่ถูกต้อง","aiMcpInheritEnv": "สืบทอดตัวแปรสภาพแวดล้อม","aiMcpInheritEnvTip": "เลือกชื่อตัวแปรสภาพแวดล้อมที่อนุญาตให้ส่งไปยังบริการ MCP นี้ โดยระบบจะอ่านค่าเมื่อเริ่มบริการ","aiMcpEnvUnavailable": "ไม่พร้อมใช้งานในการเรียกใช้นี้",@@ -326,8 +326,8 @@"agentRetrying": "กำลังลองใหม่ (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "หมดเวลาว่างของสตรีม","agentStreamIdleTimeoutTip": "เวลาสูงสุดที่ไม่มีเอาต์พุตจากโมเดลก่อนหยุดคำขอ",- "aiMcpTrustToolAnnotations": "เชื่อถือคำอธิบายประกอบของเครื่องมือ",- "aiMcpTrustToolAnnotationsTip": "อนุญาตให้คำอธิบายประกอบเครื่องมือแบบอ่านอย่างเดียวจากเซิร์ฟเวอร์นี้ข้ามการยืนยันการดำเนินการ เปิดใช้เฉพาะกับเซิร์ฟเวอร์ที่เชื่อถือได้เท่านั้น",+ "aiMcpTrustToolAnnotations": "เชื่อถือการประกาศเครื่องมือแบบอ่านอย่างเดียว",+ "aiMcpTrustToolAnnotationsTip": "เชื่อถือการประกาศของเซิร์ฟเวอร์นี้ว่าเครื่องมือเป็นแบบอ่านอย่างเดียว เพื่อให้ทำงานโดยไม่ต้องยืนยัน เปิดใช้เฉพาะกับเซิร์ฟเวอร์ที่เชื่อถือได้เท่านั้น","testConnectionFailMsg": "การเชื่อมต่อล้มเหลว: ${msg}","testConnectionSuccessDimensions": "เชื่อมต่อสำเร็จ (มิติ ${dimensions})","masterPasswordMigrationPending": "กำลังย้ายรหัสผ่านหลัก",diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.jsonindex d4a2d6ac2a..a9f9a999a3 100644--- a/app/appearance/langs/tr.json+++ b/app/appearance/langs/tr.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Ortam değişkenleri",- "aiMcpEnvTip": "Bir JSON nesnesi girin; başvurulan gizli bilgiler bu programa sağlanır ve doğrudan girilen değerler düz metin olarak saklanır",- "aiMcpEnvInvalid": "Geçersiz ortam değişkeni biçimi; geçerli adlara ve dize değerlerine sahip bir JSON nesnesi girin",+ "aiMcpEnvTip": "Başvurulan gizli bilgiler bu programa sağlanır ve doğrudan girilen değerler düz metin olarak saklanır",+ "aiMcpEnvInvalid": "Geçersiz ortam değişkenleri; boş, yinelenen veya geçersiz adları kontrol edin","aiMcpInheritEnv": "Ortam değişkenlerini devral","aiMcpInheritEnvTip": "Bu MCP hizmetine aktarılabilecek ortam değişkeni adlarını seçin; değerler hizmet başlatıldığında okunur","aiMcpEnvUnavailable": "Bu çalıştırmada kullanılamıyor",@@ -326,8 +326,8 @@"agentRetrying": "Yeniden deneniyor (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Akış boşta kalma zaman aşımı","agentStreamIdleTimeoutTip": "İstek durdurulmadan önce model çıktısı olmadan geçecek en uzun süre",- "aiMcpTrustToolAnnotations": "Araç ek açıklamalarına güven",- "aiMcpTrustToolAnnotationsTip": "Bu sunucunun salt okunur araç ek açıklamalarının işlem onayını atlamasına izin verir. Yalnızca güvenilir sunucular için etkinleştirin.",+ "aiMcpTrustToolAnnotations": "Salt okunur araç bildirimlerine güven",+ "aiMcpTrustToolAnnotationsTip": "Bu sunucunun araçların salt okunur olduğuna dair bildirimlerine güvenir ve onları onay almadan çalıştırır; yalnızca güvenilir sunucular için etkinleştirin","testConnectionFailMsg": "Bağlantı başarısız: ${msg}","testConnectionSuccessDimensions": "Bağlantı başarılı (boyutlar ${dimensions})","masterPasswordMigrationPending": "Ana parola geçişi devam ediyor",diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.jsonindex b38cad8c88..06c895017e 100644--- a/app/appearance/langs/uk.json+++ b/app/appearance/langs/uk.json@@ -1,7 +1,7 @@{"aiMcpEnv": "Змінні середовища",- "aiMcpEnvTip": "Введіть об'єкт JSON; указані секрети передаються цій програмі, а введені безпосередньо значення зберігаються як звичайний текст",- "aiMcpEnvInvalid": "Неправильний формат змінних середовища; введіть об'єкт JSON із допустимими назвами та рядковими значеннями",+ "aiMcpEnvTip": "Указані секрети передаються цій програмі, а введені безпосередньо значення зберігаються як звичайний текст",+ "aiMcpEnvInvalid": "Недопустимі змінні середовища; перевірте порожні, повторювані або недопустимі назви","aiMcpInheritEnv": "Успадковувати змінні середовища","aiMcpInheritEnvTip": "Виберіть назви змінних середовища, які можна передати цій службі MCP; значення зчитуються під час запуску служби","aiMcpEnvUnavailable": "Недоступно в цьому запуску",@@ -326,8 +326,8 @@"agentRetrying": "Повторна спроба (${attempt}/${maxRetries})...","agentStreamIdleTimeout": "Тайм-аут бездіяльності потоку","agentStreamIdleTimeoutTip": "Максимальний час без виводу моделі до зупинки запиту",- "aiMcpTrustToolAnnotations": "Довіряти анотаціям інструментів",- "aiMcpTrustToolAnnotationsTip": "Дозволяє анотаціям інструментів лише для читання з цього сервера пропускати підтвердження операцій. Вмикайте лише для довірених серверів.",+ "aiMcpTrustToolAnnotations": "Довіряти заявам про інструменти лише для читання",+ "aiMcpTrustToolAnnotationsTip": "Довіряє заявам цього сервера про те, що інструменти доступні лише для читання, і запускає їх без підтвердження; вмикайте лише для довірених серверів","testConnectionFailMsg": "Помилка підключення: ${msg}","testConnectionSuccessDimensions": "Підключення успішне (вимірів: ${dimensions})","masterPasswordMigrationPending": "Триває міграція майстер-пароля",diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.jsonindex 9bfe525d0e..e8fb270276 100644--- a/app/appearance/langs/zh-CN.json+++ b/app/appearance/langs/zh-CN.json@@ -1,7 +1,7 @@{"aiMcpEnv": "环境变量",- "aiMcpEnvTip": "填写 JSON 对象;引用的密钥会提供给该程序,直接填写的值将以明文存储",- "aiMcpEnvInvalid": "环境变量格式无效,请填写名称有效且值为字符串的 JSON 对象",+ "aiMcpEnvTip": "引用的密钥会提供给该程序,直接填写的值将以明文存储",+ "aiMcpEnvInvalid": "环境变量无效,请检查名称是否为空、重复或包含非法字符","aiMcpInheritEnv": "继承环境变量","aiMcpInheritEnvTip": "选择允许传递给该 MCP 服务的环境变量名称,服务启动时读取变量值","aiMcpEnvUnavailable": "本次运行不可用",@@ -326,8 +326,8 @@"agentRetrying": "正在重试(${attempt}/${maxRetries})...","agentStreamIdleTimeout": "流空闲超时时间","agentStreamIdleTimeoutTip": "模型持续无输出多久后停止本次请求",- "aiMcpTrustToolAnnotations": "信任工具注解",- "aiMcpTrustToolAnnotationsTip": "允许此服务的只读工具注解跳过操作确认。仅对可信服务启用。",+ "aiMcpTrustToolAnnotations": "信任只读工具声明",+ "aiMcpTrustToolAnnotationsTip": "信任此服务对工具“只读”的声明,只读工具执行时不再确认;仅对可信服务启用","testConnectionFailMsg": "连接失败:${msg}","testConnectionSuccessDimensions": "连接成功(维度 ${dimensions})","masterPasswordMigrationPending": "主密码迁移进行中",diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.jsonindex 21376cc7e5..991708feb5 100644--- a/app/appearance/langs/zh-TW.json+++ b/app/appearance/langs/zh-TW.json@@ -1,7 +1,7 @@{"aiMcpEnv": "環境變數",- "aiMcpEnvTip": "填寫 JSON 物件;引用的金鑰會提供給該程式,直接填寫的值將以明文儲存",- "aiMcpEnvInvalid": "環境變數格式無效,請填寫名稱有效且值為字串的 JSON 物件",+ "aiMcpEnvTip": "引用的金鑰會提供給該程式,直接填寫的值將以明文儲存",+ "aiMcpEnvInvalid": "環境變數無效,請檢查名稱是否為空、重複或包含無效字元","aiMcpInheritEnv": "繼承環境變數","aiMcpInheritEnvTip": "選擇允許傳遞給該 MCP 服務的環境變數名稱,服務啟動時讀取變數值","aiMcpEnvUnavailable": "本次執行不可用",@@ -326,8 +326,8 @@"agentRetrying": "正在重試(${attempt}/${maxRetries})...","agentStreamIdleTimeout": "串流閒置逾時時間","agentStreamIdleTimeoutTip": "模型持續無輸出多久後停止本次請求",- "aiMcpTrustToolAnnotations": "信任工具註解",- "aiMcpTrustToolAnnotationsTip": "允許此服務的唯讀工具註解略過操作確認。僅對可信服務啟用。",+ "aiMcpTrustToolAnnotations": "信任唯讀工具宣告",+ "aiMcpTrustToolAnnotationsTip": "信任此服務對工具「唯讀」的宣告,執行唯讀工具時不再確認;僅對可信服務啟用","testConnectionFailMsg": "連線失敗:${msg}","testConnectionSuccessDimensions": "連線成功(維度 ${dimensions})","masterPasswordMigrationPending": "主密碼遷移進行中",diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20230304000547-ibldj1z/20260804171004-aiagt03.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20230304000547-ibldj1z/20260804171004-aiagt03.syindex d1b98ec103..ce90fe81a8 100644--- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20230304000547-ibldj1z/20260804171004-aiagt03.sy+++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20230304000547-ibldj1z/20260804171004-aiagt03.sy@@ -6,7 +6,7 @@"id": "20260804171004-aiagt03","title": "AI Agent","type": "doc",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -726,7 +726,7 @@"HeadingLevel": 2,"Properties": {"id": "20260804170054-1c4wqjk",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -740,7 +740,7 @@"Type": "NodeParagraph","Properties": {"id": "20260804170055-xr887qs",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -796,12 +796,12 @@"Type": "NodeParagraph","Properties": {"id": "20260804170056-8tp1qi0",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{"Type": "NodeText",- "Data": "A stdio service inherits only the kernel environment variables selected by the user and reads their current values whenever it starts. Its environment JSON can also reference secrets and variables. Referencing a secret provides its plaintext value to the program and its child processes; directly entered values are stored in plaintext. HTTP services that require authorization guide you through OAuth. Store reusable secrets and parameters in "+ "Data": "A stdio service inherits only the kernel environment variables selected by the user and reads their current values whenever it starts. Its environment variable entries can also reference secrets and variables. Referencing a secret provides its plaintext value to the program and its child processes; directly entered values are stored in plaintext. HTTP services that require authorization guide you through OAuth. Store reusable secrets and parameters in "},{"Type": "NodeTextMark",diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20260804185002-secvr03.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20260804185002-secvr03.syindex 252aa0fd4c..99812453df 100644--- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20260804185002-secvr03.sy+++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20260804185002-secvr03.sy@@ -6,7 +6,7 @@"id": "20260804185002-secvr03","title": "Secrets and Variables","type": "doc",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{"ID": "20260804224101-secen01", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224101-secen01", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "Overview"}]},@@ -16,10 +16,10 @@{"ID": "20260804224105-secen05", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224105-secen05", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "Reference forms"}]},{"ID": "20260804224106-secen06", "Type": "NodeParagraph", "Properties": {"id": "20260804224106-secen06", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "Use the shorthand "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "$NAME"}, {"Type": "NodeText", "Data": " or "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "${NAME}"}, {"Type": "NodeText", "Data": ", or use the namespaced forms "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{secrets.NAME}}"}, {"Type": "NodeText", "Data": " and "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.NAME}}"}, {"Type": "NodeText", "Data": ". Namespaced forms are unambiguous and are recommended in shared configurations and skills."}]},{"ID": "20260804224107-secen07", "Type": "NodeParagraph", "Properties": {"id": "20260804224107-secen07", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "If a secret and variable have the same name, shorthand references resolve to the secret first where both stores are supported. Namespaced references select the intended store explicitly. If a name is not found, the placeholder remains unchanged so missing configuration is visible."}]},- {"ID": "20260804224108-secen08", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224108-secen08", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "Examples"}]},- {"ID": "20260804224109-secen09", "Type": "NodeParagraph", "Properties": {"id": "20260804224109-secen09", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "For example, after adding a secret named "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "API_TOKEN"}, {"Type": "NodeText", "Data": " and a variable named "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "WORKSPACE"}, {"Type": "NodeText", "Data": ", reference them in the HTTP headers or stdio environment variables of an agent MCP service as follows:"}]},+ {"ID": "20260804224108-secen08", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224108-secen08", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "Examples"}]},+ {"ID": "20260804224109-secen09", "Type": "NodeParagraph", "Properties": {"id": "20260804224109-secen09", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "For example, after adding a secret named "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "API_TOKEN"}, {"Type": "NodeText", "Data": " and a variable named "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "WORKSPACE"}, {"Type": "NodeText", "Data": ", reference them in the HTTP headers or stdio environment variables of an agent MCP service as follows:"}]},{"ID": "20260804224110-secen10", "Type": "NodeCodeBlock", "IsFencedCodeBlock": true, "CodeBlockFenceChar": 96, "CodeBlockFenceLen": 3, "CodeBlockOpenFence": "YGBg", "CodeBlockInfo": "anNvbg==", "CodeBlockCloseFence": "YGBg", "Properties": {"id": "20260804224110-secen10", "updated": "20260804230000"}, "Children": [{"Type": "NodeCodeBlockFenceOpenMarker", "Data": "```", "CodeBlockFenceLen": 3}, {"Type": "NodeCodeBlockFenceInfoMarker", "CodeBlockInfo": "anNvbg=="}, {"Type": "NodeCodeBlockCode", "Data": "{\n \"Authorization\": \"Bearer {{secrets.API_TOKEN}}\",\n \"X-Workspace\": \"{{vars.WORKSPACE}}\"\n}\n"}, {"Type": "NodeCodeBlockFenceCloseMarker", "Data": "```", "CodeBlockFenceLen": 3}]},- {"ID": "20260804224111-secen11", "Type": "NodeParagraph", "Properties": {"id": "20260804224111-secen11", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "A stdio MCP service inherits only the kernel environment variables selected by the user, and its environment JSON can use the references above. Referencing a secret provides its plaintext value to the program and its child processes. The agent's built-in HTTP request tool also resolves secrets and variables in URLs, HTTP headers, and request bodies. For example, a URL can be written as "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.API_BASE}}/v1/items"}, {"Type": "NodeText", "Data": ". Skill bodies and chat messages can use variables. Secret placeholders are not expanded in AI conversations; they are resolved only when a supported tool or MCP configuration sends the request."}]},+ {"ID": "20260804224111-secen11", "Type": "NodeParagraph", "Properties": {"id": "20260804224111-secen11", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "A stdio MCP service inherits only the kernel environment variables selected by the user, and its environment variable entries can use the references above. Referencing a secret provides its plaintext value to the program and its child processes. The agent's built-in HTTP request tool also resolves secrets and variables in URLs, HTTP headers, and request bodies. For example, a URL can be written as "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.API_BASE}}/v1/items"}, {"Type": "NodeText", "Data": ". Skill bodies and chat messages can use variables. Secret placeholders are not expanded in AI conversations; they are resolved only when a supported tool or MCP configuration sends the request."}]},{"ID": "20260804224112-secen12", "Type": "NodeParagraph", "Properties": {"id": "20260804224112-secen12", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "Plugins can also read or resolve secrets and variables through APIs. Verify a plugin's source and permissions before installation because a plugin with secret access can obtain plaintext values at runtime."}]},{"ID": "20260804224113-secen13", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224113-secen13", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "Security recommendations"}]},{"ID": "20260804224114-secen14", "Type": "NodeParagraph", "Properties": {"id": "20260804224114-secen14", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "Do not store passwords, access tokens, or private keys as variables, and do not write sensitive values directly in chat messages, skill bodies, or ordinary configuration. After deleting or replacing a secret, review the skills, MCP services, and plugin configurations that use it. For how the agent uses these settings, see "}, {"Type": "NodeTextMark", "TextMarkType": "block-ref", "TextMarkBlockRefID": "20260804171004-aiagt03", "TextMarkBlockRefSubtype": "s", "TextMarkTextContent": "AI Agent"}, {"Type": "NodeText", "Data": "."}]}diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20230303235619-ex5l63e/20260804171000-aiagt01.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20230303235619-ex5l63e/20260804171000-aiagt01.syindex 75cc2e4ccd..958f17b593 100644--- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20230303235619-ex5l63e/20260804171000-aiagt01.sy+++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20230303235619-ex5l63e/20260804171000-aiagt01.sy@@ -6,7 +6,7 @@"id": "20260804171000-aiagt01","title": "AI 智能体","type": "doc",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -726,7 +726,7 @@"HeadingLevel": 2,"Properties": {"id": "20260804170054-w5eqebc",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -740,7 +740,7 @@"Type": "NodeParagraph","Properties": {"id": "20260804170055-qbwm9vb",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -796,12 +796,12 @@"Type": "NodeParagraph","Properties": {"id": "20260804170056-3aqvrqh",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{"Type": "NodeText",- "Data": "stdio 服务只会继承用户勾选的内核环境变量,并在每次启动时读取当前值;还可以在环境变量 JSON 中引用密钥和变量。引用密钥会将其明文提供给该程序及其子进程,直接填写的值会以明文存储。需要授权的 HTTP 服务会引导完成 OAuth 授权。密钥和可复用参数可以在 "+ "Data": "stdio 服务只会继承用户勾选的内核环境变量,并在每次启动时读取当前值;还可以在环境变量条目中引用密钥和变量。引用密钥会将其明文提供给该程序及其子进程,直接填写的值会以明文存储。需要授权的 HTTP 服务会引导完成 OAuth 授权。密钥和可复用参数可以在 "},{"Type": "NodeTextMark",diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20260804185000-secvr01.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20260804185000-secvr01.syindex 15e6ad580d..34defa5f5a 100644--- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20260804185000-secvr01.sy+++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20260804185000-secvr01.sy@@ -6,7 +6,7 @@"id": "20260804185000-secvr01","title": "密钥和变量","type": "doc",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{"ID": "20260804224001-seccn01", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224001-seccn01", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "概述"}]},@@ -16,10 +16,10 @@{"ID": "20260804224005-seccn05", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224005-seccn05", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "引用方式"}]},{"ID": "20260804224006-seccn06", "Type": "NodeParagraph", "Properties": {"id": "20260804224006-seccn06", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "可以使用简写 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "$NAME"}, {"Type": "NodeText", "Data": " 或 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "${NAME}"}, {"Type": "NodeText", "Data": ",也可以使用带命名空间的 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{secrets.NAME}}"}, {"Type": "NodeText", "Data": " 和 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.NAME}}"}, {"Type": "NodeText", "Data": "。带命名空间的写法含义更明确,适合在共享配置和 Skill 中使用。"}]},{"ID": "20260804224007-seccn07", "Type": "NodeParagraph", "Properties": {"id": "20260804224007-seccn07", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "如果密钥和变量存在相同名称,在同时支持两者的引用位置使用简写时会优先取密钥;使用带命名空间的写法可以明确指定。找不到对应名称时,占位符会保留原文,便于发现尚未配置的项目。"}]},- {"ID": "20260804224008-seccn08", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224008-seccn08", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "使用示例"}]},- {"ID": "20260804224009-seccn09", "Type": "NodeParagraph", "Properties": {"id": "20260804224009-seccn09", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "例如,添加名为 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "API_TOKEN"}, {"Type": "NodeText", "Data": " 的密钥和名为 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "WORKSPACE"}, {"Type": "NodeText", "Data": " 的变量后,可以在智能体 MCP 服务的 HTTP 标头或 stdio 环境变量中这样引用:"}]},+ {"ID": "20260804224008-seccn08", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224008-seccn08", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "使用示例"}]},+ {"ID": "20260804224009-seccn09", "Type": "NodeParagraph", "Properties": {"id": "20260804224009-seccn09", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "例如,添加名为 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "API_TOKEN"}, {"Type": "NodeText", "Data": " 的密钥和名为 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "WORKSPACE"}, {"Type": "NodeText", "Data": " 的变量后,可以在智能体 MCP 服务的 HTTP 标头或 stdio 环境变量中这样引用:"}]},{"ID": "20260804224010-seccn10", "Type": "NodeCodeBlock", "IsFencedCodeBlock": true, "CodeBlockFenceChar": 96, "CodeBlockFenceLen": 3, "CodeBlockOpenFence": "YGBg", "CodeBlockInfo": "anNvbg==", "CodeBlockCloseFence": "YGBg", "Properties": {"id": "20260804224010-seccn10", "updated": "20260804230000"}, "Children": [{"Type": "NodeCodeBlockFenceOpenMarker", "Data": "```", "CodeBlockFenceLen": 3}, {"Type": "NodeCodeBlockFenceInfoMarker", "CodeBlockInfo": "anNvbg=="}, {"Type": "NodeCodeBlockCode", "Data": "{\n \"Authorization\": \"Bearer {{secrets.API_TOKEN}}\",\n \"X-Workspace\": \"{{vars.WORKSPACE}}\"\n}\n"}, {"Type": "NodeCodeBlockFenceCloseMarker", "Data": "```", "CodeBlockFenceLen": 3}]},- {"ID": "20260804224011-seccn11", "Type": "NodeParagraph", "Properties": {"id": "20260804224011-seccn11", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "stdio MCP 服务只会继承用户勾选的内核环境变量,其环境变量 JSON 也可以使用上述引用;引用密钥会将其明文提供给该程序及其子进程。智能体内置 HTTP 请求工具也会在网址、HTTP 标头和请求正文中替换密钥与变量,例如可以将网址写为 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.API_BASE}}/v1/items"}, {"Type": "NodeText", "Data": "。Skill 正文和对话消息可以使用变量;密钥占位符不会在 AI 对话中展开,只会在支持密钥的工具或 MCP 配置真正发起请求时替换。"}]},+ {"ID": "20260804224011-seccn11", "Type": "NodeParagraph", "Properties": {"id": "20260804224011-seccn11", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "stdio MCP 服务只会继承用户勾选的内核环境变量,其环境变量条目也可以使用上述引用;引用密钥会将其明文提供给该程序及其子进程。智能体内置 HTTP 请求工具也会在网址、HTTP 标头和请求正文中替换密钥与变量,例如可以将网址写为 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.API_BASE}}/v1/items"}, {"Type": "NodeText", "Data": "。Skill 正文和对话消息可以使用变量;密钥占位符不会在 AI 对话中展开,只会在支持密钥的工具或 MCP 配置真正发起请求时替换。"}]},{"ID": "20260804224012-seccn12", "Type": "NodeParagraph", "Properties": {"id": "20260804224012-seccn12", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "插件也可以通过接口读取或解析密钥和变量。安装插件前应确认其来源和权限,因为能够访问密钥的插件可以取得运行时明文。"}]},{"ID": "20260804224013-seccn13", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224013-seccn13", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "安全建议"}]},{"ID": "20260804224014-seccn14", "Type": "NodeParagraph", "Properties": {"id": "20260804224014-seccn14", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "不要将密码、访问 token 或私钥保存为变量,也不要在对话消息、Skill 正文或普通配置中直接写入敏感值。删除或更换密钥后,应同时检查使用它的 Skill、MCP 服务和插件配置。有关智能体使用这些配置的方式,请参阅 "}, {"Type": "NodeTextMark", "TextMarkType": "block-ref", "TextMarkBlockRefID": "20260804171000-aiagt01", "TextMarkBlockRefSubtype": "s", "TextMarkTextContent": "AI 智能体"}, {"Type": "NodeText", "Data": "。"}]}diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20230304000829-9jwu3po/20260804171002-aiagt02.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20230304000829-9jwu3po/20260804171002-aiagt02.syindex 273bd5bf52..23779a3ba9 100644--- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20230304000829-9jwu3po/20260804171002-aiagt02.sy+++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20230304000829-9jwu3po/20260804171002-aiagt02.sy@@ -6,7 +6,7 @@"id": "20260804171002-aiagt02","title": "AI 智能體","type": "doc",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -726,7 +726,7 @@"HeadingLevel": 2,"Properties": {"id": "20260804170054-vppxnqj",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -740,7 +740,7 @@"Type": "NodeParagraph","Properties": {"id": "20260804170055-yibcbj8",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -796,12 +796,12 @@"Type": "NodeParagraph","Properties": {"id": "20260804170056-84olaaf",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{"Type": "NodeText",- "Data": "stdio 服務只會繼承使用者勾選的核心環境變數,並在每次啟動時讀取目前值;還可以在環境變數 JSON 中引用金鑰和變數。引用金鑰會將其明文提供給該程式及其子程序,直接填寫的值會以明文儲存。需要授權的 HTTP 服務會引導完成 OAuth 授權。金鑰和可重複使用的參數可以在 "+ "Data": "stdio 服務只會繼承使用者勾選的核心環境變數,並在每次啟動時讀取目前值;還可以在環境變數項目中引用金鑰和變數。引用金鑰會將其明文提供給該程式及其子程序,直接填寫的值會以明文儲存。需要授權的 HTTP 服務會引導完成 OAuth 授權。金鑰和可重複使用的參數可以在 "},{"Type": "NodeTextMark",diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20260804185001-secvr02.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20260804185001-secvr02.syindex 3d2c7280a9..03c8fd400f 100644--- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20260804185001-secvr02.sy+++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20260804185001-secvr02.sy@@ -6,7 +6,7 @@"id": "20260804185001-secvr02","title": "金鑰和變數","type": "doc",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{"ID": "20260804224201-sectw01", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224201-sectw01", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "概述"}]},@@ -16,10 +16,10 @@{"ID": "20260804224205-sectw05", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224205-sectw05", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "引用方式"}]},{"ID": "20260804224206-sectw06", "Type": "NodeParagraph", "Properties": {"id": "20260804224206-sectw06", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "可以使用簡寫 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "$NAME"}, {"Type": "NodeText", "Data": " 或 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "${NAME}"}, {"Type": "NodeText", "Data": ",也可以使用帶命名空間的 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{secrets.NAME}}"}, {"Type": "NodeText", "Data": " 和 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.NAME}}"}, {"Type": "NodeText", "Data": "。帶命名空間的寫法含義更明確,適合在共享設定和 Skill 中使用。"}]},{"ID": "20260804224207-sectw07", "Type": "NodeParagraph", "Properties": {"id": "20260804224207-sectw07", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "如果金鑰和變數存在相同名稱,在同時支援兩者的引用位置使用簡寫時會優先取得金鑰;使用帶命名空間的寫法可以明確指定。找不到對應名稱時,預留位置會保留原文,便於發現尚未設定的項目。"}]},- {"ID": "20260804224208-sectw08", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224208-sectw08", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "使用範例"}]},- {"ID": "20260804224209-sectw09", "Type": "NodeParagraph", "Properties": {"id": "20260804224209-sectw09", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "例如,新增名為 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "API_TOKEN"}, {"Type": "NodeText", "Data": " 的金鑰和名為 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "WORKSPACE"}, {"Type": "NodeText", "Data": " 的變數後,可以在智能體 MCP 服務的 HTTP 標頭或 stdio 環境變數中這樣引用:"}]},+ {"ID": "20260804224208-sectw08", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224208-sectw08", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "使用範例"}]},+ {"ID": "20260804224209-sectw09", "Type": "NodeParagraph", "Properties": {"id": "20260804224209-sectw09", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "例如,新增名為 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "API_TOKEN"}, {"Type": "NodeText", "Data": " 的金鑰和名為 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "WORKSPACE"}, {"Type": "NodeText", "Data": " 的變數後,可以在智能體 MCP 服務的 HTTP 標頭或 stdio 環境變數中這樣引用:"}]},{"ID": "20260804224210-sectw10", "Type": "NodeCodeBlock", "IsFencedCodeBlock": true, "CodeBlockFenceChar": 96, "CodeBlockFenceLen": 3, "CodeBlockOpenFence": "YGBg", "CodeBlockInfo": "anNvbg==", "CodeBlockCloseFence": "YGBg", "Properties": {"id": "20260804224210-sectw10", "updated": "20260804230000"}, "Children": [{"Type": "NodeCodeBlockFenceOpenMarker", "Data": "```", "CodeBlockFenceLen": 3}, {"Type": "NodeCodeBlockFenceInfoMarker", "CodeBlockInfo": "anNvbg=="}, {"Type": "NodeCodeBlockCode", "Data": "{\n \"Authorization\": \"Bearer {{secrets.API_TOKEN}}\",\n \"X-Workspace\": \"{{vars.WORKSPACE}}\"\n}\n"}, {"Type": "NodeCodeBlockFenceCloseMarker", "Data": "```", "CodeBlockFenceLen": 3}]},- {"ID": "20260804224211-sectw11", "Type": "NodeParagraph", "Properties": {"id": "20260804224211-sectw11", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "stdio MCP 服務只會繼承使用者勾選的核心環境變數,其環境變數 JSON 也可以使用上述引用;引用金鑰會將其明文提供給該程式及其子程序。智能體內建 HTTP 請求工具也會在網址、HTTP 標頭和請求本文中替換金鑰與變數,例如可以將網址寫為 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.API_BASE}}/v1/items"}, {"Type": "NodeText", "Data": "。Skill 本文和對話訊息可以使用變數;金鑰預留位置不會在 AI 對話中展開,只會在支援金鑰的工具或 MCP 設定真正發出請求時替換。"}]},+ {"ID": "20260804224211-sectw11", "Type": "NodeParagraph", "Properties": {"id": "20260804224211-sectw11", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "stdio MCP 服務只會繼承使用者勾選的核心環境變數,其環境變數項目也可以使用上述引用;引用金鑰會將其明文提供給該程式及其子程序。智能體內建 HTTP 請求工具也會在網址、HTTP 標頭和請求本文中替換金鑰與變數,例如可以將網址寫為 "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.API_BASE}}/v1/items"}, {"Type": "NodeText", "Data": "。Skill 本文和對話訊息可以使用變數;金鑰預留位置不會在 AI 對話中展開,只會在支援金鑰的工具或 MCP 設定真正發出請求時替換。"}]},{"ID": "20260804224212-sectw12", "Type": "NodeParagraph", "Properties": {"id": "20260804224212-sectw12", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "外掛也可以透過介面讀取或解析金鑰和變數。安裝外掛前應確認其來源和權限,因為能夠存取金鑰的外掛可以取得執行時期明文。"}]},{"ID": "20260804224213-sectw13", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224213-sectw13", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "安全建議"}]},{"ID": "20260804224214-sectw14", "Type": "NodeParagraph", "Properties": {"id": "20260804224214-sectw14", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "不要將密碼、存取 token 或私密金鑰儲存為變數,也不要在對話訊息、Skill 本文或一般設定中直接寫入敏感值。刪除或更換金鑰後,應同時檢查使用它的 Skill、MCP 服務和外掛設定。有關智能體使用這些設定的方式,請參閱 "}, {"Type": "NodeTextMark", "TextMarkType": "block-ref", "TextMarkBlockRefID": "20260804171002-aiagt02", "TextMarkBlockRefSubtype": "s", "TextMarkTextContent": "AI 智能體"}, {"Type": "NodeText", "Data": "。"}]}diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-ei5t6tt/20260804171006-aiagt04.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-ei5t6tt/20260804171006-aiagt04.syindex d9a0d94727..db7841e3d4 100644--- a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-ei5t6tt/20260804171006-aiagt04.sy+++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-ei5t6tt/20260804171006-aiagt04.sy@@ -6,7 +6,7 @@"id": "20260804171006-aiagt04","title": "AI エージェント","type": "doc",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -714,7 +714,7 @@"HeadingLevel": 2,"Properties": {"id": "20260804170054-qfoixg9",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -728,7 +728,7 @@"Type": "NodeParagraph","Properties": {"id": "20260804170055-a7wg3um",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{@@ -784,12 +784,12 @@"Type": "NodeParagraph","Properties": {"id": "20260804170056-7d7fak1",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{"Type": "NodeText",- "Data": "stdio サービスは、ユーザーが選択したカーネル環境変数だけを継承し、起動するたびに現在の値を読み取ります。環境変数の JSON ではシークレットと変数も参照できます。シークレットを参照すると、その平文がこのプログラムと子プロセスに渡され、直接入力した値は平文で保存されます。認証が必要な HTTP サービスでは OAuth 認証が案内されます。再利用するシークレットとパラメーターは "+ "Data": "stdio サービスは、ユーザーが選択したカーネル環境変数だけを継承し、起動するたびに現在の値を読み取ります。環境変数の各項目ではシークレットと変数も参照できます。シークレットを参照すると、その平文がこのプログラムと子プロセスに渡され、直接入力した値は平文で保存されます。認証が必要な HTTP サービスでは OAuth 認証が案内されます。再利用するシークレットとパラメーターは "},{"Type": "NodeTextMark",diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20260804185003-secvr04.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20260804185003-secvr04.syindex 658c0bb93b..efdd215731 100644--- a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20260804185003-secvr04.sy+++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20260804185003-secvr04.sy@@ -6,7 +6,7 @@"id": "20260804185003-secvr04","title": "シークレットと変数","type": "doc",- "updated": "20260812160000"+ "updated": "20260812170000"},"Children": [{"ID": "20260804224301-secja01", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224301-secja01", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "概要"}]},@@ -16,10 +16,10 @@{"ID": "20260804224305-secja05", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224305-secja05", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "参照形式"}]},{"ID": "20260804224306-secja06", "Type": "NodeParagraph", "Properties": {"id": "20260804224306-secja06", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "短縮形式の "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "$NAME"}, {"Type": "NodeText", "Data": " または "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "${NAME}"}, {"Type": "NodeText", "Data": " を使用できるほか、名前空間付きの "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{secrets.NAME}}"}, {"Type": "NodeText", "Data": " と "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.NAME}}"}, {"Type": "NodeText", "Data": " も使用できます。名前空間付きの形式は意味が明確なため、共有設定やスキルでの使用に適しています。"}]},{"ID": "20260804224307-secja07", "Type": "NodeParagraph", "Properties": {"id": "20260804224307-secja07", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "シークレットと変数に同じ名前がある場合、両方をサポートする参照箇所では短縮形式でシークレットが優先されます。名前空間付きの形式では保存先を明示できます。名前が見つからない場合はプレースホルダーがそのまま残るため、未設定の項目を確認できます。"}]},- {"ID": "20260804224308-secja08", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224308-secja08", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "使用例"}]},- {"ID": "20260804224309-secja09", "Type": "NodeParagraph", "Properties": {"id": "20260804224309-secja09", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "たとえば、"}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "API_TOKEN"}, {"Type": "NodeText", "Data": " というシークレットと "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "WORKSPACE"}, {"Type": "NodeText", "Data": " という変数を追加すると、エージェント MCP サービスの HTTP ヘッダーまたは stdio 環境変数で次のように参照できます。"}]},+ {"ID": "20260804224308-secja08", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224308-secja08", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "使用例"}]},+ {"ID": "20260804224309-secja09", "Type": "NodeParagraph", "Properties": {"id": "20260804224309-secja09", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "たとえば、"}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "API_TOKEN"}, {"Type": "NodeText", "Data": " というシークレットと "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "WORKSPACE"}, {"Type": "NodeText", "Data": " という変数を追加すると、エージェント MCP サービスの HTTP ヘッダーまたは stdio 環境変数で次のように参照できます。"}]},{"ID": "20260804224310-secja10", "Type": "NodeCodeBlock", "IsFencedCodeBlock": true, "CodeBlockFenceChar": 96, "CodeBlockFenceLen": 3, "CodeBlockOpenFence": "YGBg", "CodeBlockInfo": "anNvbg==", "CodeBlockCloseFence": "YGBg", "Properties": {"id": "20260804224310-secja10", "updated": "20260804230000"}, "Children": [{"Type": "NodeCodeBlockFenceOpenMarker", "Data": "```", "CodeBlockFenceLen": 3}, {"Type": "NodeCodeBlockFenceInfoMarker", "CodeBlockInfo": "anNvbg=="}, {"Type": "NodeCodeBlockCode", "Data": "{\n \"Authorization\": \"Bearer {{secrets.API_TOKEN}}\",\n \"X-Workspace\": \"{{vars.WORKSPACE}}\"\n}\n"}, {"Type": "NodeCodeBlockFenceCloseMarker", "Data": "```", "CodeBlockFenceLen": 3}]},- {"ID": "20260804224311-secja11", "Type": "NodeParagraph", "Properties": {"id": "20260804224311-secja11", "updated": "20260812160000"}, "Children": [{"Type": "NodeText", "Data": "stdio MCP サービスは、ユーザーが選択したカーネル環境変数だけを継承し、環境変数の JSON でも上記の参照を使用できます。シークレットを参照すると、その平文がこのプログラムと子プロセスに渡されます。エージェントの組み込み HTTP リクエストツールも、URL、HTTP ヘッダー、リクエスト本文のシークレットと変数を置換します。たとえば、URL を "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.API_BASE}}/v1/items"}, {"Type": "NodeText", "Data": " と記述できます。スキル本文と会話メッセージでは変数を使用できます。シークレットのプレースホルダーは AI の会話内では展開されず、対応するツールまたは MCP 設定が実際にリクエストを送信するときだけ置換されます。"}]},+ {"ID": "20260804224311-secja11", "Type": "NodeParagraph", "Properties": {"id": "20260804224311-secja11", "updated": "20260812170000"}, "Children": [{"Type": "NodeText", "Data": "stdio MCP サービスは、ユーザーが選択したカーネル環境変数だけを継承し、環境変数の各項目でも上記の参照を使用できます。シークレットを参照すると、その平文がこのプログラムと子プロセスに渡されます。エージェントの組み込み HTTP リクエストツールも、URL、HTTP ヘッダー、リクエスト本文のシークレットと変数を置換します。たとえば、URL を "}, {"Type": "NodeTextMark", "TextMarkType": "code", "TextMarkTextContent": "{{vars.API_BASE}}/v1/items"}, {"Type": "NodeText", "Data": " と記述できます。スキル本文と会話メッセージでは変数を使用できます。シークレットのプレースホルダーは AI の会話内では展開されず、対応するツールまたは MCP 設定が実際にリクエストを送信するときだけ置換されます。"}]},{"ID": "20260804224312-secja12", "Type": "NodeParagraph", "Properties": {"id": "20260804224312-secja12", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "プラグインも API を通じてシークレットと変数を取得または展開できます。シークレットへアクセスできるプラグインは実行時の平文を取得できるため、インストール前に提供元と権限を確認してください。"}]},{"ID": "20260804224313-secja13", "Type": "NodeHeading", "HeadingLevel": 2, "Properties": {"id": "20260804224313-secja13", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "セキュリティに関する推奨事項"}]},{"ID": "20260804224314-secja14", "Type": "NodeParagraph", "Properties": {"id": "20260804224314-secja14", "updated": "20260804230000"}, "Children": [{"Type": "NodeText", "Data": "パスワード、アクセストークン、秘密鍵を変数として保存したり、会話メッセージ、スキル本文、通常の設定に機密値を直接記述したりしないでください。シークレットを削除または変更した後は、それを使用するスキル、MCP サービス、プラグイン設定も確認してください。エージェントでの使用方法については、"}, {"Type": "NodeTextMark", "TextMarkType": "block-ref", "TextMarkBlockRefID": "20260804171006-aiagt04", "TextMarkBlockRefSubtype": "s", "TextMarkTextContent": "AI エージェント"}, {"Type": "NodeText", "Data": " を参照してください。"}]}diff --git a/app/src/config/tabs/ai/aiUi.ts b/app/src/config/tabs/ai/aiUi.tsindex 5332fe1862..3cc7ba5fb7 100644--- a/app/src/config/tabs/ai/aiUi.ts+++ b/app/src/config/tabs/ai/aiUi.ts@@ -657,9 +657,10 @@ const renderEnvironmentVariableOptions = (availableNames: string[], selectedName: ""): `<span class="b3-list-item__meta">${window.siyuan.languages.aiMcpEnvUnavailable}</span>`;return `<label class="b3-list-item b3-list-item--narrow" data-mcp-env-option="${Lute.EscapeHTMLStr(name)}">- <input class="b3-switch" type="checkbox" data-mcp-inherit-env="${Lute.EscapeHTMLStr(name)}"${selected.has(key) ? " checked" : ""}><span class="b3-list-item__text">${Lute.EscapeHTMLStr(name)}</span>${status}+ <span class="fn__space--small"></span>+ <input class="b3-switch" type="checkbox" aria-label="${Lute.EscapeHTMLStr(name)}" data-mcp-inherit-env="${Lute.EscapeHTMLStr(name)}"${selected.has(key) ? " checked" : ""}></label>`;}).join("");};@@ -681,16 +682,44 @@ const parseStringRecord = (value: string, invalidMessage: string): Record<stringreturn null;};-const validateEnvironmentRecord = (env: Record<string, string>) => {+const renderMcpEnvironmentRow = (name = "", value = "") => `<div data-mcp-env-row>+ <div class="fn__flex">+ <input class="b3-text-field fn__flex-1" data-mcp-env-name type="text" spellcheck="false" placeholder="NAME" value="${Lute.EscapeHTMLStr(name)}">+ <span class="fn__space"></span>+ <input class="b3-text-field fn__flex-1" data-mcp-env-value type="text" spellcheck="false" placeholder="{{secrets.NAME}}" value="${Lute.EscapeHTMLStr(value)}">+ <span class="fn__space--small"></span>+ <button class="block__icon block__icon--show block__icon--warning" data-type="deleteMcpEnvironmentVariable" type="button" aria-label="${window.siyuan.languages.delete}">+ <svg><use xlink:href="#iconTrashcan"></use></svg>+ </button>+ </div>+ <div class="fn__hr--small"></div>+</div>`;++const renderMcpEnvironmentRows = (env: Record<string, string>) => {+ const entries = Object.entries(env);+ return (entries.length === 0 ? [["", ""]] : entries)+ .map(([name, value]) => renderMcpEnvironmentRow(name, value)).join("");+};++const readMcpEnvironmentRows = (dialogEl: HTMLElement): Record<string, string> | null => {+ const env: Record<string, string> = {};const names = new Set<string>();- for (const [name, value] of Object.entries(env)) {+ const rows = dialogEl.querySelectorAll<HTMLElement>("[data-mcp-env-row]");+ for (const row of rows) {+ const name = row.querySelector<HTMLInputElement>("[data-mcp-env-name]").value.trim();+ const value = row.querySelector<HTMLInputElement>("[data-mcp-env-value]").value;+ if (!name && !value) {+ continue;+ }const normalized = normalizeEnvironmentName(name);if (!name || name.includes("=") || name.includes("\0") || value.includes("\0") || names.has(normalized)) {- return false;+ showMessage(window.siyuan.languages.aiMcpEnvInvalid);+ return null;}names.add(normalized);+ env[name] = value;}- return true;+ return env;};const openMcpServerDialogWithEnvironment = (root: HTMLElement, serverName: string | null,@@ -717,9 +746,6 @@ const openMcpServerDialogWithEnvironment = (root: HTMLElement, serverName: strinconst mcpTypeHidden = (fieldType: string) => initialServer.type !== fieldType ? " fn__none" : "";const argsText = (initialServer.args ?? []).join("\n");const selectedEnvironmentNames = isNew ? environment.defaults : (initialServer.inheritEnv ?? []);- const envText = Object.keys(initialServer.env ?? {}).length === 0- ? ""- : JSON.stringify(initialServer.env, null, 2);const headersText = Object.keys(initialServer.headers ?? {}).length === 0? "": JSON.stringify(initialServer.headers, null, 2);@@ -769,7 +795,13 @@ const openMcpServerDialogWithEnvironment = (root: HTMLElement, serverName: strin<div class="config-name">${window.siyuan.languages.aiMcpEnv}</div><div class="b3-label__text">${window.siyuan.languages.aiMcpEnvTip}</div><div class="fn__hr"></div>- <textarea class="b3-text-field fn__block" id="aiMcpServerEnv" rows="4" style="resize: vertical;" placeholder='{"API_KEY":"{{secrets.API_KEY}}"}'>${Lute.EscapeHTMLStr(envText)}</textarea>+ <div id="aiMcpServerEnv">+ ${renderMcpEnvironmentRows(initialServer.env ?? {})}+ </div>+ <button class="b3-button b3-button--outline fn__flex-center" data-type="addMcpEnvironmentVariable" type="button">+ <svg class="b3-button__icon"><use xlink:href="#iconAdd"></use></svg>+ ${window.siyuan.languages.addVariable}+ </button></div><div class="b3-label b3-label--inner${mcpTypeHidden("http")}" data-mcp-type="http"><div class="config-name">URL</div>@@ -817,6 +849,15 @@ const openMcpServerDialogWithEnvironment = (root: HTMLElement, serverName: strinitem.classList.toggle("fn__none", !item.dataset.mcpEnvOption.toLowerCase().includes(keyword));});});+ dialog.element.querySelector("#aiMcpServerEnv").addEventListener("click", (event) => {+ const deleteButton = (event.target as HTMLElement).closest<HTMLElement>("[data-type=deleteMcpEnvironmentVariable]");+ if (deleteButton) {+ deleteButton.closest("[data-mcp-env-row]").remove();+ }+ });+ dialog.element.querySelector<HTMLElement>("[data-type=addMcpEnvironmentVariable]").addEventListener("click", () => {+ dialog.element.querySelector("#aiMcpServerEnv").insertAdjacentHTML("beforeend", renderMcpEnvironmentRow());+ });const btns = dialog.element.querySelectorAll(".b3-dialog__action .b3-button");btns[0].addEventListener("click", () => dialog.destroy());btns[1].addEventListener("click", () => {@@ -827,14 +868,8 @@ const openMcpServerDialogWithEnvironment = (root: HTMLElement, serverName: strinif (headers === null) {return;}- const env = parseStringRecord(- dialog.element.querySelector<HTMLTextAreaElement>("#aiMcpServerEnv").value,- window.siyuan.languages.aiMcpEnvInvalid,- );- if (env === null || !validateEnvironmentRecord(env)) {- if (env !== null) {- showMessage(window.siyuan.languages.aiMcpEnvInvalid);- }+ const env = readMcpEnvironmentRows(dialog.element);+ if (env === null) {return;}const nextServer: Config.IMCPServer = {