feat: expand magic notes MCP tools
This commit is contained in:
@@ -7,10 +7,10 @@ export type BuiltinMcpServerSummary = {
|
||||
tools: readonly {
|
||||
name: string
|
||||
description: string
|
||||
access: 'read'
|
||||
access: 'read' | 'write'
|
||||
}[]
|
||||
assignments: readonly RuntimeTarget[]
|
||||
access: 'read'
|
||||
access: 'read' | 'mixed'
|
||||
authorization: 'conversation-scoped'
|
||||
}
|
||||
|
||||
@@ -40,16 +40,56 @@ export const builtinMcpServers = [
|
||||
id: 'magic-notes',
|
||||
name: '笔记 MCP',
|
||||
description:
|
||||
'搜索全局魔法笔记,返回匹配的笔记、记录正文与更新时间。',
|
||||
'读取全局魔法笔记,并在 Execute 模式下创建、修改或删除笔记与记录。',
|
||||
tools: [
|
||||
{
|
||||
name: 'note_list',
|
||||
description: '列出全局魔法笔记及其版本信息。',
|
||||
access: 'read'
|
||||
},
|
||||
{
|
||||
name: 'note_get',
|
||||
description: '读取一篇笔记的记录正文与版本信息。',
|
||||
access: 'read'
|
||||
},
|
||||
{
|
||||
name: 'note_search',
|
||||
description: '搜索全局魔法笔记中的标题和记录正文。',
|
||||
access: 'read'
|
||||
},
|
||||
{
|
||||
name: 'note_create',
|
||||
description: '创建一篇全局魔法笔记。',
|
||||
access: 'write'
|
||||
},
|
||||
{
|
||||
name: 'note_update',
|
||||
description: '修改笔记标题或置顶状态。',
|
||||
access: 'write'
|
||||
},
|
||||
{
|
||||
name: 'note_entry_create',
|
||||
description: '向指定笔记追加纯文本记录。',
|
||||
access: 'write'
|
||||
},
|
||||
{
|
||||
name: 'note_entry_update',
|
||||
description: '使用当前版本修改一条笔记记录。',
|
||||
access: 'write'
|
||||
},
|
||||
{
|
||||
name: 'note_entry_delete',
|
||||
description: '永久删除一条笔记记录及其派生待办。',
|
||||
access: 'write'
|
||||
},
|
||||
{
|
||||
name: 'note_delete',
|
||||
description: '永久删除整篇笔记、全部记录及派生待办。',
|
||||
access: 'write'
|
||||
}
|
||||
],
|
||||
assignments: ['model', 'opencode', 'continue'],
|
||||
access: 'read',
|
||||
access: 'mixed',
|
||||
authorization: 'conversation-scoped'
|
||||
}
|
||||
] as const satisfies readonly BuiltinMcpServerSummary[]
|
||||
|
||||
Reference in New Issue
Block a user