mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
feat: Update MCP server configurations with environment variables
- Adjusted MCP server definitions to include environment variable placeholders for MEMORY_FILE_PATH, BRAVE_API_KEY, and DIFY_KEY. - Modified styling in SyncServersPopup to reduce gap between elements and removed unnecessary margin.
This commit is contained in:
parent
74d66edf75
commit
4fff7f9014
@ -225,7 +225,7 @@ const PopupContainer: React.FC<Props> = ({ 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);
|
||||
`
|
||||
|
||||
@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user