File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ import { getWorkspacePath } from "../../utils/path"
8383import { formatResponse } from "../prompts/responses"
8484import { SYSTEM_PROMPT } from "../prompts/system"
8585import { resolveToolProtocol } from "../prompts/toolProtocolResolver"
86- import { nativeTools } from "../prompts/tools/native-tools"
86+ import { nativeTools , getMcpServerTools } from "../prompts/tools/native-tools"
8787
8888// core modules
8989import { ToolRepetitionDetector } from "../tools/ToolRepetitionDetector"
@@ -2938,7 +2938,6 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
29382938 // Build complete tools array: native tools + dynamic MCP tools
29392939 let allTools : OpenAI . Chat . ChatCompletionTool [ ] = nativeTools
29402940 if ( shouldIncludeTools ) {
2941- const { getMcpServerTools } = await import ( "../prompts/tools/native-tools" )
29422941 const provider = this . providerRef . deref ( )
29432942 const mcpHub = provider ?. getMcpHub ( )
29442943 const mcpTools = getMcpServerTools ( mcpHub )
You can’t perform that action at this time.
0 commit comments