Genkit Dart fails approved MCP tool restarts due to name lookup bug

A developer building a dispatch assistant in Dart found that approving a costly tool call sometimes failed with 'Tool not found' after the agent restarted. The tool was registered via an MCP server under a namespaced name, but the model only sees a shortened name, and the restart path in Genkit Dart 1.0.1 skipped the tool-name map used in the normal loop. The fix, submitted as a pull request to Genkit Dart, resolves tools on the restart path and passes the map through. The change also preserves content and metadata from restarted tool results, which were previously dropped.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in