mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-21 01:40:58 +00:00
feat(mcp): support mcp resources (#2215)
* feat(mcp): support mcp resources * feat(web): split MCP resources into tab * docs: add MCP resources PR review * feat(mcp): productionize resource support * feat(mcp): scope local agent tools and resources * fix(web): gate space embedding models behind login * fix(web): prevent clipped space model CTA * test: update preproc resource tool expectations * fix(web): expose skill authoring tools in selector --------- Co-authored-by: yang.xiang <yang.xiang@advancegroup.com> Co-authored-by: Hyu <chenhyu@proton.me> Co-authored-by: Junyan Qin <rockchinq@gmail.com>
This commit is contained in:
@@ -789,7 +789,9 @@ const zhHant = {
|
||||
toolsFound: '個工具',
|
||||
unknownError: '未知錯誤',
|
||||
noToolsFound: '未找到任何工具',
|
||||
noResourcesFound: '未找到任何資源',
|
||||
tabTools: '工具',
|
||||
tabResources: '資源',
|
||||
tabDocs: '文件',
|
||||
noReadme: '暫無文件',
|
||||
parseResultFailed: '解析測試結果失敗',
|
||||
@@ -809,6 +811,11 @@ const zhHant = {
|
||||
toolCount: '工具:{{count}}',
|
||||
parameterCount: '參數:{{count}}',
|
||||
noParameters: '無參數',
|
||||
resourceCount: '資源:{{count}}',
|
||||
resourceBinaryContent: '二進位內容(無法顯示)',
|
||||
resourceBinaryOmitted: '二進位內容已依資源安全策略省略',
|
||||
resourceTruncated: '內容已依位元組或 token 限制截斷',
|
||||
resourceReadFailed: '讀取資源內容失敗',
|
||||
statusConnected: '已連線',
|
||||
statusDisconnected: '未連線',
|
||||
statusError: '連接錯誤',
|
||||
@@ -894,9 +901,12 @@ const zhHant = {
|
||||
selectPlugins: '選擇插件',
|
||||
pluginsTitle: '插件',
|
||||
mcpServersTitle: 'MCP 伺服器',
|
||||
mcpResourcesTitle: 'MCP 資源',
|
||||
noMCPServersSelected: '未選擇任何 MCP 伺服器',
|
||||
noMCPResourcesAvailable: '暫無可用 MCP 資源',
|
||||
addMCPServer: '新增 MCP 伺服器',
|
||||
selectMCPServers: '選擇 MCP 伺服器',
|
||||
enableMCPResourceAgentRead: '允許模型讀取',
|
||||
toolCount: '{{count}} 個工具',
|
||||
noPluginsInstalled: '無已安裝的插件',
|
||||
noMCPServersConfigured: '無已配置的 MCP 伺服器',
|
||||
@@ -912,6 +922,38 @@ const zhHant = {
|
||||
addSkill: '新增技能',
|
||||
selectSkills: '選擇技能',
|
||||
noSkillsAvailable: '暫無可用技能',
|
||||
mcpServersScopeTooltip:
|
||||
'這裡僅控制此流程線綁定哪些 MCP 伺服器;具體 MCP 工具和資源在 AI 能力的內建 Agent 表單中選擇。',
|
||||
enableAllMCPServersTooltip:
|
||||
'啟用後,所有已配置且啟用的 MCP 伺服器都會進入 AI 能力中的 MCP 工具和資源候選範圍。',
|
||||
},
|
||||
localAgent: {
|
||||
toolsTitle: '工具',
|
||||
toolsDescription: '選擇此內建 Agent 可以調用的插件、MCP 和內建工具。',
|
||||
toolsScopeTooltip:
|
||||
'MCP 工具只會從擴展集成中已綁定的 MCP 伺服器裡出現;如需增加 MCP 工具來源,請先到擴展集成綁定對應伺服器。',
|
||||
enableAllTools: '啟用所有工具',
|
||||
allToolsEnabled: '已啟用所有可用工具',
|
||||
noToolsSelected: '未選擇任何工具',
|
||||
editTools: '編輯工具',
|
||||
builtinTools: '內建工具',
|
||||
pluginTools: '插件工具',
|
||||
skillTools: '技能工具',
|
||||
mcpTools: 'MCP 工具',
|
||||
mcpToolsScopeTooltip:
|
||||
'這裡僅展示擴展集成目前允許的 MCP 伺服器提供的工具。',
|
||||
selectTools: '選擇工具',
|
||||
resourcesTitle: '資源',
|
||||
resourcesDescription: '選擇此內建 Agent 可以讀取的 MCP 資源和知識庫。',
|
||||
knowledgeBases: '知識庫',
|
||||
mcpResources: 'MCP 資源',
|
||||
mcpResourcesScopeTooltip:
|
||||
'這裡僅展示擴展集成目前允許的 MCP 伺服器暴露的資源。',
|
||||
enableMCPResourceRead: '允許模型讀取 MCP 資源',
|
||||
mcpResourceReadTooltip:
|
||||
'關閉後,即使已選擇資源,也不會把 MCP 資源內容注入給模型。',
|
||||
noMCPResourcesAvailable: '暫無可用 MCP 資源',
|
||||
selectKnowledgeBases: '選擇知識庫',
|
||||
},
|
||||
debugDialog: {
|
||||
title: '流程線對話',
|
||||
|
||||
Reference in New Issue
Block a user