fix(agent-runner): authorize external runner tools

This commit is contained in:
huanghuoguoguo
2026-05-30 09:48:27 +08:00
parent 768d52f509
commit 95b859c55d
2 changed files with 47 additions and 1 deletions

View File

@@ -189,6 +189,12 @@ class PreProcessor(stage.PipelineStage):
and query.variables.get('_fallback_model_uuids')
):
query.use_funcs = await self.ap.tool_mgr.get_all_tools(bound_plugins, bound_mcp_servers)
elif config_schema.uses_host_tools(descriptor):
query.use_funcs = await self.ap.tool_mgr.get_all_tools(bound_plugins, bound_mcp_servers)
self.ap.logger.debug(f'Bound plugins: {bound_plugins}')
self.ap.logger.debug(f'Bound MCP servers: {bound_mcp_servers}')
self.ap.logger.debug(f'Use funcs: {query.use_funcs}')
sender_name = ''