Skip to content
Closed
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/google/adk/tools/mcp_tool/mcp_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ async def run_async(
" ToolConfirmation payload."
),
)
tool_context.actions.skip_summarization = True
return {
"error": (
"This tool call requires confirmation, please approve or"
Expand Down
1 change: 1 addition & 0 deletions tests/unittests/tools/mcp_tool/test_mcp_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@ async def test_run_async_require_confirmation_true_no_confirmation(self):
)
}
tool_context.request_confirmation.assert_called_once()
assert tool_context.actions.skip_summarization is True

@pytest.mark.asyncio
async def test_run_async_require_confirmation_true_rejected(self):
Expand Down