feat(extension): 接入 stdio MCP Plugin Host

This commit is contained in:
2026-09-01 11:32:05 +08:00
parent 3a6643ca6f
commit 4894029a0f
14 changed files with 1557 additions and 71 deletions
+7 -1
View File
@@ -491,7 +491,13 @@ class AgentRuntime:
async def _invoke_tool(self, record: RunRecord, call: ToolCall) -> ToolResult:
try:
return await asyncio.wait_for(
self.tools.execute(call, ToolExecutionContext(run_id=record.run.run_id)),
self.tools.execute(
call,
ToolExecutionContext(
run_id=record.run.run_id,
tool_call_id=call.tool_call_id,
),
),
timeout=record.request.tool_timeout_seconds,
)
except TimeoutError: