@bdayadev/flutter-ultra-mcp 0.0.0

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 (57) hide show
  1. package/.claude-plugin/plugin.json +14 -0
  2. package/.mcp.json +67 -0
  3. package/CODE_OF_CONDUCT.md +83 -0
  4. package/CONTRIBUTING.md +108 -0
  5. package/LICENSE +201 -0
  6. package/README.md +77 -0
  7. package/SECURITY.md +19 -0
  8. package/dart/ultra_flutter/CHANGELOG.md +34 -0
  9. package/dart/ultra_flutter/EXTENSIONS.md +61 -0
  10. package/dart/ultra_flutter/README.md +109 -0
  11. package/dart/ultra_flutter/pubspec.yaml +37 -0
  12. package/dart/ultra_flutter_devtools/README.md +7 -0
  13. package/dart/ultra_flutter_devtools/pubspec.yaml +27 -0
  14. package/docs/UPSTREAM-PATROL-PRS.md +5 -0
  15. package/docs/UPSTREAM-SENTRY-PR.md +62 -0
  16. package/docs/discovery-empirics.md +435 -0
  17. package/examples/counter-app/README.md +24 -0
  18. package/examples/counter-app/pubspec.yaml +23 -0
  19. package/examples/oidc-app/README.md +48 -0
  20. package/examples/oidc-app/pubspec.yaml +24 -0
  21. package/package.json +82 -0
  22. package/packages/flutter-ultra-browser/README.md +29 -0
  23. package/packages/flutter-ultra-browser/package.json +39 -0
  24. package/packages/flutter-ultra-build/README.md +60 -0
  25. package/packages/flutter-ultra-build/package.json +38 -0
  26. package/packages/flutter-ultra-devtools/README.md +7 -0
  27. package/packages/flutter-ultra-devtools/package.json +36 -0
  28. package/packages/flutter-ultra-gesture/README.md +51 -0
  29. package/packages/flutter-ultra-gesture/package.json +58 -0
  30. package/packages/flutter-ultra-native-desktop/README.md +131 -0
  31. package/packages/flutter-ultra-native-desktop/package.json +81 -0
  32. package/packages/flutter-ultra-native-mobile/README.md +103 -0
  33. package/packages/flutter-ultra-native-mobile/package.json +72 -0
  34. package/packages/flutter-ultra-patrol/README.md +40 -0
  35. package/packages/flutter-ultra-patrol/package.json +38 -0
  36. package/packages/flutter-ultra-runtime/README.md +63 -0
  37. package/packages/flutter-ultra-runtime/package.json +69 -0
  38. package/shared/contracts/package.json +31 -0
  39. package/shared/device-router/README.md +51 -0
  40. package/shared/device-router/package.json +62 -0
  41. package/shared/keyring/README.md +7 -0
  42. package/shared/keyring/package.json +24 -0
  43. package/shared/mcp-runtime/README.md +116 -0
  44. package/shared/mcp-runtime/package.json +58 -0
  45. package/shared/state-store/README.md +66 -0
  46. package/shared/state-store/package.json +60 -0
  47. package/shared/vm-service-client/README.md +135 -0
  48. package/shared/vm-service-client/package.json +62 -0
  49. package/skills/_internal-on-tool-failure/SKILL.md +13 -0
  50. package/skills/_internal-session-bootstrap/SKILL.md +18 -0
  51. package/skills/debug/SKILL.md +20 -0
  52. package/skills/devtools/SKILL.md +21 -0
  53. package/skills/drive/SKILL.md +20 -0
  54. package/skills/scaffold/SKILL.md +21 -0
  55. package/skills/setup/SKILL.md +26 -0
  56. package/skills/test/SKILL.md +19 -0
  57. package/skills/tour/SKILL.md +22 -0
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
3
+ "name": "flutter",
4
+ "version": "0.1.0",
5
+ "description": "Durable cross-platform Flutter automation via 8 specialized MCP servers, in-app mixin binding, and an optional DevTools panel. Replaces marionette_mcp and the official dart mcp-server for Claude Code.",
6
+ "author": {
7
+ "name": "Bdaya-Dev",
8
+ "url": "https://github.com/Bdaya-Dev"
9
+ },
10
+ "homepage": "https://github.com/Bdaya-Dev/flutter-ultra-mcp",
11
+ "repository": "https://github.com/Bdaya-Dev/flutter-ultra-mcp",
12
+ "license": "Apache-2.0",
13
+ "keywords": ["flutter", "dart", "mcp", "automation", "testing", "devtools", "claude-code"]
14
+ }
package/.mcp.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "mcpServers": {
3
+ "flutter-ultra-build": {
4
+ "command": "node",
5
+ "args": ["${CLAUDE_PLUGIN_ROOT}/packages/flutter-ultra-build/dist/index.js"],
6
+ "env": {
7
+ "FLUTTER_ULTRA_DATA": "${CLAUDE_PLUGIN_DATA}"
8
+ }
9
+ },
10
+ "flutter-ultra-runtime": {
11
+ "command": "node",
12
+ "args": ["${CLAUDE_PLUGIN_ROOT}/packages/flutter-ultra-runtime/dist/bin.js"],
13
+ "env": {
14
+ "FLUTTER_ULTRA_DATA": "${CLAUDE_PLUGIN_DATA}",
15
+ "FLUTTER_ULTRA_STATE_DIR": "${CLAUDE_PLUGIN_DATA}/state"
16
+ }
17
+ },
18
+ "flutter-ultra-gesture": {
19
+ "command": "node",
20
+ "args": ["${CLAUDE_PLUGIN_ROOT}/packages/flutter-ultra-gesture/dist/bin.js"],
21
+ "env": {
22
+ "FLUTTER_ULTRA_STATE_DIR": "${CLAUDE_PLUGIN_DATA}/state"
23
+ }
24
+ },
25
+ "flutter-ultra-browser": {
26
+ "command": "node",
27
+ "args": ["${CLAUDE_PLUGIN_ROOT}/packages/flutter-ultra-browser/dist/bin.js"],
28
+ "env": {
29
+ "PLAYWRIGHT_BROWSERS_PATH": "${CLAUDE_PLUGIN_DATA}/browsers",
30
+ "FLUTTER_ULTRA_STATE_DIR": "${CLAUDE_PLUGIN_DATA}/state"
31
+ }
32
+ },
33
+ "flutter-ultra-native-mobile": {
34
+ "command": "node",
35
+ "args": ["${CLAUDE_PLUGIN_ROOT}/packages/flutter-ultra-native-mobile/dist/bin.js"],
36
+ "env": {
37
+ "FLUTTER_ULTRA_GO_IOS_BIN": "${CLAUDE_PLUGIN_ROOT}/sidecars/go-ios",
38
+ "FLUTTER_ULTRA_STATE_DIR": "${CLAUDE_PLUGIN_DATA}/state"
39
+ }
40
+ },
41
+ "flutter-ultra-native-desktop": {
42
+ "command": "node",
43
+ "args": ["${CLAUDE_PLUGIN_ROOT}/packages/flutter-ultra-native-desktop/dist/bin.js"],
44
+ "env": {
45
+ "FLUTTER_ULTRA_MAC_HELPER": "${CLAUDE_PLUGIN_ROOT}/sidecars/mac-helper/flutter-ultra-mac",
46
+ "FLUTTER_ULTRA_LINUX_HELPER": "${CLAUDE_PLUGIN_ROOT}/sidecars/linux-helper/at-spi-bridge.py",
47
+ "FLUTTER_ULTRA_STATE_DIR": "${CLAUDE_PLUGIN_DATA}/state"
48
+ }
49
+ },
50
+ "flutter-ultra-devtools": {
51
+ "command": "node",
52
+ "args": ["${CLAUDE_PLUGIN_ROOT}/packages/flutter-ultra-devtools/dist/index.js"],
53
+ "env": {
54
+ "FLUTTER_ULTRA_STATE_DIR": "${CLAUDE_PLUGIN_DATA}/state"
55
+ }
56
+ },
57
+ "flutter-ultra-patrol": {
58
+ "command": "node",
59
+ "args": ["${CLAUDE_PLUGIN_ROOT}/packages/flutter-ultra-patrol/dist/bin.js"],
60
+ "env": {
61
+ "FLUTTER_ULTRA_STATE_DIR": "${CLAUDE_PLUGIN_DATA}/state",
62
+ "FLUTTER_ULTRA_PATROL_FORK": "${CLAUDE_PLUGIN_ROOT}/vendor/patrol",
63
+ "PATROL_WEB_BROWSER_ARGS": "--enable-unsafe-swiftshader,--disable-renderer-backgrounding,--disable-background-timer-throttling"
64
+ }
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,83 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ - Demonstrating empathy and kindness toward other people
14
+ - Being respectful of differing opinions, viewpoints, and experiences
15
+ - Giving and gracefully accepting constructive feedback
16
+ - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ - Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ - The use of sexualized language or imagery, and sexual attention or advances of any kind
22
+ - Trolling, insulting or derogatory comments, and personal or political attacks
23
+ - Public or private harassment
24
+ - Publishing others' private information, such as a physical or email address, without their explicit permission
25
+ - Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+ ## Enforcement Responsibilities
28
+
29
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32
+
33
+ ## Scope
34
+
35
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36
+
37
+ ## Enforcement
38
+
39
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at https://github.com/Bdaya-Dev/flutter-ultra-mcp/security/advisories/new. All complaints will be reviewed and investigated promptly and fairly.
40
+
41
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42
+
43
+ ## Enforcement Guidelines
44
+
45
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46
+
47
+ ### 1. Correction
48
+
49
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50
+
51
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52
+
53
+ ### 2. Warning
54
+
55
+ **Community Impact**: A violation through a single incident or series of actions.
56
+
57
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58
+
59
+ ### 3. Temporary Ban
60
+
61
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62
+
63
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64
+
65
+ ### 4. Permanent Ban
66
+
67
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68
+
69
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
70
+
71
+ ## Attribution
72
+
73
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
74
+
75
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
76
+
77
+ For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
78
+
79
+ [homepage]: https://www.contributor-covenant.org
80
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
81
+ [Mozilla CoC]: https://github.com/mozilla/diversity
82
+ [FAQ]: https://www.contributor-covenant.org/faq
83
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,108 @@
1
+ # Contributing to flutter-ultra-mcp
2
+
3
+ Thanks for considering a contribution! This guide covers everything you need to develop, test, and ship changes.
4
+
5
+ ## Prerequisites
6
+
7
+ - **Node.js** 20 or 22 (LTS)
8
+ - **Flutter** stable channel
9
+ - **Dart** 3.5+
10
+ - Git with submodule support
11
+ - Platform-specific tooling for the server you're working on (e.g. Android SDK + `adb` for `flutter-ultra-native-mobile`)
12
+
13
+ You do not need any Bdaya internal resources. This plugin is fully self-sufficient — a fresh clone, `npm install`, and `npm test` is enough.
14
+
15
+ ## Clone
16
+
17
+ ```bash
18
+ git clone https://github.com/Bdaya-Dev/flutter-ultra-mcp.git
19
+ cd flutter-ultra-mcp
20
+ git submodule update --init --recursive
21
+ npm install
22
+ ```
23
+
24
+ ## Repository layout
25
+
26
+ ```
27
+ .claude-plugin/ Plugin manifest
28
+ .mcp.json Declares all 8 MCP servers
29
+ packages/ 8 MCP server packages + 3 Dart packages
30
+ shared/ TS shared libs (vm-service-client, mcp-runtime, state-store, keyring)
31
+ skills/ Claude Code skills (one folder per skill)
32
+ hooks/ PreToolUse / SessionStart / Stop hook configs
33
+ sidecars/ Bundled native helpers (signed/notarized in CI)
34
+ vendor/ Plugin-owned dependencies (e.g. patrol fork submodule)
35
+ scripts/ Cross-platform helper scripts referenced by hooks
36
+ docs/ Architecture + contracts + platform matrix
37
+ .github/workflows/ GitHub Actions CI (per §18.12 of plan)
38
+ ```
39
+
40
+ ## Conventional Commits — mandatory
41
+
42
+ Every commit must follow [Conventional Commits 1.0](https://www.conventionalcommits.org/).
43
+
44
+ ```
45
+ <type>(<scope>)?: <subject>
46
+ ```
47
+
48
+ | Type | Effect on version | Example |
49
+ | ----------------------------------------------------------- | ----------------- | -------------------------------------------------- |
50
+ | `feat` | minor bump | `feat(gesture): add scroll_until_visible` |
51
+ | `fix` | patch bump | `fix(runtime): handle DDS reconnect race` |
52
+ | `feat!` / `fix!` / `BREAKING CHANGE:` footer | major bump | `feat(api)!: rename screenshot to take_screenshot` |
53
+ | `perf` | patch bump | `perf(browser): cache Playwright contexts` |
54
+ | `refactor`, `docs`, `test`, `chore`, `build`, `ci`, `style` | no version change | `chore(deps): bump zod to 3.25` |
55
+
56
+ `commitlint` runs as a `commit-msg` hook (installed by `husky`) and as a PR-blocking CI check.
57
+
58
+ ## Branches
59
+
60
+ - **`main`** — production
61
+ - **`next`** — pre-release (prerelease tag `next`)
62
+ - **`alpha`** / **`beta`** — unstable channels
63
+
64
+ ## Adding a new MCP server
65
+
66
+ 1. Copy the layout of an existing `packages/flutter-ultra-*/` package
67
+ 2. Add an entry to `.mcp.json` at the repo root
68
+ 3. Add a `tsconfig.json` project reference in the root `tsconfig.json`
69
+ 4. Implement tools using `@flutter-ultra/mcp-runtime` scaffolding
70
+ 5. Add unit + integration tests under `packages/<name>/tests/`
71
+ 6. Update `skills/` for any user-facing workflows
72
+
73
+ ## Adding a new skill
74
+
75
+ Skills are markdown files at `skills/<name>/SKILL.md`. Follow the conventions in plan §16.8.
76
+
77
+ ## Local testing
78
+
79
+ ```bash
80
+ # Build all packages
81
+ npm run build
82
+
83
+ # Run all unit + integration tests
84
+ npm test
85
+
86
+ # Run a single package's tests
87
+ npm test --workspace=@flutter-ultra/runtime
88
+
89
+ # Lint + format
90
+ npm run lint
91
+ npm run format
92
+ ```
93
+
94
+ Use `npx @modelcontextprotocol/inspector --cli node packages/<name>/dist/index.js --method tools/list` to smoke-test a built server.
95
+
96
+ ## Pull requests
97
+
98
+ 1. Add a [changeset](https://github.com/changesets/changesets): `npm run changeset`
99
+ 2. All CI gates must pass (lint, unit, integration, contract, coverage thresholds, MCP Inspector smoke).
100
+ 3. Squash-merge with a Conventional Commits subject. Reviewers will preserve the conventional commit by editing the merge subject if needed.
101
+
102
+ ## Code of Conduct
103
+
104
+ This project adopts the [Contributor Covenant 2.1](CODE_OF_CONDUCT.md). By participating you agree to abide by its terms.
105
+
106
+ ## License
107
+
108
+ Contributions are licensed under Apache-2.0 (see [LICENSE](LICENSE)).
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,77 @@
1
+ # flutter-ultra-mcp
2
+
3
+ > Durable cross-platform Flutter automation for Claude Code — 8 specialized MCP servers, an in-app Dart mixin binding, and an optional DevTools panel. Replaces `marionette_mcp` and the official `dart mcp-server` with a crash-resilient multi-process architecture.
4
+
5
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
6
+ [![Plugin: Claude Code](https://img.shields.io/badge/Claude_Code-plugin-7C3AED.svg)](https://docs.claude.com/en/docs/claude-code)
7
+
8
+ ## Why
9
+
10
+ A monolithic Flutter MCP server crashes badly: a malformed `pubspec.yaml` or a flaky AT-SPI binding takes down hot reload, gestures, browser, **and** native automation. We split the surface across **8 MCP servers** so a Linux AT-SPI regression cannot stop your Android tests, and a broken pubspec cannot block your hot reload.
11
+
12
+ | Server | Purpose |
13
+ | ------------------------------ | ------------------------------------------------------------------------- |
14
+ | `flutter-ultra-build` | pubspec, codegen, analyze, format, tests, builds, l10n, assets |
15
+ | `flutter-ultra-runtime` | Attach to `flutter run` debug sessions over DDS; introspect VM Service |
16
+ | `flutter-ultra-gesture` | Tap, text entry, scroll, screenshot via in-app `ultra_flutter` mixin |
17
+ | `flutter-ultra-browser` | Playwright-driven web automation (OAuth redirects, popups, console) |
18
+ | `flutter-ultra-native-mobile` | Native overlays on Android (UIAutomator) + iOS (XCUITest) via adb / xcrun |
19
+ | `flutter-ultra-native-desktop` | Native UI on Windows (UIA), macOS (AX), Linux (AT-SPI) |
20
+ | `flutter-ultra-devtools` | Live MCP activity panel inside Flutter DevTools |
21
+ | `flutter-ultra-patrol` | Orchestrate `patrol_cli` for E2E tests (web + Android + iOS) |
22
+
23
+ ## Install
24
+
25
+ This is a Claude Code plugin. Install with:
26
+
27
+ ```bash
28
+ /plugin install Bdaya-Dev/flutter-ultra-mcp
29
+ ```
30
+
31
+ Or add via the marketplace:
32
+
33
+ ```bash
34
+ /plugin marketplace add Bdaya-Dev/flutter-ultra-mcp
35
+ /plugin install flutter
36
+ ```
37
+
38
+ After install, the 8 MCP servers register automatically. Drop into any Flutter project, start a debug session, and ask Claude to take a screenshot, scroll a list, or run your patrol suite.
39
+
40
+ ## Quick tour
41
+
42
+ ```bash
43
+ # In a Flutter project
44
+ flutter run -d chrome
45
+
46
+ # Claude Code session — invoke any included skill
47
+ /flutter:tour # Route-by-route screenshot tour
48
+ /flutter:drive # Multi-step user flow automation
49
+ /flutter:debug # Attach + inspect + triage
50
+ /flutter:test # Test orchestration
51
+ /flutter:setup # One-command setup in a new codebase
52
+ ```
53
+
54
+ ## Architecture
55
+
56
+ See [docs/architecture.md](docs/architecture.md) for the full design.
57
+
58
+ ## Documentation
59
+
60
+ - [Architecture](docs/architecture.md)
61
+ - [Contracts](docs/contracts/)
62
+ - [Platform matrix](docs/platform-matrix.md)
63
+ - [Migration from marionette_mcp](MIGRATION-marionette.md)
64
+ - [Discovery empirics](docs/discovery-empirics.md)
65
+ - [Upstream patrol PRs](docs/UPSTREAM-PATROL-PRS.md)
66
+
67
+ ## Contributing
68
+
69
+ See [CONTRIBUTING.md](CONTRIBUTING.md) — commit message format, monorepo layout, local test workflow.
70
+
71
+ ## Security
72
+
73
+ See [SECURITY.md](SECURITY.md) for the loopback-only design and the vulnerability reporting process.
74
+
75
+ ## License
76
+
77
+ Apache-2.0. See [LICENSE](LICENSE) and the upstream notices in `NOTICE` (where applicable).
package/SECURITY.md ADDED
@@ -0,0 +1,19 @@
1
+ # Security Policy
2
+
3
+ ## Reporting a vulnerability
4
+
5
+ Please report suspected security issues privately via GitHub Security Advisories:
6
+
7
+ https://github.com/Bdaya-Dev/flutter-ultra-mcp/security/advisories/new
8
+
9
+ Do not open public issues for security reports.
10
+
11
+ ## Design posture
12
+
13
+ flutter-ultra-mcp is local-only by design. The 8 MCP servers communicate with their target Flutter apps and helper processes over **loopback transports only** (Unix sockets, named pipes, localhost WebSocket). No server in the plugin opens a non-loopback listener.
14
+
15
+ Secrets handled by the plugin (signing certs, OIDC tokens, etc.) are stored via the OS keyring through `@flutter-ultra/keyring` and are never written to the filesystem in plaintext.
16
+
17
+ ## Supported versions
18
+
19
+ Only the latest published release on the `main` branch receives security updates.
@@ -0,0 +1,34 @@
1
+ # Changelog
2
+
3
+ ## 0.0.1-dev.1
4
+
5
+ Initial fork of [`marionette_flutter`](https://github.com/leancodepl/marionette_mcp)
6
+ v0.5.0 (Apache-2.0).
7
+
8
+ ### Breaking changes vs marionette
9
+
10
+ - Binding is now a **mixin** (`mixin UltraFlutterBinding on WidgetsBinding`)
11
+ instead of a class. Apps that need other custom bindings (Sentry,
12
+ integration_test, etc.) compose via `extends WidgetsFlutterBinding with
13
+ ...`. The convenience `UltraFlutterBinding.ensureInitialized()` covers
14
+ the no-composition case.
15
+ - Service extensions are now under `ext.flutter.ultra.*` instead of
16
+ `ext.flutter.marionette.*`.
17
+ - `MarionetteBinding` → `UltraFlutterBinding`, `MarionetteConfiguration`
18
+ → `UltraConfiguration`, `MarionetteExtensionResult` →
19
+ `UltraExtensionResult`, `registerMarionetteExtension` →
20
+ `registerUltraExtension`.
21
+
22
+ ### Added
23
+
24
+ - `ext.flutter.ultra.clearText` — convenience wrapper around
25
+ `enterText('')`, saves agents two round-trips.
26
+ - Sentry composition: mix in `SentryWidgetsBindingMixin` directly (no
27
+ companion package needed).
28
+
29
+ ### Test coverage
30
+
31
+ - 6 binding/configuration tests new for the mixin form.
32
+ - 91 ported marionette service tests pass unchanged after the rename
33
+ pass.
34
+ - Full suite: 97/97 green on Flutter stable.