fix: load mcp auth at tool call time

This commit is contained in:
lda
2026-06-13 07:07:39 +07:00 Verified
parent 38913cfdcb
commit 4cab4a7d5d
5 changed files with 89 additions and 1 deletions
@@ -273,6 +273,7 @@ class UpstreamTransportService:
specs = specs_from_discovered_tools(
connection=connection,
auth=auth,
auth_loader=lambda: self.load_connection_auth(connection),
executor=self.tool_executor_for(connection),
tools=capabilities.tools,
emit_event=self.event_sink,