weapp-pilot-mcp 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,77 @@
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, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means:
14
+
15
+ (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or
16
+
17
+ (ii) ownership of fifty percent (50%) or more of the outstanding shares, or
18
+
19
+ (iii) beneficial ownership of such entity.
20
+
21
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
22
+
23
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
24
+
25
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
26
+
27
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work.
28
+
29
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
30
+
31
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner.
32
+
33
+ "Submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems.
34
+
35
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
36
+
37
+ 2. Grant of Copyright License.
38
+
39
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
40
+
41
+ 3. Grant of Patent License.
42
+
43
+ Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work.
44
+
45
+ 4. Redistribution.
46
+
47
+ You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
48
+
49
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
50
+
51
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
52
+
53
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
54
+
55
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file.
56
+
57
+ 5. Submission of Contributions.
58
+
59
+ Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions.
60
+
61
+ 6. Trademarks.
62
+
63
+ This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work.
64
+
65
+ 7. Disclaimer of Warranty.
66
+
67
+ Unless required by applicable law or agreed to in writing, Licensor provides the Work on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
68
+
69
+ 8. Limitation of Liability.
70
+
71
+ In no event and under no legal theory shall any Contributor be liable to You for damages arising from this License or out of the use or inability to use the Work.
72
+
73
+ 9. Accepting Warranty or Additional Liability.
74
+
75
+ While redistributing the Work or Derivative Works thereof, You may choose to offer support, warranty, indemnity, or other liability obligations. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility.
76
+
77
+ END OF TERMS AND CONDITIONS
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # weapp-pilot-mcp
2
+
3
+ `weapp-pilot-mcp` is a local MCP server for route-aware smoke testing and structured scenario execution against WeChat Mini Programs.
4
+
5
+ Current public scope:
6
+
7
+ - Taro-first project detection and build orchestration
8
+ - local-machine WeChat DevTools sessions
9
+ - `miniprogram-automator` backed runtime control
10
+ - readiness checks, smoke runs, and structured scenario execution for external Agents
11
+
12
+ ## Quick Start
13
+
14
+ ```bash
15
+ npx -y weapp-pilot-mcp
16
+ ```
17
+
18
+ ## MCP Client Example
19
+
20
+ ```json
21
+ {
22
+ "mcpServers": {
23
+ "weapp-pilot": {
24
+ "command": "npx",
25
+ "args": ["-y", "weapp-pilot-mcp"]
26
+ }
27
+ }
28
+ }
29
+ ```
30
+
31
+ ## Prerequisites
32
+
33
+ - Node.js 22 or newer
34
+ - WeChat DevTools installed locally
35
+ - a logged-in DevTools desktop session
36
+ - DevTools service port enabled
37
+ - a Taro project that can produce a WeChat Mini Program output directory such as `dist`
38
+
39
+ ## Recommended Tool Order
40
+
41
+ ```text
42
+ env_check
43
+ preflight_check
44
+ project_routes / route_search
45
+ smoke_run
46
+ scenario_run
47
+ ```
48
+
49
+ ## Documentation
50
+
51
+ - Repository: https://github.com/Leezgion/weapp-pilot-mcp
52
+ - Local setup: https://github.com/Leezgion/weapp-pilot-mcp/blob/main/docs/local-setup.md
53
+ - Agent recipes: https://github.com/Leezgion/weapp-pilot-mcp/blob/main/docs/agent-recipes.md
54
+ - Chinese docs: https://github.com/Leezgion/weapp-pilot-mcp/blob/main/docs/zh-CN/README.md
55
+
56
+ ## License
57
+
58
+ Apache-2.0