Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions src/mcp_agent/server/app_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,9 @@ async def _workflow_run(
# Prefer explicit kwargs, else infer from request context/headers
gateway_url = kwargs.get("gateway_url")
gateway_token = kwargs.get("gateway_token")
if gateway_token is None:
if app and app.config and app.config.temporal:
gateway_token = app.config.temporal.api_key

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