Commit 1ad8864
fix: Fix MCP debug client factory compatibility with keyword-only factories
Pass keyword arguments instead of positional arguments to the base_factory
in _DebugHttpxClientFactory.__call__. This resolves a regression introduced
in cl/938200678 where positional arguments were passed to factories that
only accept keyword arguments (e.g., EnvoylopeStreamableHTTPConnectionParams).
Co-authored-by: Kathy Wu <wukathy@google.com>
PiperOrigin-RevId: 9387651891 parent 6a50b8d commit 1ad8864
2 files changed
Lines changed: 20 additions & 1 deletion
File tree
- src/google/adk/tools/mcp_tool
- tests/unittests/tools/mcp_tool
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1430 | 1430 | | |
1431 | 1431 | | |
1432 | 1432 | | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
0 commit comments