Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/mcp_agent/executor/temporal/system_activities.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async def relay_notify(
) -> bool:
gateway_url = getattr(self.context, "gateway_url", None)
gateway_token = getattr(self.context, "gateway_token", None)

return await notify_via_proxy(
execution_id=execution_id,
method=method,
Expand Down
2 changes: 1 addition & 1 deletion src/mcp_agent/server/app_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ async def _workflow_run(
try:
# Prefer explicit kwargs, else infer from request context/headers
gateway_url = kwargs.get("gateway_url")
gateway_token = kwargs.get("gateway_token")
gateway_token = kwargs.get("gateway_token") or app.config.temporal.api_key

req = getattr(ctx.request_context, "request", None)
if req is not None:
Expand Down
Loading