diff --git a/src/renderer/src/pages/settings/MCPSettings/SyncServersPopup.tsx b/src/renderer/src/pages/settings/MCPSettings/SyncServersPopup.tsx index b5adb93a0f..663b593280 100644 --- a/src/renderer/src/pages/settings/MCPSettings/SyncServersPopup.tsx +++ b/src/renderer/src/pages/settings/MCPSettings/SyncServersPopup.tsx @@ -225,7 +225,7 @@ const PopupContainer: React.FC = ({ resolve, existingServers }) => { const ContentContainer = styled.div` display: flex; flex-direction: column; - gap: 20px; + gap: 10px; ` const ProviderSelector = styled.div` @@ -319,7 +319,6 @@ const ButtonContainer = styled.div` display: flex; justify-content: flex-end; gap: 8px; - margin-top: 10px; padding-top: 15px; border-top: 1px solid var(--color-border); ` diff --git a/src/renderer/src/store/mcp.ts b/src/renderer/src/store/mcp.ts index 03d6caaac4..7d3820e8a6 100644 --- a/src/renderer/src/store/mcp.ts +++ b/src/renderer/src/store/mcp.ts @@ -67,7 +67,10 @@ export const builtinMCPServers: MCPServer[] = [ type: 'inMemory', description: '基于本地知识图谱的持久性记忆基础实现。这使得模型能够在不同对话间记住用户的相关信息。需要配置 MEMORY_FILE_PATH 环境变量。https://github.com/modelcontextprotocol/servers/tree/main/src/memory', - isActive: true + isActive: true, + env: { + MEMORY_FILE_PATH: 'YOUR_MEMORY_FILE_PATH' + } }, { id: nanoid(), @@ -82,7 +85,10 @@ export const builtinMCPServers: MCPServer[] = [ type: 'inMemory', description: '一个集成了Brave 搜索 API 的 MCP 服务器实现,提供网页与本地搜索双重功能。需要配置 BRAVE_API_KEY 环境变量', - isActive: false + isActive: false, + env: { + BRAVE_API_KEY: 'YOUR_API_KEY' + } }, { id: nanoid(), @@ -103,7 +109,10 @@ export const builtinMCPServers: MCPServer[] = [ name: '@cherry/dify-knowledge', type: 'inMemory', description: 'Dify 的 MCP 服务器实现,提供了一个简单的 API 来与 Dify 进行交互', - isActive: false + isActive: false, + env: { + DIFY_KEY: 'YOUR_DIFY_KEY' + } } ]