adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Implement outbound MCP authentication

Open alan-anzenna opened this issue 1 year ago • 5 comments

As there's a TODO in the code, I'm sure you know about this, but we'd like an issue that we can follow on github.

In mcp_tool.py, there's the following code:

    # TODO(cheliu): Support passing auth to MCP Server.
    self._auth_scheme = auth_scheme
    self._auth_credential = auth_credential

The _auth_* fields are initialized, but then never used.

This appears to be another request for this in a different issue. However, that issue appears to be about something else, and the linked PR does not address the issue.

alan-anzenna avatar May 20 '25 19:05 alan-anzenna

Seems that Client OAuth support was just merged in the MCP Python SDK but after the 1.9.1 release, I guess it will be released in the next version. I hope it will not take long.

omarbenhamid avatar May 26 '25 21:05 omarbenhamid

Hi,

May I know any updates there? I tried to find where ADK is using python-sdk in the code base but in vain, thus I cannot figure out which version the current ADK is using.

albert-anzenna avatar Jun 20 '25 23:06 albert-anzenna

Bump.?

DinoChiesa avatar Oct 21 '25 06:10 DinoChiesa

@alan-anzenna Thank you for reporting this. I understand the request is currently under review. Please keep me posted if anything else is needed. Thanks for your patience.

klateefa avatar Nov 25 '25 06:11 klateefa

@alan-anzenna sorry for the late response! I believe this issue should be addressed now -- we have authentication added via auth_scheme and auth_credential params in McpToolset (https://github.com/google/adk-python/blob/main/src/google/adk/tools/mcp_tool/mcp_toolset.py#L93). Will close this issue, let me know if there are other requests

wukath avatar Jan 14 '26 23:01 wukath