Skip to content

Commit 2deac60

Browse files
author
linyuan.yang
committed
添加 disableWorkspaceMcp
1 parent c409fe0 commit 2deac60

13 files changed

Lines changed: 94 additions & 9 deletions

File tree

‎packages/admin/src/components/SessionDataConfigEditor.vue‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export interface DataConfigValue {
1616
autoApproveAllTools: boolean | null
1717
disableWorkspaceContext: boolean | null
1818
disableWorkspaceSkills: boolean | null
19+
disableWorkspaceMcp: boolean | null
1920
approvalTimeout: number | null
2021
approvalTimeoutValue: ApprovalTimeoutValue | null
2122
askTimeout: number | null
@@ -109,6 +110,7 @@ const resourcesBadge = computed(() => {
109110
if (props.modelValue.workPath) n++
110111
if (props.modelValue.disableWorkspaceContext) n++
111112
if (props.modelValue.disableWorkspaceSkills) n++
113+
if (props.modelValue.disableWorkspaceMcp) n++
112114
return n || ''
113115
})
114116
@@ -129,13 +131,13 @@ const runtimeBadge = computed(() => {
129131
return n || ''
130132
})
131133
132-
function booleanSelectValue(key: 'streamVerbose' | 'autoApproveAllTools' | 'disableWorkspaceContext' | 'disableWorkspaceSkills'): string {
134+
function booleanSelectValue(key: 'streamVerbose' | 'autoApproveAllTools' | 'disableWorkspaceContext' | 'disableWorkspaceSkills' | 'disableWorkspaceMcp'): string {
133135
const v = props.modelValue[key]
134136
if (isProfileMode() && v === null) return ''
135137
return v ? 'true' : 'false'
136138
}
137139
138-
function updateBool(key: 'streamVerbose' | 'autoApproveAllTools' | 'disableWorkspaceContext' | 'disableWorkspaceSkills', value: string) {
140+
function updateBool(key: 'streamVerbose' | 'autoApproveAllTools' | 'disableWorkspaceContext' | 'disableWorkspaceSkills' | 'disableWorkspaceMcp', value: string) {
139141
update(key, isProfileMode() && value === '' ? null : value === 'true')
140142
}
141143
@@ -236,6 +238,13 @@ function setTimeoutMode(key: 'approvalTimeout' | 'askTimeout', mode: string) {
236238
<option value="false">{{ t('common.disabled') }}</option>
237239
</SSelect>
238240
</SFormItem>
241+
<SFormItem :label="t('agents.disable_workspace_mcp')" :hint="inheritLabel('disableWorkspaceMcp', fmtBool) || t('agents.disable_workspace_mcp_hint')">
242+
<SSelect :model-value="booleanSelectValue('disableWorkspaceMcp')" @update:model-value="v => updateBool('disableWorkspaceMcp', String(v))">
243+
<option v-if="isProfileMode()" value="">{{ t('channels.use_channel_default') }}</option>
244+
<option value="true">{{ t('common.enabled') }}</option>
245+
<option value="false">{{ t('common.disabled') }}</option>
246+
</SSelect>
247+
</SFormItem>
239248
</SFormDetails>
240249

241250
<SFormDetails :summary="t('channels.section_runtime')" :badge="runtimeBadge" :open="isSectionOpen('runtime')">

‎packages/admin/src/i18n/en.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ export default {
191191
agenda_label: 'Agenda',
192192
workspace_context_off: 'Workspace context: off',
193193
workspace_skills_off: 'Workspace skills: off',
194+
workspace_mcp_off: 'Workspace MCP: off',
194195
section_runtime: 'Runtime Controls',
195196
inherit_label: 'inherits from {source}: {value}',
196197
inherit_label_unset: 'inherits from {source} (unset)',
@@ -741,6 +742,8 @@ export default {
741742
disable_workspace_context_hint: 'When enabled, sessions using this config will not read SBOT.md / AGENTS.md or similar files from the workspace',
742743
disable_workspace_skills: 'Disable workspace skill auto-import',
743744
disable_workspace_skills_hint: 'When enabled, sessions using this config will not load skills from the workspace .skills/ directory',
745+
disable_workspace_mcp: 'Disable workspace MCP auto-import',
746+
disable_workspace_mcp_hint: 'When enabled, sessions using this config will not load MCP servers from the workspace .mcp.json',
744747
compact_model: 'Compact Model',
745748
compact_model_placeholder: 'Uses main model if not set',
746749
compact_model_hint: 'Automatically compresses conversation history when it gets too long. Uses the main model if not specified.',

‎packages/admin/src/i18n/zh.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ export default {
191191
agenda_label: '事项',
192192
workspace_context_off: '工作区上下文注入: 关闭',
193193
workspace_skills_off: '工作区 Skill 导入: 关闭',
194+
workspace_mcp_off: '工作区 MCP 导入: 关闭',
194195
section_runtime: '运行控制',
195196
inherit_label: '继承自 {source}: {value}',
196197
inherit_label_unset: '继承自 {source}(未设置)',
@@ -741,6 +742,8 @@ export default {
741742
disable_workspace_context_hint: '开启后,此配置下的会话不会从工作目录读取 SBOT.md / AGENTS.md 等上下文文件',
742743
disable_workspace_skills: '关闭工作目录 Skill 自动导入',
743744
disable_workspace_skills_hint: '开启后,此配置下的会话不会加载工作目录下 .skills/ 子目录里的 skill',
745+
disable_workspace_mcp: '关闭工作目录 MCP 自动导入',
746+
disable_workspace_mcp_hint: '开启后,此配置下的会话不会加载工作目录下 .mcp.json 里的 MCP server',
744747
compact_model: '对话压缩模型',
745748
compact_model_placeholder: '不配置则使用主模型压缩',
746749
compact_model_hint: '对话过长时自动压缩历史消息,不配置则使用主模型进行压缩',

‎packages/admin/src/views/chat/ChannelsView.vue‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ interface ChannelSessionRow {
6262
autoApproveAllTools: boolean | null
6363
disableWorkspaceContext: boolean | null
6464
disableWorkspaceSkills: boolean | null
65+
disableWorkspaceMcp: boolean | null
6566
approvalTimeout: number | null
6667
approvalTimeoutValue: ApprovalTimeoutValue | null
6768
askTimeout: number | null
@@ -173,6 +174,7 @@ interface ProfileFull extends ProfileOption {
173174
autoApproveAllTools?: boolean | null
174175
disableWorkspaceContext?: boolean | null
175176
disableWorkspaceSkills?: boolean | null
177+
disableWorkspaceMcp?: boolean | null
176178
approvalTimeout?: number | null
177179
approvalTimeoutValue?: ApprovalTimeoutValue | null
178180
askTimeout?: number | null
@@ -200,7 +202,7 @@ function emptyOverrides(): SessionOverrides {
200202
agentId: null, saver: null, notes: null, wikis: null,
201203
useChannelNotes: null, useChannelWikis: null,
202204
workPath: null, streamVerbose: null, autoApproveAllTools: null,
203-
disableWorkspaceContext: null, disableWorkspaceSkills: null,
205+
disableWorkspaceContext: null, disableWorkspaceSkills: null, disableWorkspaceMcp: null,
204206
approvalTimeout: null, approvalTimeoutValue: null,
205207
askTimeout: null, askTimeoutMessage: null,
206208
intentModel: null, intentPrompt: null, intentThreshold: null,
@@ -228,6 +230,7 @@ function profileToOverrides(p: ProfileFull): SessionOverrides {
228230
autoApproveAllTools: toTriBool(p.autoApproveAllTools),
229231
disableWorkspaceContext: toTriBool(p.disableWorkspaceContext),
230232
disableWorkspaceSkills: toTriBool(p.disableWorkspaceSkills),
233+
disableWorkspaceMcp: toTriBool(p.disableWorkspaceMcp),
231234
approvalTimeout: p.approvalTimeout ?? null,
232235
approvalTimeoutValue: p.approvalTimeoutValue ?? null,
233236
askTimeout: p.askTimeout ?? null,
@@ -346,6 +349,7 @@ async function saveSession() {
346349
autoApproveAllTools: o.autoApproveAllTools,
347350
disableWorkspaceContext: o.disableWorkspaceContext,
348351
disableWorkspaceSkills: o.disableWorkspaceSkills,
352+
disableWorkspaceMcp: o.disableWorkspaceMcp,
349353
approvalTimeout: o.approvalTimeout,
350354
approvalTimeoutValue: o.approvalTimeoutValue,
351355
askTimeout: o.askTimeout,
@@ -372,6 +376,7 @@ async function saveSession() {
372376
autoApproveAllTools: orig.autoApproveAllTools,
373377
disableWorkspaceContext: orig.disableWorkspaceContext,
374378
disableWorkspaceSkills: orig.disableWorkspaceSkills,
379+
disableWorkspaceMcp: orig.disableWorkspaceMcp,
375380
approvalTimeout: orig.approvalTimeout,
376381
approvalTimeoutValue: orig.approvalTimeoutValue,
377382
askTimeout: orig.askTimeout,
@@ -417,7 +422,7 @@ const editingId = ref<string | null>(null)
417422
const form = ref<ChannelConfig>({
418423
name: '', type: '', config: {}, agent: '', saver: '', notes: [],
419424
workPath: '', streamVerbose: false, autoApproveAllTools: false,
420-
disableWorkspaceContext: false, disableWorkspaceSkills: false,
425+
disableWorkspaceContext: false, disableWorkspaceSkills: false, disableWorkspaceMcp: false,
421426
approvalTimeout: 0, approvalTimeoutValue: ApprovalTimeoutValue.Deny,
422427
askTimeout: 0, askTimeoutMessage: '',
423428
intentModel: '', intentPrompt: '', intentThreshold: 0.7,
@@ -437,6 +442,7 @@ const channelDataConfig = computed<DataConfigValue>({
437442
autoApproveAllTools: form.value.autoApproveAllTools ?? false,
438443
disableWorkspaceContext: form.value.disableWorkspaceContext ?? false,
439444
disableWorkspaceSkills: form.value.disableWorkspaceSkills ?? false,
445+
disableWorkspaceMcp: form.value.disableWorkspaceMcp ?? false,
440446
approvalTimeout: form.value.approvalTimeout && form.value.approvalTimeout > 0 ? form.value.approvalTimeout : null,
441447
approvalTimeoutValue: form.value.approvalTimeoutValue ?? ApprovalTimeoutValue.Deny,
442448
askTimeout: form.value.askTimeout && form.value.askTimeout > 0 ? form.value.askTimeout : null,
@@ -457,6 +463,7 @@ const channelDataConfig = computed<DataConfigValue>({
457463
form.value.autoApproveAllTools = !!v.autoApproveAllTools
458464
form.value.disableWorkspaceContext = !!v.disableWorkspaceContext
459465
form.value.disableWorkspaceSkills = !!v.disableWorkspaceSkills
466+
form.value.disableWorkspaceMcp = !!v.disableWorkspaceMcp
460467
form.value.approvalTimeout = v.approvalTimeout ?? 0
461468
form.value.approvalTimeoutValue = v.approvalTimeoutValue ?? ApprovalTimeoutValue.Deny
462469
form.value.askTimeout = v.askTimeout ?? 0
@@ -628,7 +635,7 @@ function openAdd() {
628635
editingId.value = null
629636
clearActionState()
630637
const defaultType = plugins.value.find(p => !p.builtin)?.type || ''
631-
form.value = { name: '', type: defaultType, config: {}, agent: '', saver: '', notes: [], wikis: [], workPath: '', streamVerbose: false, autoApproveAllTools: false, disableWorkspaceContext: false, disableWorkspaceSkills: false, approvalTimeout: 0, approvalTimeoutValue: ApprovalTimeoutValue.Deny, askTimeout: 0, askTimeoutMessage: '', intentModel: '', intentPrompt: '', intentThreshold: 0.7, mergeWindow: 0 }
638+
form.value = { name: '', type: defaultType, config: {}, agent: '', saver: '', notes: [], wikis: [], workPath: '', streamVerbose: false, autoApproveAllTools: false, disableWorkspaceContext: false, disableWorkspaceSkills: false, disableWorkspaceMcp: false, approvalTimeout: 0, approvalTimeoutValue: ApprovalTimeoutValue.Deny, askTimeout: 0, askTimeoutMessage: '', intentModel: '', intentPrompt: '', intentThreshold: 0.7, mergeWindow: 0 }
632639
formTools.value = []
633640
formTriggerTools.value = []
634641
formToolsMode.value = 'default'
@@ -640,7 +647,7 @@ function openEdit(id: string) {
640647
const c = channels.value[id]
641648
editingId.value = id
642649
clearActionState()
643-
form.value = { name: c.name, type: c.type, config: { ...c.config }, agent: c.agent, saver: c.saver, notes: c.notes || [], wikis: (c as any).wikis || [], workPath: c.workPath || '', streamVerbose: !!c.streamVerbose, autoApproveAllTools: !!c.autoApproveAllTools, disableWorkspaceContext: !!c.disableWorkspaceContext, disableWorkspaceSkills: !!c.disableWorkspaceSkills, approvalTimeout: c.approvalTimeout ?? 0, approvalTimeoutValue: c.approvalTimeoutValue ?? ApprovalTimeoutValue.Deny, askTimeout: c.askTimeout ?? 0, askTimeoutMessage: c.askTimeoutMessage || '', intentModel: c.intentModel || '', intentPrompt: c.intentPrompt || '', intentThreshold: c.intentThreshold ?? 0.7, mergeWindow: c.mergeWindow || 0, memory: (c as any).memory ?? undefined, agenda: (c as any).agenda ?? undefined }
650+
form.value = { name: c.name, type: c.type, config: { ...c.config }, agent: c.agent, saver: c.saver, notes: c.notes || [], wikis: (c as any).wikis || [], workPath: c.workPath || '', streamVerbose: !!c.streamVerbose, autoApproveAllTools: !!c.autoApproveAllTools, disableWorkspaceContext: !!c.disableWorkspaceContext, disableWorkspaceSkills: !!c.disableWorkspaceSkills, disableWorkspaceMcp: !!c.disableWorkspaceMcp, approvalTimeout: c.approvalTimeout ?? 0, approvalTimeoutValue: c.approvalTimeoutValue ?? ApprovalTimeoutValue.Deny, askTimeout: c.askTimeout ?? 0, askTimeoutMessage: c.askTimeoutMessage || '', intentModel: c.intentModel || '', intentPrompt: c.intentPrompt || '', intentThreshold: c.intentThreshold ?? 0.7, mergeWindow: c.mergeWindow || 0, memory: (c as any).memory ?? undefined, agenda: (c as any).agenda ?? undefined }
644651
formTools.value = [...(c.tools ?? [])]
645652
formTriggerTools.value = [...(c.triggerTools ?? [])]
646653
formToolsMode.value = toolsToMode(c.tools)
@@ -682,6 +689,7 @@ async function save() {
682689
autoApproveAllTools: form.value.autoApproveAllTools || undefined,
683690
disableWorkspaceContext: form.value.disableWorkspaceContext || undefined,
684691
disableWorkspaceSkills: form.value.disableWorkspaceSkills || undefined,
692+
disableWorkspaceMcp: form.value.disableWorkspaceMcp || undefined,
685693
approvalTimeout: form.value.approvalTimeout && form.value.approvalTimeout > 0 ? form.value.approvalTimeout : undefined,
686694
approvalTimeoutValue: form.value.approvalTimeout && form.value.approvalTimeout > 0 ? form.value.approvalTimeoutValue : undefined,
687695
askTimeout: form.value.askTimeout && form.value.askTimeout > 0 ? form.value.askTimeout : undefined,
@@ -788,6 +796,7 @@ async function refresh() {
788796
<span v-if="c.autoApproveAllTools" class="session-meta-chip orange">{{ t('settings.auto_approve_all') }}: {{ t('common.enabled') }}</span>
789797
<span v-if="c.disableWorkspaceContext" class="session-meta-chip orange">{{ t('channels.workspace_context_off') }}</span>
790798
<span v-if="c.disableWorkspaceSkills" class="session-meta-chip orange">{{ t('channels.workspace_skills_off') }}</span>
799+
<span v-if="c.disableWorkspaceMcp" class="session-meta-chip orange">{{ t('channels.workspace_mcp_off') }}</span>
791800
<span v-if="c.approvalTimeout != null && c.approvalTimeout > 0" class="session-meta-chip">{{ t('channels.approval_timeout') }}: {{ c.approvalTimeout }} / {{ c.approvalTimeoutValue === ApprovalTimeoutValue.Allow ? t('channels.approval_timeout_value_allow') : t('channels.approval_timeout_value_deny') }}</span>
792801
<span v-if="c.askTimeout != null && c.askTimeout > 0" class="session-meta-chip">{{ t('channels.ask_timeout') }}: {{ c.askTimeout }}</span>
793802
<span v-if="c.mergeWindow != null && c.mergeWindow > 0" class="session-meta-chip">{{ t('channels.merge_window') }}: {{ c.mergeWindow }}ms</span>

‎packages/admin/src/views/chat/SessionProfilesView.vue‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface ProfileRow {
2424
autoApproveAllTools: boolean | null
2525
disableWorkspaceContext: boolean | null
2626
disableWorkspaceSkills: boolean | null
27+
disableWorkspaceMcp: boolean | null
2728
approvalTimeout: number | null
2829
approvalTimeoutValue: ApprovalTimeoutValue | null
2930
askTimeout: number | null
@@ -133,7 +134,7 @@ function emptyOverrides(): SessionOverrides {
133134
agentId: null, saver: null, notes: null, wikis: null,
134135
useChannelNotes: null, useChannelWikis: null,
135136
workPath: null, streamVerbose: null, autoApproveAllTools: null,
136-
disableWorkspaceContext: null, disableWorkspaceSkills: null,
137+
disableWorkspaceContext: null, disableWorkspaceSkills: null, disableWorkspaceMcp: null,
137138
approvalTimeout: null, approvalTimeoutValue: null,
138139
askTimeout: null, askTimeoutMessage: null,
139140
intentModel: null, intentPrompt: null, intentThreshold: null,
@@ -177,6 +178,7 @@ function openEdit(p: ProfileRow) {
177178
autoApproveAllTools: toTriBool(p.autoApproveAllTools),
178179
disableWorkspaceContext: toTriBool(p.disableWorkspaceContext),
179180
disableWorkspaceSkills: toTriBool(p.disableWorkspaceSkills),
181+
disableWorkspaceMcp: toTriBool(p.disableWorkspaceMcp),
180182
approvalTimeout: p.approvalTimeout,
181183
approvalTimeoutValue: p.approvalTimeoutValue,
182184
askTimeout: p.askTimeout,
@@ -235,6 +237,7 @@ function buildPayload(f: ProfileForm): Record<string, any> {
235237
autoApproveAllTools: o.autoApproveAllTools,
236238
disableWorkspaceContext: o.disableWorkspaceContext,
237239
disableWorkspaceSkills: o.disableWorkspaceSkills,
240+
disableWorkspaceMcp: o.disableWorkspaceMcp,
238241
approvalTimeout: o.approvalTimeout,
239242
approvalTimeoutValue: o.approvalTimeoutValue,
240243
askTimeout: o.askTimeout,

‎packages/sbot.commons/src/settings.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ export interface SessionConfig {
248248
disableWorkspaceContext?: boolean
249249
/** 关闭工作目录 .skills/ 子目录下 skill 的自动导入 */
250250
disableWorkspaceSkills?: boolean
251+
/** 关闭工作目录 .mcp.json 中 MCP server 的自动导入 */
252+
disableWorkspaceMcp?: boolean
251253
/** Memory profile UUID(对应 memoryProfiles 中的 key) */
252254
memory?: string
253255
/** Agenda 模板 UUID(对应 agendaProfiles 中的 key) */
@@ -288,6 +290,8 @@ export interface ChannelConfig {
288290
disableWorkspaceContext?: boolean
289291
/** 关闭工作目录 .skills/ 子目录下 skill 的自动导入 */
290292
disableWorkspaceSkills?: boolean
293+
/** 关闭工作目录 .mcp.json 中 MCP server 的自动导入 */
294+
disableWorkspaceMcp?: boolean
291295
/** Approval 等待超时(秒),<=0 或不设置则不超时 */
292296
approvalTimeout?: number
293297
/** Approval 超时后的默认结果,默认 'deny' */

‎packages/sbot/src/Agent/AgentFactory.ts‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export interface AgentCreateOptions {
4646
workPath?: string;
4747
/** 关闭工作目录 .skills/ 子目录下 skill 的自动导入 */
4848
disableWorkspaceSkills?: boolean;
49+
/** 关闭工作目录 .mcp.json 中 MCP server 的自动导入 */
50+
disableWorkspaceMcp?: boolean;
4951
}
5052

5153
/**
@@ -64,8 +66,9 @@ export class AgentFactory {
6466
if (agentType !== AgentMode.Generative && agentType !== AgentMode.ACP) {
6567
const toolEntry = agentEntry as ToolAgentEntry;
6668
const workspaceSkillPath = options.disableWorkspaceSkills ? undefined : options.workPath;
69+
const workspaceMcpPath = options.disableWorkspaceMcp ? undefined : options.workPath;
6770
await this.registerSkillService(container, agentId, toolEntry.skills, workspaceSkillPath, toolEntry.skillsExclude);
68-
await this.registerToolService(container, agentId, options.dbSessionId, toolEntry.mcp, toolEntry.mcpParams, agentTools, toolEntry.mcpExclude);
71+
await this.registerToolService(container, agentId, options.dbSessionId, toolEntry.mcp, toolEntry.mcpParams, agentTools, toolEntry.mcpExclude, workspaceMcpPath);
6972
}
7073

7174
if (agentType === AgentMode.ACP) {
@@ -90,6 +93,7 @@ export class AgentFactory {
9093
dbSessionId: options.dbSessionId,
9194
workPath: options.workPath,
9295
disableWorkspaceSkills: options.disableWorkspaceSkills,
96+
disableWorkspaceMcp: options.disableWorkspaceMcp,
9397
});
9498

9599
switch (agentType) {
@@ -169,6 +173,7 @@ export class AgentFactory {
169173
mcpParams?: Record<string, Record<string, any>>,
170174
agentTools?: StructuredToolInterface[],
171175
mcpExclude?: string[],
176+
workspaceMcpPath?: string,
172177
): Promise<void> {
173178
container.registerSingleton(IAgentToolService, AgentToolService);
174179
const toolService = container.resolve<AgentToolService>(IAgentToolService);
@@ -211,6 +216,17 @@ export class AgentFactory {
211216
}
212217

213218
toolService.registerMcpServers(config.getAgentMcpServers(agentName));
219+
220+
// 工作目录级 MCP 自动导入:<workPath>/.mcp.json(最后注册,优先级最高)
221+
if (workspaceMcpPath) {
222+
const workspaceMcp = config.getWorkspaceMcpServers(workspaceMcpPath);
223+
for (const cfg of Object.values(workspaceMcp)) {
224+
// stdio 型 server 未指定 cwd 时,默认以工作目录为 cwd
225+
const c = cfg as any;
226+
if (c.command && !c.cwd) c.cwd = workspaceMcpPath;
227+
}
228+
toolService.registerMcpServers(workspaceMcp);
229+
}
214230
}
215231

216232
/**

‎packages/sbot/src/Agent/AgentRunner.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export interface AgentRunOptions {
6262
disableWorkspaceContext?: boolean;
6363
/** 关闭工作目录 .skills/ 子目录下 skill 的自动导入 */
6464
disableWorkspaceSkills?: boolean;
65+
/** 关闭工作目录 .mcp.json 中 MCP server 的自动导入 */
66+
disableWorkspaceMcp?: boolean;
6567
/** 动态注册到 Agent 的工具列表 */
6668
agentTools?: StructuredToolInterface[];
6769
/** 归属会话 DB 主键(channel_session.id) */
@@ -152,6 +154,7 @@ export class AgentRunner {
152154
dbSessionId,
153155
workPath,
154156
disableWorkspaceSkills: options.disableWorkspaceSkills,
157+
disableWorkspaceMcp: options.disableWorkspaceMcp,
155158
});
156159
await agent.stream(query, callbacks, signal);
157160
} finally {

0 commit comments

Comments
 (0)