@revealui/mcp 0.0.1-pre.0 → 0.1.1
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 +22 -202
- package/LICENSE.commercial +112 -0
- package/README.md +263 -0
- package/dist/adapters/db.d.ts +46 -0
- package/dist/adapters/db.d.ts.map +1 -0
- package/dist/adapters/db.js +127 -0
- package/dist/adapters/db.js.map +1 -0
- package/dist/config/index.d.ts +11 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +18 -0
- package/dist/config/index.js.map +1 -0
- package/dist/contracts.d.ts +131 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/contracts.js +153 -0
- package/dist/contracts.js.map +1 -0
- package/dist/hypervisor.d.ts +132 -0
- package/dist/hypervisor.d.ts.map +1 -0
- package/dist/hypervisor.js +359 -0
- package/dist/hypervisor.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -10985
- package/dist/index.js.map +1 -1
- package/dist/servers/adapter.d.ts +209 -0
- package/dist/servers/adapter.d.ts.map +1 -0
- package/dist/servers/adapter.js +503 -0
- package/dist/servers/adapter.js.map +1 -0
- package/dist/servers/revealui-content.d.ts +21 -0
- package/dist/servers/revealui-content.d.ts.map +1 -0
- package/dist/servers/revealui-content.js +199 -0
- package/dist/servers/revealui-content.js.map +1 -0
- package/dist/servers/revealui-email.d.ts +18 -0
- package/dist/servers/revealui-email.d.ts.map +1 -0
- package/dist/servers/revealui-email.js +185 -0
- package/dist/servers/revealui-email.js.map +1 -0
- package/dist/servers/revealui-stripe.d.ts +19 -0
- package/dist/servers/revealui-stripe.d.ts.map +1 -0
- package/dist/servers/revealui-stripe.js +211 -0
- package/dist/servers/revealui-stripe.js.map +1 -0
- package/package.json +43 -68
package/LICENSE
CHANGED
|
@@ -1,202 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
(which shall not include Communications that are clearly marked or
|
|
39
|
-
otherwise designated in writing by the copyright owner as "Not a Work").
|
|
40
|
-
|
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
-
the Work and Derivative Works thereof.
|
|
48
|
-
|
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
|
50
|
-
the original version of the Work and any modifications or additions
|
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is clearly marked or otherwise designated
|
|
61
|
-
in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "page" as the copyright notice for easier identification within
|
|
188
|
-
third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright 2025 RevealUI Team
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
201
|
-
implied. See the License for the specific language governing
|
|
202
|
-
permissions and limitations under the License.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026 RevealUI Studio
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
RevealUI Commercial License
|
|
2
|
+
Version 1.0, February 2026
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2025-2026 RevealUI Studio (founder@revealui.com)
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS
|
|
7
|
+
|
|
8
|
+
1. DEFINITIONS
|
|
9
|
+
|
|
10
|
+
"Software" means the RevealUI source code, documentation, and associated
|
|
11
|
+
files contained in directories and packages designated as commercial,
|
|
12
|
+
including but not limited to: packages/ai, packages/mcp, packages/editors,
|
|
13
|
+
packages/services, packages/harnesses, and any directory named "ee" within
|
|
14
|
+
the repository.
|
|
15
|
+
|
|
16
|
+
"License Key" means a valid RevealUI license key obtained through an active
|
|
17
|
+
paid subscription at https://revealui.com.
|
|
18
|
+
|
|
19
|
+
"Licensee" means the individual or organization that holds a valid License
|
|
20
|
+
Key through an active subscription.
|
|
21
|
+
|
|
22
|
+
"Production Use" means any use of the Software beyond local development and
|
|
23
|
+
evaluation, including but not limited to: deploying the Software to serve
|
|
24
|
+
end users, integrating the Software into a product or service, or using the
|
|
25
|
+
Software in a revenue-generating capacity.
|
|
26
|
+
|
|
27
|
+
2. GRANT OF RIGHTS
|
|
28
|
+
|
|
29
|
+
Subject to the terms of this License and a valid License Key, the Licensee
|
|
30
|
+
is granted a non-exclusive, non-transferable, revocable license to:
|
|
31
|
+
|
|
32
|
+
(a) Use the Software for internal development and Production Use.
|
|
33
|
+
(b) Modify the Software for internal use.
|
|
34
|
+
(c) Deploy the Software on infrastructure controlled by the Licensee.
|
|
35
|
+
|
|
36
|
+
Enterprise License holders are additionally granted the right to:
|
|
37
|
+
|
|
38
|
+
(d) Deploy the Software in a self-hosted environment.
|
|
39
|
+
(e) Remove or replace RevealUI branding (white-label).
|
|
40
|
+
(f) Use the Software for multiple tenants within the Licensee's
|
|
41
|
+
organization or customer base.
|
|
42
|
+
|
|
43
|
+
3. RESTRICTIONS
|
|
44
|
+
|
|
45
|
+
The Licensee SHALL NOT:
|
|
46
|
+
|
|
47
|
+
(a) Provide the Software, or any portion of it, to third parties as a
|
|
48
|
+
hosted or managed service that competes with RevealUI.
|
|
49
|
+
(b) Redistribute, sublicense, sell, or otherwise transfer the Software
|
|
50
|
+
or any portion of it to third parties.
|
|
51
|
+
(c) Remove, alter, or circumvent the license key verification
|
|
52
|
+
functionality of the Software.
|
|
53
|
+
(d) Use the Software in Production without a valid License Key.
|
|
54
|
+
(e) Share, publish, or make the License Key available to unauthorized
|
|
55
|
+
parties.
|
|
56
|
+
|
|
57
|
+
4. EVALUATION
|
|
58
|
+
|
|
59
|
+
The Software may be used for evaluation and local development purposes
|
|
60
|
+
without a License Key. Evaluation use does not grant any rights to
|
|
61
|
+
Production Use.
|
|
62
|
+
|
|
63
|
+
5. SUBSCRIPTION AND PAYMENT
|
|
64
|
+
|
|
65
|
+
This License is valid only during the term of an active paid subscription.
|
|
66
|
+
Upon cancellation or expiration of the subscription:
|
|
67
|
+
|
|
68
|
+
(a) The License terminates automatically.
|
|
69
|
+
(b) A grace period of fourteen (14) days is provided for the Licensee
|
|
70
|
+
to transition away from Production Use.
|
|
71
|
+
(c) After the grace period, the Licensee must cease all Production Use
|
|
72
|
+
of the Software.
|
|
73
|
+
|
|
74
|
+
6. INTELLECTUAL PROPERTY
|
|
75
|
+
|
|
76
|
+
The Software is and remains the intellectual property of RevealUI Studio.
|
|
77
|
+
This License does not grant any ownership rights. Contributions to
|
|
78
|
+
commercial portions of the Software require a Contributor License Agreement.
|
|
79
|
+
|
|
80
|
+
7. OPEN SOURCE COMPONENTS
|
|
81
|
+
|
|
82
|
+
This License applies only to files and directories designated as commercial.
|
|
83
|
+
Files under the MIT License (as indicated in the root LICENSE file) are not
|
|
84
|
+
subject to this commercial license and may be used freely under MIT terms.
|
|
85
|
+
|
|
86
|
+
8. DISCLAIMER OF WARRANTY
|
|
87
|
+
|
|
88
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
89
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
90
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
91
|
+
|
|
92
|
+
9. LIMITATION OF LIABILITY
|
|
93
|
+
|
|
94
|
+
IN NO EVENT SHALL REVEALUI STUDIO BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
95
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
96
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
97
|
+
DEALINGS IN THE SOFTWARE, EXCEEDING THE AMOUNT PAID BY THE LICENSEE IN
|
|
98
|
+
THE TWELVE (12) MONTHS PRECEDING THE CLAIM.
|
|
99
|
+
|
|
100
|
+
10. GOVERNING LAW
|
|
101
|
+
|
|
102
|
+
This License shall be governed by the laws of the State of California,
|
|
103
|
+
United States of America, without regard to its conflict of law provisions.
|
|
104
|
+
|
|
105
|
+
11. ENTIRE AGREEMENT
|
|
106
|
+
|
|
107
|
+
This License constitutes the entire agreement between the parties with
|
|
108
|
+
respect to the commercial portions of the Software and supersedes all
|
|
109
|
+
prior agreements, understandings, and communications.
|
|
110
|
+
|
|
111
|
+
For licensing inquiries: founder@revealui.com
|
|
112
|
+
For pricing and subscriptions: https://revealui.com/pricing
|
package/README.md
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
# @revealui/mcp
|
|
2
|
+
|
|
3
|
+
> **Commercial package** — requires a [RevealUI Pro license](https://revealui.com/pro). Free to install and evaluate; a license key is required for production use.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
**Model Context Protocol (MCP) - Complete Integration Package**
|
|
7
|
+
|
|
8
|
+
Centralized MCP server infrastructure, configuration, and documentation for RevealUI.
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
This package contains everything MCP-related:
|
|
13
|
+
|
|
14
|
+
- **7 MCP Servers** - Code validator, Vercel, Stripe, Neon, Supabase, Playwright, Next.js DevTools
|
|
15
|
+
- **Configuration Templates** - For Claude Code / Claude Desktop
|
|
16
|
+
- **Utilities** - Config management, database adapters
|
|
17
|
+
- **Documentation** - Complete guides and per-server docs
|
|
18
|
+
- **Database Migrations** - MCP-related schema
|
|
19
|
+
|
|
20
|
+
> **Pro Package** — `@revealui/mcp` is available to RevealUI Pro subscribers via GitHub Packages.
|
|
21
|
+
> Install: `pnpm add @revealui/mcp --registry https://npm.pkg.github.com`
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
24
|
+
|
|
25
|
+
### 1. Install Dependencies
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# In the monorepo:
|
|
29
|
+
pnpm install
|
|
30
|
+
|
|
31
|
+
# As an external Pro subscriber:
|
|
32
|
+
pnpm add @revealui/mcp --registry https://npm.pkg.github.com
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 2. Configure MCP Client
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Use template for your IDE
|
|
39
|
+
cp packages/mcp/configs/claude-template.json ~/.claude/config.json
|
|
40
|
+
|
|
41
|
+
# Replace <REPO_PATH> with actual path
|
|
42
|
+
sed -i "s|<REPO_PATH>|$(pwd)|g" ~/.claude/config.json
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### 3. Test Server
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Test code validator
|
|
49
|
+
tsx packages/mcp/src/servers/code-validator.ts
|
|
50
|
+
# Should start (Ctrl+C to exit)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Structure
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
packages/mcp/
|
|
57
|
+
├── src/
|
|
58
|
+
│ ├── servers/ # 7 MCP server implementations
|
|
59
|
+
│ │ ├── code-validator.ts ← AI code standards enforcer
|
|
60
|
+
│ │ ├── vercel.ts
|
|
61
|
+
│ │ ├── stripe.ts
|
|
62
|
+
│ │ ├── neon.ts
|
|
63
|
+
│ │ ├── supabase.ts
|
|
64
|
+
│ │ ├── playwright.ts
|
|
65
|
+
│ │ └── next-devtools.ts
|
|
66
|
+
│ ├── config/ # Configuration utilities
|
|
67
|
+
│ │ ├── index.ts
|
|
68
|
+
│ │ ├── config.json
|
|
69
|
+
│ │ └── README.md
|
|
70
|
+
│ └── adapters/ # Database adapters
|
|
71
|
+
│ └── db.ts
|
|
72
|
+
├── configs/ # Template configurations
|
|
73
|
+
│ ├── claude-template.json
|
|
74
|
+
│ └── README.md
|
|
75
|
+
├── docs/ # Complete documentation
|
|
76
|
+
│ ├── INDEX.md ← Start here
|
|
77
|
+
│ ├── README.md # Main MCP guide
|
|
78
|
+
│ ├── SETUP.md # Setup instructions
|
|
79
|
+
│ └── servers/ # Per-server documentation
|
|
80
|
+
│ └── code-validator.md
|
|
81
|
+
├── migrations/ # Database migrations
|
|
82
|
+
│ ├── 0001_add_crdt_columns.sql
|
|
83
|
+
│ └── ...
|
|
84
|
+
└── package.json
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Available MCP Servers
|
|
88
|
+
|
|
89
|
+
### 1. Code Validator ⭐
|
|
90
|
+
**Status:** ✅ Active and configured
|
|
91
|
+
|
|
92
|
+
Prevents AI-generated technical debt by validating code before it's written.
|
|
93
|
+
|
|
94
|
+
- **Rules:** console.log, any types, TODO refs, debugger, skip tests
|
|
95
|
+
- **Integration:** Pre-commit hook + MCP server
|
|
96
|
+
- **Docs:** [docs/servers/code-validator.md](./docs/servers/code-validator.md)
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
tsx packages/mcp/src/servers/code-validator.ts
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### 2. Vercel
|
|
103
|
+
**Status:** Available (requires API key)
|
|
104
|
+
|
|
105
|
+
Deploy and manage Vercel projects.
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
pnpm mcp:vercel
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### 3. Stripe
|
|
112
|
+
**Status:** Available (requires API key)
|
|
113
|
+
|
|
114
|
+
Payment processing and billing operations.
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
pnpm mcp:stripe
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### 4. Neon
|
|
121
|
+
**Status:** Available (requires API key)
|
|
122
|
+
|
|
123
|
+
Database operations and SQL queries.
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
pnpm mcp:neon
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### 5. Supabase
|
|
130
|
+
**Status:** Available (requires API key)
|
|
131
|
+
|
|
132
|
+
Supabase project management and CRUD operations.
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
pnpm mcp:supabase
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### 6. Playwright
|
|
139
|
+
**Status:** Available
|
|
140
|
+
|
|
141
|
+
Browser automation and web scraping.
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
pnpm mcp:playwright
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### 7. Next.js DevTools
|
|
148
|
+
**Status:** Available
|
|
149
|
+
|
|
150
|
+
Next.js 16+ runtime diagnostics and automation.
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
pnpm mcp:next-devtools
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Configuration
|
|
157
|
+
|
|
158
|
+
All configuration templates are in `configs/`:
|
|
159
|
+
|
|
160
|
+
- **`claude-template.json`** - Claude Code / Claude Desktop
|
|
161
|
+
|
|
162
|
+
See [configs/README.md](./configs/README.md) for details.
|
|
163
|
+
|
|
164
|
+
## Environment Variables
|
|
165
|
+
|
|
166
|
+
```env
|
|
167
|
+
# Code Validator (no env vars needed)
|
|
168
|
+
|
|
169
|
+
# Vercel MCP
|
|
170
|
+
VERCEL_API_KEY=vercel_...
|
|
171
|
+
|
|
172
|
+
# Stripe MCP
|
|
173
|
+
STRIPE_SECRET_KEY=sk_test_...
|
|
174
|
+
|
|
175
|
+
# Neon MCP
|
|
176
|
+
NEON_API_KEY=neon_...
|
|
177
|
+
|
|
178
|
+
# Supabase MCP
|
|
179
|
+
SUPABASE_URL=https://....supabase.co
|
|
180
|
+
SUPABASE_ANON_KEY=eyJ...
|
|
181
|
+
SUPABASE_SERVICE_ROLE_KEY=...
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## Documentation
|
|
185
|
+
|
|
186
|
+
📚 **[Complete Documentation Index](./docs/INDEX.md)**
|
|
187
|
+
|
|
188
|
+
- **[Main Guide](./docs/README.md)** - MCP overview
|
|
189
|
+
- **[Setup Guide](./docs/SETUP.md)** - Configuration steps
|
|
190
|
+
- **[Code Validator](./docs/servers/code-validator.md)** - Validator guide
|
|
191
|
+
|
|
192
|
+
## Development
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
# Build package
|
|
196
|
+
pnpm build
|
|
197
|
+
|
|
198
|
+
# Run tests
|
|
199
|
+
pnpm test
|
|
200
|
+
|
|
201
|
+
# Type check
|
|
202
|
+
pnpm typecheck
|
|
203
|
+
|
|
204
|
+
# Lint
|
|
205
|
+
pnpm lint
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## Package Scripts (Root)
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
# Start individual MCP servers
|
|
212
|
+
pnpm mcp:vercel
|
|
213
|
+
pnpm mcp:stripe
|
|
214
|
+
pnpm mcp:neon
|
|
215
|
+
pnpm mcp:supabase
|
|
216
|
+
pnpm mcp:playwright
|
|
217
|
+
pnpm mcp:next-devtools
|
|
218
|
+
|
|
219
|
+
# Setup MCP configuration
|
|
220
|
+
pnpm setup:mcp
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## Exports
|
|
224
|
+
|
|
225
|
+
```typescript
|
|
226
|
+
// Config utilities
|
|
227
|
+
import { getMCPConfig } from '@revealui/mcp/config'
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
## Migration from Old Structure
|
|
231
|
+
|
|
232
|
+
This package consolidates MCP code from multiple locations:
|
|
233
|
+
|
|
234
|
+
**Before:**
|
|
235
|
+
- `scripts/mcp/` → Now `src/servers/`
|
|
236
|
+
- `packages/config/src/mcp/` → Now `src/config/`
|
|
237
|
+
- Multiple config files → Now `configs/` templates
|
|
238
|
+
- Scattered docs → Now `docs/`
|
|
239
|
+
|
|
240
|
+
**After:**
|
|
241
|
+
- Everything in `packages/mcp/` ✅
|
|
242
|
+
|
|
243
|
+
## Related Documentation
|
|
244
|
+
|
|
245
|
+
- [Root MCP Guide](../../docs/MCP.md)
|
|
246
|
+
- [Automation Guide](../../docs/AUTOMATION.md) - AI agent integration
|
|
247
|
+
- [Project Overview](../../docs/OVERVIEW.md) - Framework overview
|
|
248
|
+
|
|
249
|
+
## References
|
|
250
|
+
|
|
251
|
+
- [Model Context Protocol Specification](https://modelcontextprotocol.io/)
|
|
252
|
+
- [Anthropic MCP Servers](https://github.com/anthropics/mcp-servers)
|
|
253
|
+
- [MCP SDK Documentation](https://github.com/modelcontextprotocol/sdk)
|
|
254
|
+
|
|
255
|
+
## License
|
|
256
|
+
|
|
257
|
+
Commercial — see [LICENSE.commercial](../../LICENSE.commercial)
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
**Status:** ✅ Consolidated and Active
|
|
262
|
+
**Servers:** 7 available (1 active, 6 optional)
|
|
263
|
+
**Last Updated:** 2026-03-04
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DB adapter for MCP.
|
|
3
|
+
* - `connectPglite()` initializes ElectricSQL/pglite client with CRDT metadata.
|
|
4
|
+
* - `connectPostgres()` creates a standard Postgres client with Electric metadata.
|
|
5
|
+
* - `createMcpDbClient()` factory that selects adapter based on config.
|
|
6
|
+
*
|
|
7
|
+
* Uses @revealui/contracts as the single source of truth for CRDT operation types.
|
|
8
|
+
*/
|
|
9
|
+
import type { CrdtOperationsInsert, CrdtOperationsRow } from '@revealui/contracts';
|
|
10
|
+
export interface QueryResult<T = Record<string, unknown>> {
|
|
11
|
+
rows: T[];
|
|
12
|
+
affectedRows?: number;
|
|
13
|
+
}
|
|
14
|
+
export type McpDbClient = {
|
|
15
|
+
query: <T = Record<string, unknown>>(sql: string, params?: unknown[]) => Promise<QueryResult<T>>;
|
|
16
|
+
close: () => Promise<void>;
|
|
17
|
+
};
|
|
18
|
+
/** Re-export contracts CRDT types for consumers */
|
|
19
|
+
export type { CrdtOperationsRow, CrdtOperationsInsert };
|
|
20
|
+
/**
|
|
21
|
+
* Connect to PGlite (embedded PostgreSQL) for local development/testing.
|
|
22
|
+
* Uses dynamic import to avoid bundling @electric-sql/pglite when not needed.
|
|
23
|
+
*
|
|
24
|
+
* @param options - Optional connection options
|
|
25
|
+
* @param options.dataDir - Override the default data directory. Use ':memory:' for in-memory.
|
|
26
|
+
*/
|
|
27
|
+
export declare function connectPglite(options?: {
|
|
28
|
+
dataDir?: string;
|
|
29
|
+
}): Promise<McpDbClient>;
|
|
30
|
+
/**
|
|
31
|
+
* Connect to PostgreSQL for production use.
|
|
32
|
+
* Supports Neon, Supabase, and generic PostgreSQL with SSL.
|
|
33
|
+
*/
|
|
34
|
+
export declare function connectPostgres(): Promise<McpDbClient>;
|
|
35
|
+
/**
|
|
36
|
+
* Factory function that creates an MCP database client based on configuration.
|
|
37
|
+
* Reads `persistenceDriver` from getMcpConfig() to determine which adapter to use.
|
|
38
|
+
*/
|
|
39
|
+
export declare function createMcpDbClient(): Promise<McpDbClient>;
|
|
40
|
+
declare const _default: {
|
|
41
|
+
connectPglite: typeof connectPglite;
|
|
42
|
+
connectPostgres: typeof connectPostgres;
|
|
43
|
+
createMcpDbClient: typeof createMcpDbClient;
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
46
|
+
//# sourceMappingURL=db.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/adapters/db.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGlF,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACtD,IAAI,EAAE,CAAC,EAAE,CAAA;IACT,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAA;IAChG,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B,CAAA;AAED,mDAAmD;AACnD,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAA;AA8BvD;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CA8CxF;AAED;;;GAGG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,WAAW,CAAC,CA+C5D;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,WAAW,CAAC,CAS9D;;;;;;AAED,wBAAoE"}
|