Skip to content

Commit e3ec79e

Browse files
authored
✨ feat: support klavis mcp connector (#10584)
* feat: support klavis mcp connector * feat: update klavis item & klavis call tools * feat: update the noraml klavis mcp (no need oauth) * fix: rollback test * fix: fixed test ci * feat: update the klavis select model & locals settings * fix: change the klavis id to klavis types * fix: delete the klavis into getGlobalConfig * fix: delete useless migrations * fix: improve the code * feat: update test & update the klavis const var * fix: change it to const * feat: use swr to replace useEffect
1 parent bde9bde commit e3ec79e

File tree

62 files changed

+3441
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+3441
-57
lines changed

.env.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,3 +403,13 @@ OPENAI_API_KEY=sk-xxxxxxxxx
403403

404404
# MCP tool call timeout (milliseconds)
405405
# MCP_TOOL_TIMEOUT=60000
406+
407+
# #######################################
408+
# ######### Klavis Service ##############
409+
# #######################################
410+
411+
# Klavis API Key for accessing Strata hosted MCP servers
412+
# Get your API key from: https://klavis.io
413+
# IMPORTANT: This key is stored server-side only and NEVER exposed to the client
414+
# When this key is set, Klavis integration will be automatically enabled
415+
# KLAVIS_API_KEY=your_klavis_api_key_here

locales/ar/setting.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,12 +775,37 @@
775775
"groupName": "الامتدادات المدمجة"
776776
},
777777
"disabled": "النموذج الحالي لا يدعم استدعاء الوظائف، ولا يمكن استخدام الإضافة",
778+
"klavis": {
779+
"addServer": "إضافة خادم",
780+
"authCompleted": "اكتملت المصادقة",
781+
"authFailed": "فشلت المصادقة",
782+
"authRequired": "المصادقة مطلوبة",
783+
"connected": "متصل",
784+
"error": "خطأ",
785+
"groupName": "أدوات Klavis",
786+
"manage": "إدارة Klavis",
787+
"manageTitle": "إدارة تكامل Klavis",
788+
"noServers": "لا توجد خوادم متصلة حاليًا",
789+
"notEnabled": "خدمة Klavis غير مفعّلة",
790+
"oauthRequired": "يرجى إكمال مصادقة OAuth في نافذة جديدة",
791+
"pendingAuth": "في انتظار المصادقة",
792+
"serverCreated": "تم إنشاء الخادم بنجاح",
793+
"serverCreatedFailed": "فشل في إنشاء الخادم",
794+
"serverRemoved": "تم حذف الخادم",
795+
"servers": "خوادم",
796+
"tools": "أدوات",
797+
"verifyAuth": "لقد أكملت المصادقة"
798+
},
778799
"plugins": {
779800
"enabled": "ممكّنة {{num}}",
780801
"groupName": "الإضافات",
781802
"noEnabled": "لا توجد إضافات ممكّنة حاليًا",
782803
"store": "متجر الإضافات"
783804
},
805+
"tabs": {
806+
"all": "الكل",
807+
"installed": "مفعّلة"
808+
},
784809
"title": "أدوات الامتداد"
785810
}
786811
}

locales/bg-BG/setting.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,12 +775,37 @@
775775
"groupName": "Вградени"
776776
},
777777
"disabled": "Текущият модел не поддържа извиквания на функции и не може да използва плъгина",
778+
"klavis": {
779+
"addServer": "Добавяне на сървър",
780+
"authCompleted": "Удостоверяването е завършено",
781+
"authFailed": "Удостоверяването не бе успешно",
782+
"authRequired": "Изисква се удостоверяване",
783+
"connected": "Свързан",
784+
"error": "Грешка",
785+
"groupName": "Инструменти на Klavis",
786+
"manage": "Управление на Klavis",
787+
"manageTitle": "Управление на интеграцията с Klavis",
788+
"noServers": "Няма свързани сървъри",
789+
"notEnabled": "Услугата Klavis не е активирана",
790+
"oauthRequired": "Моля, завършете OAuth удостоверяването в нов прозорец",
791+
"pendingAuth": "Очаква удостоверяване",
792+
"serverCreated": "Сървърът е създаден успешно",
793+
"serverCreatedFailed": "Създаването на сървъра не бе успешно",
794+
"serverRemoved": "Сървърът е изтрит",
795+
"servers": "сървъра",
796+
"tools": "инструмента",
797+
"verifyAuth": "Удостоверяването е завършено"
798+
},
778799
"plugins": {
779800
"enabled": "Активирани: {{num}}",
780801
"groupName": "Плъгини",
781802
"noEnabled": "Няма активирани плъгини",
782803
"store": "Магазин за плъгини"
783804
},
805+
"tabs": {
806+
"all": "Всички",
807+
"installed": "Активирани"
808+
},
784809
"title": "Инструменти за разширение"
785810
}
786811
}

locales/de-DE/setting.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,12 +775,37 @@
775775
"groupName": "Integriert"
776776
},
777777
"disabled": "Das aktuelle Modell unterstützt keine Funktionsaufrufe und kann keine Plugins verwenden",
778+
"klavis": {
779+
"addServer": "Server hinzufügen",
780+
"authCompleted": "Authentifizierung abgeschlossen",
781+
"authFailed": "Authentifizierung fehlgeschlagen",
782+
"authRequired": "Authentifizierung erforderlich",
783+
"connected": "Verbunden",
784+
"error": "Fehler",
785+
"groupName": "Klavis-Tools",
786+
"manage": "Klavis verwalten",
787+
"manageTitle": "Klavis-Integration verwalten",
788+
"noServers": "Keine verbundenen Server",
789+
"notEnabled": "Klavis-Dienst ist nicht aktiviert",
790+
"oauthRequired": "Bitte schließen Sie die OAuth-Authentifizierung in einem neuen Fenster ab",
791+
"pendingAuth": "Authentifizierung ausstehend",
792+
"serverCreated": "Server erfolgreich erstellt",
793+
"serverCreatedFailed": "Servererstellung fehlgeschlagen",
794+
"serverRemoved": "Server wurde entfernt",
795+
"servers": "Server",
796+
"tools": "Tools",
797+
"verifyAuth": "Ich habe die Authentifizierung abgeschlossen"
798+
},
778799
"plugins": {
779800
"enabled": "Aktiviert: {{num}}",
780801
"groupName": "Plugins",
781802
"noEnabled": "Keine Plugins aktiviert",
782803
"store": "Plugin-Store"
783804
},
805+
"tabs": {
806+
"all": "Alle",
807+
"installed": "Aktiviert"
808+
},
784809
"title": "Erweiterungswerkzeuge"
785810
}
786811
}

locales/en-US/setting.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,12 +775,37 @@
775775
"groupName": "Built-ins"
776776
},
777777
"disabled": "The current model does not support function calls and cannot use the plugin",
778+
"klavis": {
779+
"addServer": "Add Server",
780+
"authCompleted": "Authentication Completed",
781+
"authFailed": "Authentication Failed",
782+
"authRequired": "Authentication Required",
783+
"connected": "Connected",
784+
"error": "Error",
785+
"groupName": "Klavis Tools",
786+
"manage": "Manage Klavis",
787+
"manageTitle": "Manage Klavis Integration",
788+
"noServers": "No connected servers",
789+
"notEnabled": "Klavis service not enabled",
790+
"oauthRequired": "Please complete OAuth authentication in the new window",
791+
"pendingAuth": "Pending Authentication",
792+
"serverCreated": "Server created successfully",
793+
"serverCreatedFailed": "Failed to create server",
794+
"serverRemoved": "Server removed",
795+
"servers": "servers",
796+
"tools": "tools",
797+
"verifyAuth": "I have completed authentication"
798+
},
778799
"plugins": {
779800
"enabled": "Enabled: {{num}}",
780801
"groupName": "Plugins",
781802
"noEnabled": "No plugins enabled",
782803
"store": "Plugin Store"
783804
},
805+
"tabs": {
806+
"all": "All",
807+
"installed": "Enabled"
808+
},
784809
"title": "Extension Tools"
785810
}
786811
}

locales/es-ES/setting.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,12 +775,37 @@
775775
"groupName": "Incorporados"
776776
},
777777
"disabled": "El modelo actual no admite llamadas de función y no se puede utilizar el complemento",
778+
"klavis": {
779+
"addServer": "Agregar servidor",
780+
"authCompleted": "Autenticación completada",
781+
"authFailed": "Autenticación fallida",
782+
"authRequired": "Autenticación requerida",
783+
"connected": "Conectado",
784+
"error": "Error",
785+
"groupName": "Herramientas de Klavis",
786+
"manage": "Gestionar Klavis",
787+
"manageTitle": "Gestionar la integración de Klavis",
788+
"noServers": "No hay servidores conectados",
789+
"notEnabled": "El servicio de Klavis no está habilitado",
790+
"oauthRequired": "Por favor, completa la autenticación OAuth en una nueva ventana",
791+
"pendingAuth": "Autenticación pendiente",
792+
"serverCreated": "Servidor creado con éxito",
793+
"serverCreatedFailed": "Error al crear el servidor",
794+
"serverRemoved": "Servidor eliminado",
795+
"servers": "servidores",
796+
"tools": "herramientas",
797+
"verifyAuth": "He completado la autenticación"
798+
},
778799
"plugins": {
779800
"enabled": "Habilitados {{num}}",
780801
"groupName": "Complementos",
781802
"noEnabled": "No hay complementos habilitados por el momento",
782803
"store": "Tienda de complementos"
783804
},
805+
"tabs": {
806+
"all": "Todo",
807+
"installed": "Habilitado"
808+
},
784809
"title": "Herramientas de extensión"
785810
}
786811
}

locales/fa-IR/setting.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,12 +775,37 @@
775775
"groupName": "افزونه‌های داخلی"
776776
},
777777
"disabled": "مدل فعلی از فراخوانی توابع پشتیبانی نمی‌کند و نمی‌توان از افزونه‌ها استفاده کرد",
778+
"klavis": {
779+
"addServer": "افزودن سرور",
780+
"authCompleted": "احراز هویت با موفقیت انجام شد",
781+
"authFailed": "احراز هویت ناموفق بود",
782+
"authRequired": "احراز هویت لازم است",
783+
"connected": "متصل شد",
784+
"error": "خطا",
785+
"groupName": "ابزارهای Klavis",
786+
"manage": "مدیریت Klavis",
787+
"manageTitle": "مدیریت یکپارچه‌سازی Klavis",
788+
"noServers": "هیچ سرور متصلی وجود ندارد",
789+
"notEnabled": "سرویس Klavis فعال نیست",
790+
"oauthRequired": "لطفاً احراز هویت OAuth را در پنجره جدید کامل کنید",
791+
"pendingAuth": "در انتظار احراز هویت",
792+
"serverCreated": "سرور با موفقیت ایجاد شد",
793+
"serverCreatedFailed": "ایجاد سرور ناموفق بود",
794+
"serverRemoved": "سرور حذف شد",
795+
"servers": "سرور",
796+
"tools": "ابزار",
797+
"verifyAuth": "احراز هویت را کامل کرده‌ام"
798+
},
778799
"plugins": {
779800
"enabled": "{{num}} فعال شده است",
780801
"groupName": "افزونه‌های شخص ثالث",
781802
"noEnabled": "هیچ افزونه فعالی وجود ندارد",
782803
"store": "فروشگاه افزونه‌ها"
783804
},
805+
"tabs": {
806+
"all": "همه",
807+
"installed": "فعال شده"
808+
},
784809
"title": "افزونه‌های گسترش"
785810
}
786811
}

locales/fr-FR/setting.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,12 +775,37 @@
775775
"groupName": "Intégré"
776776
},
777777
"disabled": "Ce modèle ne prend pas en charge les appels de fonction et ne peut pas utiliser de plugins",
778+
"klavis": {
779+
"addServer": "Ajouter un serveur",
780+
"authCompleted": "Authentification terminée",
781+
"authFailed": "Échec de l'authentification",
782+
"authRequired": "Authentification requise",
783+
"connected": "Connecté",
784+
"error": "Erreur",
785+
"groupName": "Outils Klavis",
786+
"manage": "Gérer Klavis",
787+
"manageTitle": "Gérer l'intégration Klavis",
788+
"noServers": "Aucun serveur connecté pour le moment",
789+
"notEnabled": "Service Klavis non activé",
790+
"oauthRequired": "Veuillez compléter l'authentification OAuth dans la nouvelle fenêtre",
791+
"pendingAuth": "Authentification en attente",
792+
"serverCreated": "Serveur créé avec succès",
793+
"serverCreatedFailed": "Échec de la création du serveur",
794+
"serverRemoved": "Serveur supprimé",
795+
"servers": "serveurs",
796+
"tools": "outils",
797+
"verifyAuth": "J'ai terminé l'authentification"
798+
},
778799
"plugins": {
779800
"enabled": "Activé {{num}}",
780801
"groupName": "Plugins",
781802
"noEnabled": "Aucun plugin activé pour le moment",
782803
"store": "Boutique de plugins"
783804
},
805+
"tabs": {
806+
"all": "Tous",
807+
"installed": "Activé"
808+
},
784809
"title": "Outils supplémentaires"
785810
}
786811
}

locales/it-IT/setting.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,12 +775,37 @@
775775
"groupName": "Predefiniti"
776776
},
777777
"disabled": "Il modello attuale non supporta le chiamate di funzione e non è possibile utilizzare il plugin",
778+
"klavis": {
779+
"addServer": "Aggiungi server",
780+
"authCompleted": "Autenticazione completata",
781+
"authFailed": "Autenticazione fallita",
782+
"authRequired": "Autenticazione richiesta",
783+
"connected": "Connesso",
784+
"error": "Errore",
785+
"groupName": "Strumenti Klavis",
786+
"manage": "Gestisci Klavis",
787+
"manageTitle": "Gestisci integrazione Klavis",
788+
"noServers": "Nessun server connesso",
789+
"notEnabled": "Servizio Klavis non abilitato",
790+
"oauthRequired": "Completa l'autenticazione OAuth in una nuova finestra",
791+
"pendingAuth": "In attesa di autenticazione",
792+
"serverCreated": "Server creato con successo",
793+
"serverCreatedFailed": "Creazione del server non riuscita",
794+
"serverRemoved": "Server eliminato",
795+
"servers": "server",
796+
"tools": "strumenti",
797+
"verifyAuth": "Ho completato l'autenticazione"
798+
},
778799
"plugins": {
779800
"enabled": "Abilitato {{num}}",
780801
"groupName": "Plugin",
781802
"noEnabled": "Nessun plugin abilitato al momento",
782803
"store": "Negozio dei plugin"
783804
},
805+
"tabs": {
806+
"all": "Tutti",
807+
"installed": "Abilitati"
808+
},
784809
"title": "Strumenti aggiuntivi"
785810
}
786811
}

locales/ja-JP/setting.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,12 +775,37 @@
775775
"groupName": "組み込み"
776776
},
777777
"disabled": "現在のモデルは関数呼び出しをサポートしていません。プラグインを使用できません",
778+
"klavis": {
779+
"addServer": "サーバーを追加",
780+
"authCompleted": "認証完了",
781+
"authFailed": "認証に失敗しました",
782+
"authRequired": "認証が必要です",
783+
"connected": "接続済み",
784+
"error": "エラー",
785+
"groupName": "Klavis ツール",
786+
"manage": "Klavis を管理",
787+
"manageTitle": "Klavis 統合を管理",
788+
"noServers": "接続されているサーバーはありません",
789+
"notEnabled": "Klavis サービスは有効化されていません",
790+
"oauthRequired": "新しいウィンドウで OAuth 認証を完了してください",
791+
"pendingAuth": "認証待ち",
792+
"serverCreated": "サーバーが正常に作成されました",
793+
"serverCreatedFailed": "サーバーの作成に失敗しました",
794+
"serverRemoved": "サーバーが削除されました",
795+
"servers": "台のサーバー",
796+
"tools": "個のツール",
797+
"verifyAuth": "認証を完了しました"
798+
},
778799
"plugins": {
779800
"enabled": "{{num}} が有効",
780801
"groupName": "プラグイン",
781802
"noEnabled": "有効なプラグインはありません",
782803
"store": "プラグインストア"
783804
},
805+
"tabs": {
806+
"all": "すべて",
807+
"installed": "有効化済み"
808+
},
784809
"title": "拡張ツール"
785810
}
786811
}

0 commit comments

Comments
 (0)