Files
goodbuddy/src/shared/builtin-mcp-servers.ts
T
mesalogo 56ebd40bd8 feat: unify execution and add workspace file imports
Remove Ask/Execute modes and general product tool approvals so requests use the selected runtime, enabled capabilities, and execution account permissions. Migrate retired application metadata while preserving user content.

Retire the Results page while retaining conversation images and stored artifacts. Add local and remote workspace file imports, timestamps and sorting, improve image discovery and saving, and refine workspace navigation and supervision responsiveness. Include the accompanying web-search changes, tests, probes, and product documentation.

Remote imports require an updated Agent. Existing artifacts are not automatically copied into project directories. Validation evidence and outstanding failures remain documented in feature progress files; no full test suite or real-model calls were rerun for this commit.

Release note: Run requests without switching work modes, import files into a selected local or remote workspace folder, sort workspace files by date, and keep using conversation images after removal of the Results page.
2026-10-04 20:02:59 +08:00

115 lines
3.6 KiB
TypeScript

import type {
BuiltinMcpServerId,
RuntimeTarget
} from './capability-contracts'
import {
knowledgeScopedDataTools,
magicNoteScopedDataTools
} from './scoped-data-tools'
import { goodbuddyConfigTools } from './goodbuddy-config-tools'
import { builtinModelTools } from './builtin-model-tools'
import { obsidianScopedDataTools } from './obsidian-tools'
import { storyGraphTools } from './story-graph-tools'
export type BuiltinMcpServerSummary = {
id: BuiltinMcpServerId
name: string
description: string
tools: readonly {
name: string
description: string
access: 'read' | 'write'
}[]
supportedAssignments: readonly RuntimeTarget[]
access: 'read' | 'mixed'
authorization: 'conversation-scoped'
requiresFeature?: 'magic-notes'
computerCapabilityId?: 'host-browser-control'
}
export const builtinMcpServers = [
{
id: 'story-graph',
name: 'Story Graph',
description: 'Read stored work decisions, their evolution and source evidence while Supervisor is enabled.',
tools: storyGraphTools.map(({ name, summary, access }) => ({ name, description: summary, access })),
supportedAssignments: ['model', 'opencode', 'continue', 'deepseek-harness'],
access: 'read',
authorization: 'conversation-scoped'
},
{
id: 'obsidian',
name: 'Obsidian',
description: '读取、搜索和管理本机 Obsidian 仓库中的笔记、目录、标签与附件。',
tools: obsidianScopedDataTools.map(({ name, summary, access }) => ({
name,
description: summary,
access
})),
supportedAssignments: ['model', 'opencode', 'continue'],
access: 'mixed',
authorization: 'conversation-scoped'
},
{
id: 'knowledge-base',
name: '知识库',
description:
'列出并搜索当前对话明确选择的知识库,返回可核验的来源与证据引用。',
tools: knowledgeScopedDataTools.map(({ name, summary, access }) => ({
name,
description: summary,
access
})),
supportedAssignments: ['model', 'opencode', 'continue'],
access: 'read',
authorization: 'conversation-scoped'
},
{
id: 'magic-notes',
name: '笔记',
description:
'读取全局魔法笔记,创建、修改或删除笔记与记录。',
tools: magicNoteScopedDataTools.map(({ name, summary, access }) => ({
name,
description: summary,
access
})),
supportedAssignments: ['model', 'opencode', 'continue'],
access: 'mixed',
authorization: 'conversation-scoped',
requiresFeature: 'magic-notes'
},
{
id: 'goodbuddy-config',
name: 'GoodBuddy 配置',
description:
'发现常见配置示例,读取脱敏配置,并通过计划和原生确认管理应用偏好、Skills 与 MCP。',
tools: goodbuddyConfigTools.map(({ name, summary, access }) => ({
name,
description: summary,
access
})),
supportedAssignments: ['model', 'opencode', 'continue'],
access: 'mixed',
authorization: 'conversation-scoped'
},
{
id: 'builtin-browser',
name: '内置浏览器',
description:
'允许已分配的 Runtime 使用 GoodBuddy 临时隔离浏览器,不会控制客户端已安装的浏览器;关闭此能力不影响你在浏览器工作栏中手动操作。',
tools: builtinModelTools
.filter((tool) => tool.group === 'browser')
.map(({ name, description, access }) => ({
name,
description,
access
})),
supportedAssignments: ['model', 'opencode', 'continue'],
access: 'mixed',
authorization: 'conversation-scoped',
computerCapabilityId: 'host-browser-control'
}
] as const satisfies readonly BuiltinMcpServerSummary[]