@lobehub/chat 1.81.9 → 1.82.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/changelog/v1.json +9 -0
  3. package/locales/ar/plugin.json +33 -2
  4. package/locales/bg-BG/plugin.json +33 -2
  5. package/locales/de-DE/plugin.json +33 -2
  6. package/locales/en-US/plugin.json +33 -2
  7. package/locales/es-ES/plugin.json +33 -2
  8. package/locales/fa-IR/plugin.json +33 -2
  9. package/locales/fr-FR/plugin.json +33 -2
  10. package/locales/it-IT/plugin.json +33 -2
  11. package/locales/ja-JP/plugin.json +33 -2
  12. package/locales/ko-KR/plugin.json +33 -2
  13. package/locales/nl-NL/plugin.json +33 -2
  14. package/locales/pl-PL/plugin.json +33 -2
  15. package/locales/pt-BR/plugin.json +33 -2
  16. package/locales/ru-RU/plugin.json +33 -2
  17. package/locales/tr-TR/plugin.json +33 -2
  18. package/locales/vi-VN/plugin.json +33 -2
  19. package/locales/zh-CN/plugin.json +33 -2
  20. package/locales/zh-TW/plugin.json +33 -2
  21. package/package.json +1 -1
  22. package/src/components/ManifestPreviewer/index.tsx +4 -1
  23. package/src/features/ChatInput/ActionBar/Tools/Dropdown.tsx +2 -1
  24. package/src/features/Conversation/Extras/Usage/index.tsx +7 -1
  25. package/src/features/Conversation/Messages/Assistant/Tool/Render/CustomRender.tsx +1 -1
  26. package/src/features/PluginAvatar/index.tsx +2 -1
  27. package/src/features/PluginDevModal/MCPManifestForm.tsx +164 -0
  28. package/src/features/PluginDevModal/PluginPreview.tsx +4 -3
  29. package/src/features/PluginDevModal/index.tsx +43 -34
  30. package/src/features/PluginStore/AddPluginButton.tsx +3 -1
  31. package/src/features/PluginStore/PluginItem/Action.tsx +5 -2
  32. package/src/features/PluginStore/PluginItem/PluginAvatar.tsx +25 -0
  33. package/src/features/PluginStore/PluginItem/index.tsx +4 -3
  34. package/src/features/PluginTag/index.tsx +8 -2
  35. package/src/{server/modules/MCPClient → libs/mcp}/__tests__/index.test.ts +2 -2
  36. package/src/{server/modules/MCPClient/index.ts → libs/mcp/client.ts} +29 -33
  37. package/src/libs/mcp/index.ts +2 -0
  38. package/src/libs/mcp/types.ts +27 -0
  39. package/src/locales/default/plugin.ts +34 -3
  40. package/src/server/routers/tools/index.ts +2 -0
  41. package/src/server/routers/tools/mcp.ts +79 -0
  42. package/src/server/services/mcp/index.ts +157 -0
  43. package/src/services/mcp.ts +25 -0
  44. package/src/store/chat/slices/plugin/action.ts +46 -2
  45. package/src/types/tool/plugin.ts +9 -0
  46. /package/src/{server/modules/MCPClient → libs/mcp}/__tests__/__snapshots__/index.test.ts.snap +0 -0
@@ -9,6 +9,15 @@ export interface CustomPluginParams {
9
9
  enableSettings?: boolean;
10
10
  manifestMode?: 'local' | 'url';
11
11
  manifestUrl?: string;
12
+ /**
13
+ * 临时方案,后续需要做一次大重构
14
+ */
15
+ mcp?: {
16
+ args?: string[];
17
+ command?: string;
18
+ type: 'http' | 'stdio';
19
+ url?: string;
20
+ };
12
21
  useProxy?: boolean;
13
22
  }
14
23