u/ExtensionCaterpillar

FlutterFlow MCP/CLI blocks tiny page edit because existing working custom widgets fail size validation

I’m trying to use the new FlutterFlow AI MCP/CLI flow to make a small UI change to an existing working FlutterFlow project, but flutterflow ai run refuses to push because it revalidates existing custom widgets that I am not editing.

Environment:

FlutterFlow AI SDK: 0.2.0
FlutterFlow CLI package: flutterflow_cli 0.0.35
Dart: 3.11.6

Command shape:

flutterflow ai run dsl/edit.dart \
  --project-id <project-id> \
  --commit-message "Add small page UI controls"

The edit validates locally:

dart analyze dsl/edit.dart
# No issues found!

dart test
# All tests passed!

flutterflow ai validate dsl/edit.dart --project-id <project-id>
# [OK] compileDslApp
# Dry run succeeded for project <project-id>.

But the actual push fails:

Error: Custom code validation failed:
Custom widget "ConversationsListWidget" exceeds the 65536-byte limit (got 170952 bytes).;
Custom widget "DiscoverFeed" exceeds the 65536-byte limit (got 229704 bytes).;
Custom widget "ComposeConversation" exceeds the 65536-byte limit (got 287534 bytes).;
Custom widget "Conversation" exceeds the 65536-byte limit (got 201520 bytes).;
Custom widget "EventsClusterMapFM" exceeds the 65536-byte limit (got 128194 bytes).;
Custom widget "DiscoverFeedWeb" exceeds the 65536-byte limit (got 67858 bytes).

The frustrating part: I’m not editing those custom widgets. The project already exists and works in FlutterFlow. I’m only trying to apply a small page-level UI change.

The dry-run trace says the MCP edit itself is valid:

Status: OK
Task: compileDslApp passed
Change Summary:
  Modified pages: 1
  Added pages: 0
  Modified components: 0

I also tried using the SDK validationFilter hook to suppress only the oversized custom-widget errors. Validation still passes, but the server-side push rejects anyway, so this appears to be enforced by sdkPushProject, not just local validation.

Question for the FlutterFlow team: is there a supported way for MCP/CLI to apply a scoped page edit without revalidating untouched existing custom widgets? If not, MCP is effectively blocked on existing projects that work in the visual builder but contain legacy/custom widgets over the current AI push size limit.

reddit.com
u/ExtensionCaterpillar — 5 days ago
▲ 7 r/cursor

My API credits are being eaten up by subagents being triggered that use models that I disabled days ago in my cursor settings. They are still disabled and yet subagents get triggered that use those models.

Claude models are getting triggered as subagents even though I have disabled all of the Claude models in the Cursor settings.

My API tokens are almost completely gone 6 days into my billing cycle.

u/ExtensionCaterpillar — 16 days ago