I approved the order. Then my Genkit Dart agent forgot its own tool.
Post · https://dev.to/gde/i-approved-the-order-then-my-genkit-dart-agent-forgot-its-own-tool-3mjp
My agent asked me "can I order this part?". I said yes. And the answer came back as a...
First seen by Oriel on .
AI summary
A Genkit Dart bug caused approved, restarted MCP tool calls to fail because namespaced tools were not resolved by their shortened model-facing names.
- MCP registered work-orders/order_part, while the model invoked order_part after approval interrupted the first request.
- The normal execution path used a short-name toolMap, but package:genkit 1.0.1's restart path omitted it and searched the registry directly.
- PR #658 resolves tools during restart and preserves both tool output and content or metadata when recording results.
- A regression test uses a fake model and namespaced tool, confirming the restarted call runs and returns OrderedPart without an API key.
- Until release, the author wraps the MCP tool in a local order_part adapter that forwards calls to the namespaced implementation.
#genkit dart #mcp #tool approvals #dart
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Reactions
Total public reactions reported by the source; distinct from points and likes.
- DEV Community: 7, latest observation ; 0 over observed period since
Comments
Comment count reported by the source.
- DEV Community: 4, latest observation ; +2 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| DEV Community | 4927324 | https://dev.to/gde/i-approved-the-order-then-my-genkit-dart-agent-forgot-its-own-tool-3mjp Read discussion |