Dev.to
7/23/2026

Teaching Kiro to Paint: A Stateful Image-Editing Skill Built on Gemini's Interactions API and MCP
Short summary
nb2lite-skill-kiro wraps Google's gemini-3.1-flash-lite-image model in a FastMCP server packaged as a Kiro skill, enabling stateful image generation and iterative editing through Gemini's Interactions API. The server exposes four tools (generate, edit, edit-local, and a fourth) and handles interaction-ID chaining, aspect-ratio inheritance, and thinking-level selection. The MCP standard means any MCP-capable client can use the tools without per-client glue code.
- •Gemini's Interactions API enables stateful image editing — pass previous_interaction_id to preserve visual context across turns
- •nb2lite-agent MCP server exposes four tools: generate_image, edit_image, edit_local_image, and one more
- •MCP standard lets one server work with Kiro, Claude Code, Claude Desktop, and other MCP-capable clients
- •Aspect ratio is locked at generation time; changing it mid-session degrades pixel continuity
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



