@insforge/mcp 1.1.3 → 1.1.5-dev.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 +201 -0
- package/LICENSE.md +201 -0
- package/README.md +58 -4
- package/dist/{chunk-5MTS2H7O.js → chunk-5GCPJFTK.js} +54 -78
- package/dist/http-server.js +1 -1
- package/dist/index.js +1 -1
- package/mcp.json +7 -0
- package/package.json +11 -2
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 Support. 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 2024 Insforge
|
|
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/LICENSE.md
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 Support. 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 2024 Insforge
|
|
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
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<a href="https://insforge.
|
|
3
|
-
<img src="
|
|
2
|
+
<a href="https://insforge.dev">
|
|
3
|
+
<img src="banner.png" alt="Insforge Banner">
|
|
4
4
|
</a>
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
|
+
<div align="center">
|
|
8
|
+
|
|
9
|
+
[](https://lobehub.com/mcp/insforge-insforge-mcp)
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
7
13
|
# Insforge MCP Server
|
|
8
14
|
|
|
9
15
|
Model Context Protocol server for [Insforge](https://github.com/InsForge/insforge).
|
|
@@ -20,11 +26,59 @@ Please visit the [main Insforge repository](https://github.com/InsForge/insforge
|
|
|
20
26
|
|
|
21
27
|
## 🚀 Quick Start
|
|
22
28
|
|
|
29
|
+
### Automated Installation (Recommended)
|
|
30
|
+
|
|
31
|
+
Use the InsForge installer to automatically configure MCP for your client:
|
|
32
|
+
|
|
23
33
|
```bash
|
|
24
|
-
|
|
34
|
+
# Claude Code
|
|
35
|
+
npx @insforge/install --client claude-code --env API_KEY=your_api_key --env API_BASE_URL=http://localhost:7130
|
|
36
|
+
|
|
37
|
+
# Cursor
|
|
38
|
+
npx @insforge/install --client cursor --env API_KEY=your_api_key --env API_BASE_URL=http://localhost:7130
|
|
39
|
+
|
|
40
|
+
# Windsurf
|
|
41
|
+
npx @insforge/install --client windsurf --env API_KEY=your_api_key --env API_BASE_URL=http://localhost:7130
|
|
42
|
+
|
|
43
|
+
# Cline
|
|
44
|
+
npx @insforge/install --client cline --env API_KEY=your_api_key --env API_BASE_URL=http://localhost:7130
|
|
45
|
+
|
|
46
|
+
# Roo Code
|
|
47
|
+
npx @insforge/install --client roocode --env API_KEY=your_api_key --env API_BASE_URL=http://localhost:7130
|
|
48
|
+
# Trae
|
|
49
|
+
npx @insforge/install --client trae --env API_KEY=your_api_key --env API_BASE_URL=http://localhost:7130
|
|
50
|
+
|
|
51
|
+
# Install dev version for testing
|
|
52
|
+
npx @insforge/install --client cursor --env API_KEY=your_api_key --env API_BASE_URL=http://localhost:7130 --dev
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Replace:
|
|
56
|
+
- `your_api_key` with your InsForge API key
|
|
57
|
+
- `http://localhost:7130` with your InsForge instance URL (optional, defaults to localhost:7130)
|
|
58
|
+
|
|
59
|
+
### Manual Installation
|
|
60
|
+
|
|
61
|
+
If you prefer to manually configure your MCP client, add this to your MCP settings file:
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"mcpServers": {
|
|
66
|
+
"insforge": {
|
|
67
|
+
"command": "npx",
|
|
68
|
+
"args": [
|
|
69
|
+
"-y",
|
|
70
|
+
"@insforge/mcp@latest"
|
|
71
|
+
],
|
|
72
|
+
"env": {
|
|
73
|
+
"API_KEY": "your_api_key",
|
|
74
|
+
"API_BASE_URL": "http://localhost:7130"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
25
79
|
```
|
|
26
80
|
|
|
27
|
-
For detailed setup instructions, see the [
|
|
81
|
+
For detailed setup instructions, see the [Insforge Documentation](https://docs.insforge.dev).
|
|
28
82
|
|
|
29
83
|
## 📄 License
|
|
30
84
|
|
|
@@ -778,28 +778,6 @@ function registerInsforgeTools(server, config = {}) {
|
|
|
778
778
|
throw new Error(`Unable to retrieve ${docType} documentation: ${errMsg}`);
|
|
779
779
|
}
|
|
780
780
|
};
|
|
781
|
-
const fetchInsforgeInstructionsContext = async () => {
|
|
782
|
-
try {
|
|
783
|
-
return await fetchDocumentation("instructions");
|
|
784
|
-
} catch (error) {
|
|
785
|
-
console.error("Failed to fetch insforge-instructions.md:", error);
|
|
786
|
-
return null;
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
const addBackgroundContext = async (response) => {
|
|
790
|
-
const context = await fetchInsforgeInstructionsContext();
|
|
791
|
-
if (context && response.content && Array.isArray(response.content)) {
|
|
792
|
-
response.content.push({
|
|
793
|
-
type: "text",
|
|
794
|
-
text: `
|
|
795
|
-
|
|
796
|
-
---
|
|
797
|
-
\u{1F527} INSFORGE DEVELOPMENT RULES (Auto-loaded):
|
|
798
|
-
${context}`
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
return response;
|
|
802
|
-
};
|
|
803
781
|
server.tool(
|
|
804
782
|
"get-instructions",
|
|
805
783
|
"Instruction Essential backend setup tool. <critical>MANDATORY: You MUST use this tool FIRST before attempting any backend operations. Contains required API endpoints, authentication details, and setup instructions.</critical>",
|
|
@@ -807,7 +785,7 @@ ${context}`
|
|
|
807
785
|
withUsageTracking("get-instructions", async () => {
|
|
808
786
|
try {
|
|
809
787
|
const content = await fetchDocumentation("instructions");
|
|
810
|
-
|
|
788
|
+
return {
|
|
811
789
|
content: [
|
|
812
790
|
{
|
|
813
791
|
type: "text",
|
|
@@ -815,13 +793,11 @@ ${context}`
|
|
|
815
793
|
}
|
|
816
794
|
]
|
|
817
795
|
};
|
|
818
|
-
return await addBackgroundContext(response);
|
|
819
796
|
} catch (error) {
|
|
820
797
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
821
|
-
|
|
798
|
+
return {
|
|
822
799
|
content: [{ type: "text", text: `Error: ${errMsg}` }]
|
|
823
800
|
};
|
|
824
|
-
return await addBackgroundContext(errorResponse);
|
|
825
801
|
}
|
|
826
802
|
})
|
|
827
803
|
);
|
|
@@ -831,14 +807,14 @@ ${context}`
|
|
|
831
807
|
{},
|
|
832
808
|
async () => {
|
|
833
809
|
try {
|
|
834
|
-
return
|
|
810
|
+
return {
|
|
835
811
|
content: [{ type: "text", text: `API key: ${getApiKey()}` }]
|
|
836
|
-
}
|
|
812
|
+
};
|
|
837
813
|
} catch (error) {
|
|
838
814
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
839
|
-
return
|
|
815
|
+
return {
|
|
840
816
|
content: [{ type: "text", text: `Error: ${errMsg}` }]
|
|
841
|
-
}
|
|
817
|
+
};
|
|
842
818
|
}
|
|
843
819
|
}
|
|
844
820
|
);
|
|
@@ -859,17 +835,17 @@ ${context}`
|
|
|
859
835
|
}
|
|
860
836
|
});
|
|
861
837
|
const result = await handleApiResponse(response);
|
|
862
|
-
return
|
|
838
|
+
return {
|
|
863
839
|
content: [
|
|
864
840
|
{
|
|
865
841
|
type: "text",
|
|
866
842
|
text: formatSuccessMessage("Schema retrieved", result)
|
|
867
843
|
}
|
|
868
844
|
]
|
|
869
|
-
}
|
|
845
|
+
};
|
|
870
846
|
} catch (error) {
|
|
871
847
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
872
|
-
return
|
|
848
|
+
return {
|
|
873
849
|
content: [
|
|
874
850
|
{
|
|
875
851
|
type: "text",
|
|
@@ -877,7 +853,7 @@ ${context}`
|
|
|
877
853
|
}
|
|
878
854
|
],
|
|
879
855
|
isError: true
|
|
880
|
-
}
|
|
856
|
+
};
|
|
881
857
|
}
|
|
882
858
|
})
|
|
883
859
|
);
|
|
@@ -897,7 +873,7 @@ ${context}`
|
|
|
897
873
|
}
|
|
898
874
|
});
|
|
899
875
|
const metadata = await handleApiResponse(response);
|
|
900
|
-
return
|
|
876
|
+
return {
|
|
901
877
|
content: [
|
|
902
878
|
{
|
|
903
879
|
type: "text",
|
|
@@ -906,10 +882,10 @@ ${context}`
|
|
|
906
882
|
${JSON.stringify(metadata, null, 2)}`
|
|
907
883
|
}
|
|
908
884
|
]
|
|
909
|
-
}
|
|
885
|
+
};
|
|
910
886
|
} catch (error) {
|
|
911
887
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
912
|
-
return
|
|
888
|
+
return {
|
|
913
889
|
content: [
|
|
914
890
|
{
|
|
915
891
|
type: "text",
|
|
@@ -917,7 +893,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
917
893
|
}
|
|
918
894
|
],
|
|
919
895
|
isError: true
|
|
920
|
-
}
|
|
896
|
+
};
|
|
921
897
|
}
|
|
922
898
|
})
|
|
923
899
|
);
|
|
@@ -944,17 +920,17 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
944
920
|
body: JSON.stringify(requestBody)
|
|
945
921
|
});
|
|
946
922
|
const result = await handleApiResponse(response);
|
|
947
|
-
return
|
|
923
|
+
return {
|
|
948
924
|
content: [
|
|
949
925
|
{
|
|
950
926
|
type: "text",
|
|
951
927
|
text: formatSuccessMessage("SQL query executed", result)
|
|
952
928
|
}
|
|
953
929
|
]
|
|
954
|
-
}
|
|
930
|
+
};
|
|
955
931
|
} catch (error) {
|
|
956
932
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
957
|
-
return
|
|
933
|
+
return {
|
|
958
934
|
content: [
|
|
959
935
|
{
|
|
960
936
|
type: "text",
|
|
@@ -962,7 +938,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
962
938
|
}
|
|
963
939
|
],
|
|
964
940
|
isError: true
|
|
965
|
-
}
|
|
941
|
+
};
|
|
966
942
|
}
|
|
967
943
|
})
|
|
968
944
|
);
|
|
@@ -995,7 +971,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
995
971
|
});
|
|
996
972
|
const result = await handleApiResponse(response);
|
|
997
973
|
const message = result.success ? `Successfully processed ${result.rowsAffected} of ${result.totalRecords} records into table "${result.table}"` : result.message || "Bulk upsert operation completed";
|
|
998
|
-
return
|
|
974
|
+
return {
|
|
999
975
|
content: [
|
|
1000
976
|
{
|
|
1001
977
|
type: "text",
|
|
@@ -1008,10 +984,10 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1008
984
|
})
|
|
1009
985
|
}
|
|
1010
986
|
]
|
|
1011
|
-
}
|
|
987
|
+
};
|
|
1012
988
|
} catch (error) {
|
|
1013
989
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
1014
|
-
return
|
|
990
|
+
return {
|
|
1015
991
|
content: [
|
|
1016
992
|
{
|
|
1017
993
|
type: "text",
|
|
@@ -1019,7 +995,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1019
995
|
}
|
|
1020
996
|
],
|
|
1021
997
|
isError: true
|
|
1022
|
-
}
|
|
998
|
+
};
|
|
1023
999
|
}
|
|
1024
1000
|
})
|
|
1025
1001
|
);
|
|
@@ -1042,17 +1018,17 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1042
1018
|
body: JSON.stringify({ bucketName, isPublic })
|
|
1043
1019
|
});
|
|
1044
1020
|
const result = await handleApiResponse(response);
|
|
1045
|
-
return
|
|
1021
|
+
return {
|
|
1046
1022
|
content: [
|
|
1047
1023
|
{
|
|
1048
1024
|
type: "text",
|
|
1049
1025
|
text: formatSuccessMessage("Bucket created", result)
|
|
1050
1026
|
}
|
|
1051
1027
|
]
|
|
1052
|
-
}
|
|
1028
|
+
};
|
|
1053
1029
|
} catch (error) {
|
|
1054
1030
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
1055
|
-
return
|
|
1031
|
+
return {
|
|
1056
1032
|
content: [
|
|
1057
1033
|
{
|
|
1058
1034
|
type: "text",
|
|
@@ -1060,7 +1036,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1060
1036
|
}
|
|
1061
1037
|
],
|
|
1062
1038
|
isError: true
|
|
1063
|
-
}
|
|
1039
|
+
};
|
|
1064
1040
|
}
|
|
1065
1041
|
})
|
|
1066
1042
|
);
|
|
@@ -1077,17 +1053,17 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1077
1053
|
}
|
|
1078
1054
|
});
|
|
1079
1055
|
const result = await handleApiResponse(response);
|
|
1080
|
-
return
|
|
1056
|
+
return {
|
|
1081
1057
|
content: [
|
|
1082
1058
|
{
|
|
1083
1059
|
type: "text",
|
|
1084
1060
|
text: formatSuccessMessage("Buckets retrieved", result)
|
|
1085
1061
|
}
|
|
1086
1062
|
]
|
|
1087
|
-
}
|
|
1063
|
+
};
|
|
1088
1064
|
} catch (error) {
|
|
1089
1065
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
1090
|
-
return
|
|
1066
|
+
return {
|
|
1091
1067
|
content: [
|
|
1092
1068
|
{
|
|
1093
1069
|
type: "text",
|
|
@@ -1095,7 +1071,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1095
1071
|
}
|
|
1096
1072
|
],
|
|
1097
1073
|
isError: true
|
|
1098
|
-
}
|
|
1074
|
+
};
|
|
1099
1075
|
}
|
|
1100
1076
|
})
|
|
1101
1077
|
);
|
|
@@ -1116,17 +1092,17 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1116
1092
|
}
|
|
1117
1093
|
});
|
|
1118
1094
|
const result = await handleApiResponse(response);
|
|
1119
|
-
return
|
|
1095
|
+
return {
|
|
1120
1096
|
content: [
|
|
1121
1097
|
{
|
|
1122
1098
|
type: "text",
|
|
1123
1099
|
text: formatSuccessMessage("Bucket deleted", result)
|
|
1124
1100
|
}
|
|
1125
1101
|
]
|
|
1126
|
-
}
|
|
1102
|
+
};
|
|
1127
1103
|
} catch (error) {
|
|
1128
1104
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
1129
|
-
return
|
|
1105
|
+
return {
|
|
1130
1106
|
content: [
|
|
1131
1107
|
{
|
|
1132
1108
|
type: "text",
|
|
@@ -1134,7 +1110,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1134
1110
|
}
|
|
1135
1111
|
],
|
|
1136
1112
|
isError: true
|
|
1137
|
-
}
|
|
1113
|
+
};
|
|
1138
1114
|
}
|
|
1139
1115
|
})
|
|
1140
1116
|
);
|
|
@@ -1172,7 +1148,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1172
1148
|
})
|
|
1173
1149
|
});
|
|
1174
1150
|
const result = await handleApiResponse(response);
|
|
1175
|
-
return
|
|
1151
|
+
return {
|
|
1176
1152
|
content: [
|
|
1177
1153
|
{
|
|
1178
1154
|
type: "text",
|
|
@@ -1182,10 +1158,10 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1182
1158
|
)
|
|
1183
1159
|
}
|
|
1184
1160
|
]
|
|
1185
|
-
}
|
|
1161
|
+
};
|
|
1186
1162
|
} catch (error) {
|
|
1187
1163
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
1188
|
-
return
|
|
1164
|
+
return {
|
|
1189
1165
|
content: [
|
|
1190
1166
|
{
|
|
1191
1167
|
type: "text",
|
|
@@ -1193,7 +1169,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1193
1169
|
}
|
|
1194
1170
|
],
|
|
1195
1171
|
isError: true
|
|
1196
|
-
}
|
|
1172
|
+
};
|
|
1197
1173
|
}
|
|
1198
1174
|
})
|
|
1199
1175
|
);
|
|
@@ -1212,17 +1188,17 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1212
1188
|
}
|
|
1213
1189
|
});
|
|
1214
1190
|
const result = await handleApiResponse(response);
|
|
1215
|
-
return
|
|
1191
|
+
return {
|
|
1216
1192
|
content: [
|
|
1217
1193
|
{
|
|
1218
1194
|
type: "text",
|
|
1219
1195
|
text: formatSuccessMessage(`Edge function '${args.slug}' details`, result)
|
|
1220
1196
|
}
|
|
1221
1197
|
]
|
|
1222
|
-
}
|
|
1198
|
+
};
|
|
1223
1199
|
} catch (error) {
|
|
1224
1200
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
1225
|
-
return
|
|
1201
|
+
return {
|
|
1226
1202
|
content: [
|
|
1227
1203
|
{
|
|
1228
1204
|
type: "text",
|
|
@@ -1230,7 +1206,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1230
1206
|
}
|
|
1231
1207
|
],
|
|
1232
1208
|
isError: true
|
|
1233
|
-
}
|
|
1209
|
+
};
|
|
1234
1210
|
}
|
|
1235
1211
|
})
|
|
1236
1212
|
);
|
|
@@ -1275,7 +1251,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1275
1251
|
});
|
|
1276
1252
|
const result = await handleApiResponse(response);
|
|
1277
1253
|
const fileInfo = args.codeFile ? ` from ${args.codeFile}` : "";
|
|
1278
|
-
return
|
|
1254
|
+
return {
|
|
1279
1255
|
content: [
|
|
1280
1256
|
{
|
|
1281
1257
|
type: "text",
|
|
@@ -1285,10 +1261,10 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1285
1261
|
)
|
|
1286
1262
|
}
|
|
1287
1263
|
]
|
|
1288
|
-
}
|
|
1264
|
+
};
|
|
1289
1265
|
} catch (error) {
|
|
1290
1266
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
1291
|
-
return
|
|
1267
|
+
return {
|
|
1292
1268
|
content: [
|
|
1293
1269
|
{
|
|
1294
1270
|
type: "text",
|
|
@@ -1296,7 +1272,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1296
1272
|
}
|
|
1297
1273
|
],
|
|
1298
1274
|
isError: true
|
|
1299
|
-
}
|
|
1275
|
+
};
|
|
1300
1276
|
}
|
|
1301
1277
|
})
|
|
1302
1278
|
);
|
|
@@ -1315,17 +1291,17 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1315
1291
|
}
|
|
1316
1292
|
});
|
|
1317
1293
|
const result = await handleApiResponse(response);
|
|
1318
|
-
return
|
|
1294
|
+
return {
|
|
1319
1295
|
content: [
|
|
1320
1296
|
{
|
|
1321
1297
|
type: "text",
|
|
1322
1298
|
text: formatSuccessMessage(`Edge function '${args.slug}' deleted successfully`, result)
|
|
1323
1299
|
}
|
|
1324
1300
|
]
|
|
1325
|
-
}
|
|
1301
|
+
};
|
|
1326
1302
|
} catch (error) {
|
|
1327
1303
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
1328
|
-
return
|
|
1304
|
+
return {
|
|
1329
1305
|
content: [
|
|
1330
1306
|
{
|
|
1331
1307
|
type: "text",
|
|
@@ -1333,7 +1309,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1333
1309
|
}
|
|
1334
1310
|
],
|
|
1335
1311
|
isError: true
|
|
1336
|
-
}
|
|
1312
|
+
};
|
|
1337
1313
|
}
|
|
1338
1314
|
})
|
|
1339
1315
|
);
|
|
@@ -1357,17 +1333,17 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1357
1333
|
}
|
|
1358
1334
|
});
|
|
1359
1335
|
const result = await handleApiResponse(response);
|
|
1360
|
-
return
|
|
1336
|
+
return {
|
|
1361
1337
|
content: [
|
|
1362
1338
|
{
|
|
1363
1339
|
type: "text",
|
|
1364
1340
|
text: formatSuccessMessage(`Latest logs from ${source}`, result)
|
|
1365
1341
|
}
|
|
1366
1342
|
]
|
|
1367
|
-
}
|
|
1343
|
+
};
|
|
1368
1344
|
} catch (error) {
|
|
1369
1345
|
const errMsg = error instanceof Error ? error.message : "Unknown error occurred";
|
|
1370
|
-
return
|
|
1346
|
+
return {
|
|
1371
1347
|
content: [
|
|
1372
1348
|
{
|
|
1373
1349
|
type: "text",
|
|
@@ -1375,7 +1351,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1375
1351
|
}
|
|
1376
1352
|
],
|
|
1377
1353
|
isError: true
|
|
1378
|
-
}
|
|
1354
|
+
};
|
|
1379
1355
|
}
|
|
1380
1356
|
})
|
|
1381
1357
|
);
|
package/dist/http-server.js
CHANGED
package/dist/index.js
CHANGED
package/mcp.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insforge/mcp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5-dev.1",
|
|
4
4
|
"description": "MCP (Model Context Protocol) server for Insforge backend-as-a-service",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,8 +21,17 @@
|
|
|
21
21
|
],
|
|
22
22
|
"author": "Insforge",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/InsForge/insforge-mcp.git"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/InsForge/insforge-mcp#readme",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/InsForge/insforge-mcp/issues"
|
|
31
|
+
},
|
|
24
32
|
"files": [
|
|
25
|
-
"dist"
|
|
33
|
+
"dist",
|
|
34
|
+
"mcp.json"
|
|
26
35
|
],
|
|
27
36
|
"dependencies": {
|
|
28
37
|
"@insforge/shared-schemas": "^1.1.1",
|