flutterflow-mcp 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +186 -21
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,21 +2,50 @@
2
2
 
3
3
  MCP server for the FlutterFlow Project API. Enables AI-assisted FlutterFlow development through Claude and other MCP-compatible clients.
4
4
 
5
+ ## What This MCP Does Best
6
+
7
+ This MCP excels at **reading, exploring, and understanding** your FlutterFlow projects. Here's what it's great at:
8
+
9
+ - **Project exploration** — Browse your projects, pages, components, and file structure
10
+ - **Understanding functionality** — Get clear summaries of what a page or component does, including its widget tree, actions, parameters, and state
11
+ - **Tracing usage** — Find everywhere a component is used, or every navigation action that leads to a page
12
+ - **Inspecting configuration** — View theme settings, API endpoints, data models, custom code, app state, integrations, and more
13
+ - **Searching** — Search project files by keyword, prefix, or regex to find exactly what you need
14
+ - **YAML reference** — Built-in documentation for FlutterFlow's YAML schema, so your AI assistant can understand and generate valid YAML
15
+ - **Guided editing** — A workflow guide (`get_editing_guide`) that walks through the correct steps before making any YAML changes
16
+
17
+ > **In short:** Think of it as giving your AI assistant full read access to your FlutterFlow project, plus careful write access when needed.
18
+
5
19
  ## Quick Start
6
20
 
7
- ### 1. Get your FlutterFlow API token
21
+ ### 1. Get Your FlutterFlow API Token
22
+
23
+ You need a FlutterFlow API token to authenticate. Here's how to get one:
24
+
25
+ 1. Open [FlutterFlow](https://app.flutterflow.io/) and log in
26
+ 2. Click your **profile picture** (bottom-left corner)
27
+ 3. Go to **Account Settings**
28
+ 4. Scroll to the **API Token** section
29
+ 5. Click **Copy** to copy your token
8
30
 
9
- Go to **FlutterFlow > Account Settings > API Token** and copy your token.
31
+ > **Note:** The API token requires a **paid FlutterFlow subscription** (Standard plan or above). Free-tier accounts do not have API access.
10
32
 
11
- ### 2. Add to your MCP client
33
+ ### 2. Add to Your MCP Client
12
34
 
13
- **Claude Code:**
35
+ Choose your AI client below and follow the setup instructions.
36
+
37
+ <details>
38
+ <summary><strong>Claude Code (CLI)</strong></summary>
39
+
40
+ Run this command to add the MCP server:
14
41
 
15
42
  ```bash
16
- claude mcp add flutterflow -- npx -y flutterflow-mcp
43
+ claude mcp add flutterflow -e FLUTTERFLOW_API_TOKEN=your_token_here -- npx -y flutterflow-mcp
17
44
  ```
18
45
 
19
- Then set your token in the MCP config (`~/.claude/settings.json` or project `.claude/settings.json`):
46
+ Replace `your_token_here` with the token you copied in step 1.
47
+
48
+ This adds the server to your project's `.claude/settings.json`. You can also manually edit the config:
20
49
 
21
50
  ```json
22
51
  {
@@ -32,9 +61,12 @@ Then set your token in the MCP config (`~/.claude/settings.json` or project `.cl
32
61
  }
33
62
  ```
34
63
 
35
- **Other MCP clients (Cursor, Windsurf, etc.):**
64
+ </details>
36
65
 
37
- Add to your MCP configuration:
66
+ <details>
67
+ <summary><strong>Claude Desktop</strong></summary>
68
+
69
+ Open **Settings > Developer > Edit Config** and add:
38
70
 
39
71
  ```json
40
72
  {
@@ -50,27 +82,160 @@ Add to your MCP configuration:
50
82
  }
51
83
  ```
52
84
 
53
- ### 3. Start building
85
+ Replace `your_token_here` with your token. Restart Claude Desktop after saving.
86
+
87
+ </details>
54
88
 
55
- Ask your AI assistant to list your FlutterFlow projects, inspect pages, or modify widgets — it handles the rest.
89
+ <details>
90
+ <summary><strong>Cursor</strong></summary>
91
+
92
+ Open **Settings > MCP** and add a new server with this configuration:
93
+
94
+ ```json
95
+ {
96
+ "mcpServers": {
97
+ "flutterflow": {
98
+ "command": "npx",
99
+ "args": ["-y", "flutterflow-mcp"],
100
+ "env": {
101
+ "FLUTTERFLOW_API_TOKEN": "your_token_here"
102
+ }
103
+ }
104
+ }
105
+ }
106
+ ```
107
+
108
+ </details>
109
+
110
+ <details>
111
+ <summary><strong>Windsurf / Other MCP Clients</strong></summary>
112
+
113
+ Add the following to your MCP configuration file (check your client's docs for the exact location):
114
+
115
+ ```json
116
+ {
117
+ "mcpServers": {
118
+ "flutterflow": {
119
+ "command": "npx",
120
+ "args": ["-y", "flutterflow-mcp"],
121
+ "env": {
122
+ "FLUTTERFLOW_API_TOKEN": "your_token_here"
123
+ }
124
+ }
125
+ }
126
+ }
127
+ ```
128
+
129
+ </details>
130
+
131
+ ### 3. Start Building
132
+
133
+ Ask your AI assistant to list your FlutterFlow projects, inspect pages, or explore your app — it handles the rest.
134
+
135
+ **Example prompts to get started:**
136
+ - *"List my FlutterFlow projects"*
137
+ - *"Show me all the pages in project X"*
138
+ - *"What does the HomePage do? Walk me through its widget tree"*
139
+ - *"Where is the PaywallCard component used?"*
140
+ - *"What API endpoints are configured?"*
141
+ - *"Show me the theme colors"*
142
+
143
+ ## How It Works Under the Hood
144
+
145
+ This MCP is designed to make AI agents as effective as possible when working with FlutterFlow. Here's what makes it work well:
146
+
147
+ ### Smart Local Caching
148
+
149
+ Instead of hitting the FlutterFlow API for every question, the MCP downloads your entire project once (`sync_project`) and caches it locally. After that, most tools read from the cache — making them **instant and free of API rate limits**. If you've made changes in FlutterFlow, just re-sync to refresh the cache.
150
+
151
+ ### Built-in Documentation
152
+
153
+ AI models don't natively understand FlutterFlow's internal structure. This MCP ships with **21 reference documents** covering every widget type, action, variable, theme setting, and editing pattern. The AI can look up exactly how a Button, Column, or Navigation action is structured — so it doesn't have to guess.
154
+
155
+ ### Guided Editing Workflow
156
+
157
+ Before making any change, the AI can call `get_editing_guide` with a plain-English description of what it wants to do (e.g., *"change the button color on the login page"*). The MCP returns the exact steps, relevant documentation, and rules to follow — reducing the chance of mistakes.
158
+
159
+ ### 25 Purpose-Built Tools
160
+
161
+ Rather than one generic "read project" tool, the MCP provides **25 specialized tools** — each designed for a specific task. Want to know where a component is used? There's a dedicated tool for that. Want to see all navigation actions pointing to a page? There's one for that too. This means the AI always picks the right tool for the job instead of downloading everything and searching through it.
162
+
163
+ ## Limitations and Cautions
164
+
165
+ ### Be Careful with Edits
166
+
167
+ This MCP can make changes to your FlutterFlow project, but **edits should be treated with care**:
168
+
169
+ - **Always review before pushing** — Ask your AI assistant to show you exactly what it plans to change before it pushes anything. Make sure you understand the change.
170
+ - **There's no undo button for API changes** — Changes are applied immediately to your project. You can roll back using FlutterFlow's version history, but it's better to prevent a bad edit than to fix one.
171
+ - **Start with read-only tasks** — Get comfortable asking questions about your project (page summaries, component usage, theme inspection) before asking the AI to modify anything.
172
+ - **Smaller edits are safer** — Editing a single widget is safer than replacing an entire page. The AI knows to make targeted changes, but it's good to be aware.
173
+
174
+ ### What the FlutterFlow API Can't Do
175
+
176
+ These are limitations in FlutterFlow's own API. They affect any tool that connects to FlutterFlow, not just this MCP.
177
+
178
+ - **Custom code can be read but not edited** — The AI can read your custom actions, custom functions, and custom widgets, but it **cannot push code changes** back to FlutterFlow. The API doesn't support it properly — attempting to push code corrupts the FlutterFlow editor. Instead, the AI will show you the modified code and you copy-paste it into the FlutterFlow code editor.
179
+ - **Unlocked `main.dart` can't be updated** — If you've unlocked `main.dart` for raw Dart editing, the AI can read it but can't push code changes. Startup/shutdown action lists can still be modified.
180
+ - **Platform config files are indirect** — You can't directly edit `AndroidManifest.xml`, `Info.plist`, or `build.gradle`. Instead, you configure hooks and settings in FlutterFlow, which generates those files for you. The AI can read and modify those hooks.
181
+ - **Editing platform config files requires extra care** — FlutterFlow groups all platform config files together internally. If the AI pushes a change to just one (e.g., Android Manifest), FlutterFlow may delete the others (e.g., ProGuard rules, Gradle config). The MCP handles this by always including all existing files in the same push, but it's something to be aware of.
182
+ - **Disabling conditional actions works differently** — In the FlutterFlow editor, you can toggle a conditional action on/off with a switch. The API handles this slightly differently, so the AI uses a workaround that achieves the same result.
183
+ - **Validation isn't perfect** — The validation step catches most errors, but occasionally something that passes validation can still fail when pushed. This is rare, but it's why reviewing changes before pushing is important.
184
+
185
+ ### General Limitations
186
+
187
+ - **No live sync** — The MCP works with a snapshot of your project. It doesn't watch for changes you make in the FlutterFlow editor in real time. If you've been editing in FlutterFlow, re-sync before asking the AI to make changes.
188
+ - **Very large pages** — Some extremely large pages may fail to load. The AI can work around this by loading individual widgets instead of the whole page.
189
+ - **Cache can go stale** — If you edit your project in FlutterFlow after syncing, the AI's local copy is outdated. Re-run the sync (the AI will tell you when it detects stale data).
190
+
191
+ > For the full technical details on each API limitation, see [`docs/flutterflow-api-limitations.md`](docs/flutterflow-api-limitations.md).
56
192
 
57
193
  ## Tools
58
194
 
195
+ ### Discovery and Exploration
196
+
59
197
  | Tool | Description |
60
198
  |------|-------------|
61
- | `list_projects` | List all FlutterFlow projects |
62
- | `list_project_files` | List YAML files in a project |
63
- | `list_pages` | List all pages with names, scaffold IDs, and folders |
64
- | `get_page_by_name` | Fetch a page by human-readable name |
65
- | `get_project_yaml` | Download project YAML files |
66
- | `validate_yaml` | Validate YAML before pushing |
67
- | `update_project_yaml` | Push YAML changes to a project |
68
- | `sync_project` | Bulk download all YAML to local cache |
69
- | `get_page_summary` | Quick page overview from cache (widget tree, actions, params) |
70
- | `get_component_summary` | Quick component overview from cache |
71
- | `find_component_usages` | Find all pages/components using a given component |
199
+ | `list_projects` | List all FlutterFlow projects for your account |
200
+ | `list_project_files` | List YAML file keys in a project (supports prefix filter) |
201
+ | `list_pages` | List all pages with human-readable names, scaffold IDs, and folders |
202
+ | `search_project_files` | Search file keys by keyword, prefix, or regex |
203
+ | `sync_project` | Bulk download all project YAML to local cache for fast offline reads |
204
+
205
+ ### Reading and Understanding
206
+
207
+ | Tool | Description |
208
+ |------|-------------|
209
+ | `get_page_by_name` | Fetch a page by its human-readable name |
210
+ | `get_project_yaml` | Download specific YAML files by file key |
211
+ | `get_page_summary` | Quick page overview from cache — widget tree, actions, params, state |
212
+ | `get_component_summary` | Quick component overview from cache — widget tree, actions, params |
213
+ | `find_component_usages` | Find all pages and components where a given component is used |
72
214
  | `find_page_navigations` | Find all actions that navigate to a given page |
215
+
216
+ ### Project Configuration
217
+
218
+ | Tool | Description |
219
+ |------|-------------|
220
+ | `get_theme` | Theme colors, typography, breakpoints, and widget defaults |
221
+ | `get_app_state` | App state variables, constants, and environment settings |
222
+ | `get_api_endpoints` | API endpoint definitions — method, URL, variables, headers, response |
223
+ | `get_data_models` | Data structs, enums, Firestore collections, and Supabase tables |
224
+ | `get_custom_code` | Custom actions, functions, widgets, AI agents, and app-action components |
225
+ | `get_general_settings` | App Details, App Assets, Nav Bar & App Bar settings |
226
+ | `get_project_setup` | Firebase, Languages, Platforms, Permissions, Dependencies |
227
+ | `get_app_settings` | Authentication, Push Notifications, Mobile/Web Deployment |
228
+ | `get_in_app_purchases` | Stripe, Braintree, RevenueCat, Razorpay configuration |
229
+ | `get_integrations` | Supabase, SQLite, GitHub, Algolia, Google Maps, AdMob, and more |
230
+
231
+ ### Editing
232
+
233
+ | Tool | Description |
234
+ |------|-------------|
235
+ | `get_editing_guide` | Get the recommended workflow and docs for an editing task — **call this before modifying any YAML** |
73
236
  | `get_yaml_docs` | Search/retrieve FlutterFlow YAML reference docs by topic or file |
237
+ | `validate_yaml` | Validate YAML content before pushing — **always call before `update_project_yaml`** |
238
+ | `update_project_yaml` | Push YAML changes to a project |
74
239
 
75
240
  ## Resources
76
241
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flutterflow-mcp",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "MCP server for the FlutterFlow Project API — AI-assisted FlutterFlow development through Claude and other MCP-compatible clients",
5
5
  "type": "module",
6
6
  "main": "build/index.js",