We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cadf02e commit 2022d6aCopy full SHA for 2022d6a
mcpgateway/services/tool_service.py
@@ -1222,6 +1222,8 @@ async def invoke_tool(
1222
gateway_id = getattr(tool, "gateway_id", None)
1223
if gateway_id and isinstance(gateway_id, str):
1224
global_context.server_id = gateway_id
1225
+ if gateway_id and isinstance(app_user_email, str):
1226
+ global_context.user = app_user_email
1227
else:
1228
# Create new context (fallback when middleware didn't run)
1229
request_id = uuid.uuid4().hex
0 commit comments