feat: expand magic notes MCP tools
This commit is contained in:
@@ -342,8 +342,9 @@ export function McpSettingsSection(): React.JSX.Element {
|
||||
|
||||
<p className="settings-notice">
|
||||
自定义 MCP 当前仅用于直连模型,新建时默认分配给直连模型,并仅在 Execute
|
||||
模式加载。内置共享 MCP 提供知识库与全局笔记只读搜索,可供直连模型、
|
||||
OpenCode 和 Continue 使用。Runtime 自有 MCP 配置不在此处管理。
|
||||
模式加载。内置共享 MCP 提供知识库读取与全局笔记管理,可供直连模型、
|
||||
OpenCode 和 Continue 使用;Ask 只读,笔记写入仅在 Execute
|
||||
模式开放。Runtime 自有 MCP 配置不在此处管理。
|
||||
</p>
|
||||
<p className="settings-notice">
|
||||
内置工具由 GoodBuddy 提供,不属于 MCP Server。自定义 MCP Server
|
||||
@@ -625,7 +626,9 @@ export function McpSettingsSection(): React.JSX.Element {
|
||||
<div>
|
||||
<strong>{server.name}</strong>
|
||||
<small>
|
||||
内置 MCP Server · 只读 · 按对话授权
|
||||
内置 MCP Server ·{' '}
|
||||
{server.access === 'mixed' ? '按模式读写' : '只读'} ·
|
||||
按对话授权
|
||||
</small>
|
||||
</div>
|
||||
<span className="mcp-server-card__summary">
|
||||
@@ -658,7 +661,7 @@ export function McpSettingsSection(): React.JSX.Element {
|
||||
<div>
|
||||
<code>{tool.name}</code>
|
||||
<span className="builtin-tool-badge">
|
||||
只读
|
||||
{tool.access === 'write' ? '写入' : '只读'}
|
||||
</span>
|
||||
</div>
|
||||
<p>{tool.description}</p>
|
||||
|
||||
@@ -888,7 +888,7 @@ describe('SettingsPanel runtime files', () => {
|
||||
screen.getByText(/自定义 Continue 可执行文件将以当前用户权限运行/)
|
||||
).toBeInTheDocument()
|
||||
expect(
|
||||
screen.getByText(/Ask 仅可调用知识库与全局笔记的只读搜索/)
|
||||
screen.getByText(/Ask 仅可调用知识库与全局笔记读取工具/)
|
||||
).toBeInTheDocument()
|
||||
fireEvent.click(within(field).getByRole('button', { name: '清除' }))
|
||||
expect(input).toHaveValue('')
|
||||
@@ -2002,7 +2002,7 @@ describe('SettingsPanel runtime files', () => {
|
||||
screen.getByText(/自定义 MCP 当前仅用于直连模型/)
|
||||
).toHaveTextContent('新建时默认分配给直连模型')
|
||||
expect(
|
||||
screen.getByText(/内置共享 MCP 提供知识库与全局笔记只读搜索/)
|
||||
screen.getByText(/内置共享 MCP 提供知识库读取与全局笔记管理/)
|
||||
).toHaveTextContent(/直连模型、\s*OpenCode 和 Continue/u)
|
||||
expect(
|
||||
screen.getByText(/Runtime 自有 MCP 配置不在此处管理/)
|
||||
|
||||
@@ -1194,8 +1194,8 @@ export function SettingsPanel({
|
||||
原生模型、插件或 MCP 配置时,才切换到 Runtime 自有配置。
|
||||
</div>
|
||||
<div className="runtime-note">
|
||||
对话时可选择 Ask 或 Execute。Ask 仅可调用知识库与全局笔记的只读搜索;Execute
|
||||
可调用已启用工具,调用过程会记录到活动。
|
||||
对话时可选择 Ask 或 Execute。Ask 仅可调用知识库与全局笔记读取工具;Execute
|
||||
可调用已启用工具及笔记写入工具,调用过程会记录到活动。
|
||||
</div>
|
||||
{detectionSummary(detection?.opencode)}
|
||||
<details className="settings-section">
|
||||
@@ -1393,8 +1393,8 @@ export function SettingsPanel({
|
||||
原生模型、规则或 MCP 配置时,才切换到 Runtime 自有配置。
|
||||
</div>
|
||||
<div className="runtime-note">
|
||||
对话时可选择 Ask 或 Execute。Ask 仅可调用知识库与全局笔记的只读搜索;Execute
|
||||
可调用已启用工具,调用过程会记录到活动。
|
||||
对话时可选择 Ask 或 Execute。Ask 仅可调用知识库与全局笔记读取工具;Execute
|
||||
可调用已启用工具及笔记写入工具,调用过程会记录到活动。
|
||||
</div>
|
||||
{detectionSummary(detection?.continue)}
|
||||
<details className="settings-section">
|
||||
|
||||
Reference in New Issue
Block a user