Skip to content

Commit 9cdd94e

Browse files
committed
Pass tokens to MCP Server
Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
1 parent f7d233e commit 9cdd94e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

a2a/git_issue_agent/a2a_agent.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ async def execute(self, context: RequestContext, event_queue: EventQueue):
165165
#if settings.JWKS_URI:
166166
# user_token = context.call_context.user._user.access_token
167167
#else:
168-
user_token = settings.GITHUB_TOKEN
168+
if settings.JWKS_URI:
169+
user_token = context.call_context.user._user.access_token
170+
else:
171+
user_token = settings.GITHUB_TOKEN
169172
user_input = [context.get_user_input()]
170173
task = context.current_task
171174
if not task:

0 commit comments

Comments
 (0)