Environment
- flutter-skill version: v0.9.5 (flutter-skill-macos-arm64-v0.9.5)
- Flutter: 3.32.2 / Dart 3.8.1
- Platform: iOS Simulator (iPhone 16 Pro, BCCC538A-B4BB-45F4-8F80-9F9C44B9ED8B)
- Claude Code MCP integration
Steps to Reproduce
- Connect to a running Flutter app via
connect_app(uri="ws://127.0.0.1:50000/{token}/ws")
- Successfully use other tools (tap, native_screenshot, get_interactable_elements, go_back)
- Call
scroll_to with a widget key that is off-screen
Expected Behavior
scroll_to scrolls the list to bring the target element into view and returns success.
Actual Behavior
scroll_to returns: MCP error -32000: Connection closed
- After the error, all flutter-skill MCP tools become unavailable with
Error: No such tool available: mcp__flutter-skill__native_screenshot
- The MCP server process crashes entirely — tools disappear from the MCP tool registry
- Requires full Claude Code restart to recover
Impact
- Critical: any call to
scroll_to terminates the entire MCP server session
- Workaround: use
swipe instead of scroll_to for scrolling
Additional Context
The crash occurs specifically when the element is off-screen. The error log shows:
E002: Element "settings_dark_mode" is off-screen (coords: 67, 967).
Immediately followed by scroll_to call → Connection closed → server crash.
Environment
Steps to Reproduce
connect_app(uri="ws://127.0.0.1:50000/{token}/ws")scroll_towith a widget key that is off-screenExpected Behavior
scroll_toscrolls the list to bring the target element into view and returns success.Actual Behavior
scroll_toreturns:MCP error -32000: Connection closedError: No such tool available: mcp__flutter-skill__native_screenshotImpact
scroll_toterminates the entire MCP server sessionswipeinstead ofscroll_tofor scrollingAdditional Context
The crash occurs specifically when the element is off-screen. The error log shows:
Immediately followed by
scroll_tocall →Connection closed→ server crash.