Skip to content

Commit 745f3d8

Browse files
committed
move mcp into agent-runtime
1 parent 85b64ba commit 745f3d8

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

backend/src/run-agent-step.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { getMCPToolData } from '@codebuff/agent-runtime/mcp'
12
import { getAgentStreamFromTemplate } from '@codebuff/agent-runtime/prompt-agent-stream'
23
import {
34
asSystemInstruction,
@@ -17,7 +18,6 @@ import { getErrorObject } from '@codebuff/common/util/error'
1718
import { cloneDeep } from 'lodash'
1819

1920
import { checkLiveUserInput } from './live-user-inputs'
20-
import { getMCPToolData } from './mcp/util'
2121
import { runProgrammaticStep } from './run-programmatic-step'
2222
import { additionalSystemPrompts } from './system-prompt/prompts'
2323
import { getAgentTemplate } from './templates/agent-registry'

backend/src/tools/tool-executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { getMCPToolData } from '@codebuff/agent-runtime/mcp'
12
import { endsAgentStepParam } from '@codebuff/common/tools/constants'
23
import { generateCompactId } from '@codebuff/common/util/string'
34
import { type ToolCallPart } from 'ai'
@@ -8,7 +9,6 @@ import { convertJsonSchemaToZod } from 'zod-from-json-schema'
89
import { checkLiveUserInput } from '../live-user-inputs'
910
import { codebuffToolDefs } from './definitions/list'
1011
import { codebuffToolHandlers } from './handlers/list'
11-
import { getMCPToolData } from '../mcp/util'
1212

1313
import type { CodebuffToolHandlerFunction } from './handlers/handler-function-type'
1414
import type { AgentTemplate } from '@codebuff/agent-runtime/templates/types'
File renamed without changes.

0 commit comments

Comments
 (0)