Skip to content

MCPToolset missing elicitation support #2135

Closed
Closed

Description

@thetoby9944

Thank you for this great project.

Is your feature request related to a problem? Please describe.
I'm always frustrated when MCP Servers (model context protocol) are trying to make elicitation requests (try to communicate with the user) and adk simply states "elicitation is not supported". As it stands, MCP servers cannot communicate with the user.

Describe the solution you'd like
MCP Servers should have a simple way of requesting structured information directly from the user. Therefore, I'd like adk to support this part of the protocol.

Describe alternatives you've considered
Since there is no real alternative, I tried to implement elicitation support in adk myself. After days of no progress, I am giving up and writing this issue, hoping that someone smarter than me can pull it of.

Additional context
Findings.

  • google.adk.tools.mcp_tool.mcp_session_manager.MCPSessionManager.create_session should pass the elicitation_callback parameter to the mcp.ClientSession.__init__ call
  • The elicitation_callback should emit an Event, where the message contains the elicitation_request, marked as such.
  • The elicitation_callback should further await a future
  • The future is filled by the runner, when it receives a corresponding elicitation_response message, which is also marked as such.
  • The elicitation_callback will return the result of the future which, in turn, will continue the mcp.ClientSession.

Since i don't understand how adk handles futures, sessions, states, etc in detail, I am slightly overwhelmed by this task, so my findings can be wrong and misleading, maybe there is a much easier way to do it. E.g. one that does not require a modification of the runner and can be handled entirely in the MCPSessionManager.


Can you give a heads up, if this is planned at all, if you have a timeline for this, or if you are maybe already working on this?

Activity

  1. added
    tools
    on Jul 23, 2025
  2. added theissue type on Jul 23, 2025
  3. added
    mcp
    on Aug 21, 2025
  4. ShravaniSree commented on Aug 28, 2025

    @ShravaniSree

    Is there any update on this support?

  5. thetoby9944 commented on Sep 18, 2025

    @thetoby9944
    Author

    For anyone having a look at this, elicitation is part of the MCP spec since June

    https://modelcontextprotocol.io/specification/2025-06-18/client/elicitation

  6. thetoby9944 commented on Sep 26, 2025

    @thetoby9944
    Author

    Thought more about this.

    Instead of pushing this work onto the MCP Session Manager, why not use what's already there: The new tool confirmation flow comes awfully close to this.

    #2687

    My thoughts are that if we would

    • parse the MCP elicitation request into a tool confirmation flow compatible args, and
    • extend the tool confirmation response / -request to support not only confirmation, but instead, a JSON Form Schema

    ... then we would have MCP elicitation support.

    This would also fix:

    #3008

    More information: https://google.github.io/adk-docs/tools/confirmation/

  7. Jacksunwei commented on Oct 28, 2025

    @Jacksunwei
    Collaborator

    @DeanChensj I think you could take a look this. Elicitation is kinda a mechanism for tool confirmation.

    cc. @boyangsvl

  8. hangfei commented on Nov 8, 2025

    @hangfei
    Collaborator

    Please use the main issue to track. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

mcptools

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions