@nimblebrain/mpak 0.0.2 → 0.2.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 +10 -198
- package/README.md +50 -360
- package/dist/index.d.ts +0 -2
- package/dist/index.js +2113 -4
- package/dist/index.js.map +1 -1
- package/package.json +32 -29
- package/.claude/settings.local.json +0 -19
- package/.env.example +0 -13
- package/.github/workflows/ci.yml +0 -27
- package/CLAUDE.md +0 -271
- package/dist/commands/config.d.ts +0 -31
- package/dist/commands/config.d.ts.map +0 -1
- package/dist/commands/config.js +0 -129
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/packages/pull.d.ts +0 -11
- package/dist/commands/packages/pull.d.ts.map +0 -1
- package/dist/commands/packages/pull.js +0 -72
- package/dist/commands/packages/pull.js.map +0 -1
- package/dist/commands/packages/run.d.ts +0 -36
- package/dist/commands/packages/run.d.ts.map +0 -1
- package/dist/commands/packages/run.js +0 -348
- package/dist/commands/packages/run.js.map +0 -1
- package/dist/commands/packages/search.d.ts +0 -12
- package/dist/commands/packages/search.d.ts.map +0 -1
- package/dist/commands/packages/search.js +0 -63
- package/dist/commands/packages/search.js.map +0 -1
- package/dist/commands/packages/show.d.ts +0 -8
- package/dist/commands/packages/show.d.ts.map +0 -1
- package/dist/commands/packages/show.js +0 -109
- package/dist/commands/packages/show.js.map +0 -1
- package/dist/commands/search.d.ts +0 -12
- package/dist/commands/search.d.ts.map +0 -1
- package/dist/commands/search.js +0 -144
- package/dist/commands/search.js.map +0 -1
- package/dist/commands/skills/index.d.ts +0 -8
- package/dist/commands/skills/index.d.ts.map +0 -1
- package/dist/commands/skills/index.js +0 -8
- package/dist/commands/skills/index.js.map +0 -1
- package/dist/commands/skills/install.d.ts +0 -9
- package/dist/commands/skills/install.d.ts.map +0 -1
- package/dist/commands/skills/install.js +0 -110
- package/dist/commands/skills/install.js.map +0 -1
- package/dist/commands/skills/list.d.ts +0 -8
- package/dist/commands/skills/list.d.ts.map +0 -1
- package/dist/commands/skills/list.js +0 -89
- package/dist/commands/skills/list.js.map +0 -1
- package/dist/commands/skills/pack.d.ts +0 -22
- package/dist/commands/skills/pack.d.ts.map +0 -1
- package/dist/commands/skills/pack.js +0 -116
- package/dist/commands/skills/pack.js.map +0 -1
- package/dist/commands/skills/pull.d.ts +0 -9
- package/dist/commands/skills/pull.d.ts.map +0 -1
- package/dist/commands/skills/pull.js +0 -68
- package/dist/commands/skills/pull.js.map +0 -1
- package/dist/commands/skills/search.d.ts +0 -14
- package/dist/commands/skills/search.d.ts.map +0 -1
- package/dist/commands/skills/search.js +0 -53
- package/dist/commands/skills/search.js.map +0 -1
- package/dist/commands/skills/show.d.ts +0 -8
- package/dist/commands/skills/show.d.ts.map +0 -1
- package/dist/commands/skills/show.js +0 -64
- package/dist/commands/skills/show.js.map +0 -1
- package/dist/commands/skills/validate.d.ts +0 -25
- package/dist/commands/skills/validate.d.ts.map +0 -1
- package/dist/commands/skills/validate.js +0 -191
- package/dist/commands/skills/validate.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/api/registry-client.d.ts +0 -63
- package/dist/lib/api/registry-client.d.ts.map +0 -1
- package/dist/lib/api/registry-client.js +0 -167
- package/dist/lib/api/registry-client.js.map +0 -1
- package/dist/lib/api/skills-client.d.ts +0 -30
- package/dist/lib/api/skills-client.d.ts.map +0 -1
- package/dist/lib/api/skills-client.js +0 -110
- package/dist/lib/api/skills-client.js.map +0 -1
- package/dist/program.d.ts +0 -12
- package/dist/program.d.ts.map +0 -1
- package/dist/program.js +0 -174
- package/dist/program.js.map +0 -1
- package/dist/schemas/generated/api-responses.d.ts +0 -541
- package/dist/schemas/generated/api-responses.d.ts.map +0 -1
- package/dist/schemas/generated/api-responses.js +0 -313
- package/dist/schemas/generated/api-responses.js.map +0 -1
- package/dist/schemas/generated/auth.d.ts +0 -18
- package/dist/schemas/generated/auth.d.ts.map +0 -1
- package/dist/schemas/generated/auth.js +0 -18
- package/dist/schemas/generated/auth.js.map +0 -1
- package/dist/schemas/generated/index.d.ts +0 -5
- package/dist/schemas/generated/index.d.ts.map +0 -1
- package/dist/schemas/generated/index.js +0 -6
- package/dist/schemas/generated/index.js.map +0 -1
- package/dist/schemas/generated/package.d.ts +0 -43
- package/dist/schemas/generated/package.d.ts.map +0 -1
- package/dist/schemas/generated/package.js +0 -20
- package/dist/schemas/generated/package.js.map +0 -1
- package/dist/schemas/generated/skill.d.ts +0 -381
- package/dist/schemas/generated/skill.d.ts.map +0 -1
- package/dist/schemas/generated/skill.js +0 -216
- package/dist/schemas/generated/skill.js.map +0 -1
- package/dist/utils/config-manager.d.ts +0 -66
- package/dist/utils/config-manager.d.ts.map +0 -1
- package/dist/utils/config-manager.js +0 -193
- package/dist/utils/config-manager.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -12
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -27
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/version.d.ts +0 -5
- package/dist/utils/version.d.ts.map +0 -1
- package/dist/utils/version.js +0 -19
- package/dist/utils/version.js.map +0 -1
- package/eslint.config.js +0 -63
- package/src/commands/config.ts +0 -162
- package/src/commands/packages/pull.ts +0 -96
- package/src/commands/packages/run.test.ts +0 -222
- package/src/commands/packages/run.ts +0 -451
- package/src/commands/packages/search.ts +0 -83
- package/src/commands/packages/show.ts +0 -128
- package/src/commands/search.ts +0 -191
- package/src/commands/skills/index.ts +0 -7
- package/src/commands/skills/install.ts +0 -129
- package/src/commands/skills/list.ts +0 -116
- package/src/commands/skills/pack.test.ts +0 -260
- package/src/commands/skills/pack.ts +0 -145
- package/src/commands/skills/pull.ts +0 -88
- package/src/commands/skills/search.ts +0 -73
- package/src/commands/skills/show.ts +0 -72
- package/src/commands/skills/validate.test.ts +0 -466
- package/src/commands/skills/validate.ts +0 -227
- package/src/index.ts +0 -11
- package/src/lib/api/registry-client.ts +0 -223
- package/src/lib/api/schema.d.ts +0 -520
- package/src/lib/api/skills-client.ts +0 -148
- package/src/program.test.ts +0 -22
- package/src/program.ts +0 -212
- package/src/schemas/config.v1.schema.json +0 -37
- package/src/schemas/generated/api-responses.ts +0 -386
- package/src/schemas/generated/auth.ts +0 -21
- package/src/schemas/generated/index.ts +0 -5
- package/src/schemas/generated/package.ts +0 -29
- package/src/schemas/generated/skill.ts +0 -271
- package/src/utils/config-manager.test.ts +0 -330
- package/src/utils/config-manager.ts +0 -272
- package/src/utils/errors.test.ts +0 -25
- package/src/utils/errors.ts +0 -33
- package/src/utils/version.test.ts +0 -16
- package/src/utils/version.ts +0 -18
- package/test/integration/registry-client.test.ts +0 -180
- package/tsconfig.check.json +0 -9
- package/tsconfig.json +0 -25
- package/vitest.config.ts +0 -14
package/LICENSE
CHANGED
|
@@ -1,201 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
1
|
+
Copyright 2026 NimbleBrain Inc.
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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 2025 NimbleBrain, Inc.
|
|
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.
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
# mpak
|
|
1
|
+
# @nimblebrain/mpak
|
|
2
2
|
|
|
3
|
-
[
|
|
4
|
-
[](https://opensource.org/licenses/Apache-2.0)
|
|
5
|
-
[](https://www.npmjs.com/package/@nimblebrain/mpak)
|
|
6
|
-
[](https://nodejs.org)
|
|
7
|
-
[](https://www.typescriptlang.org/)
|
|
8
|
-
[](https://www.nimblebrain.ai/discord?utm_source=github&utm_medium=readme&utm_campaign=mpak-cli&utm_content=discord-badge)
|
|
9
|
-
|
|
10
|
-
CLI for MCP bundles and Agent Skills.
|
|
3
|
+
CLI for downloading MCPB bundles and Agent Skills from the [mpak registry](https://mpak.dev).
|
|
11
4
|
|
|
12
5
|
## Installation
|
|
13
6
|
|
|
@@ -15,398 +8,95 @@ CLI for MCP bundles and Agent Skills.
|
|
|
15
8
|
npm install -g @nimblebrain/mpak
|
|
16
9
|
```
|
|
17
10
|
|
|
18
|
-
##
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
# Search for everything (bundles + skills)
|
|
22
|
-
mpak search postgres
|
|
23
|
-
|
|
24
|
-
# Search bundles only
|
|
25
|
-
mpak bundle search postgres
|
|
26
|
-
|
|
27
|
-
# Run an MCP server
|
|
28
|
-
mpak bundle run @owner/my-server
|
|
29
|
-
|
|
30
|
-
# Search skills only
|
|
31
|
-
mpak skill search strategy
|
|
32
|
-
|
|
33
|
-
# Install a skill
|
|
34
|
-
mpak skill install @owner/my-skill
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Commands
|
|
38
|
-
|
|
39
|
-
### Unified Search
|
|
40
|
-
|
|
41
|
-
Search across both bundles and skills.
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
# Search everything
|
|
45
|
-
mpak search postgres
|
|
46
|
-
|
|
47
|
-
# Filter by type
|
|
48
|
-
mpak search postgres --type bundle
|
|
49
|
-
mpak search strategy --type skill
|
|
50
|
-
|
|
51
|
-
# Sort and limit
|
|
52
|
-
mpak search mcp --sort downloads --limit 10
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Options:
|
|
56
|
-
- `--type <type>` - Filter by type (bundle, skill)
|
|
57
|
-
- `--sort <field>` - Sort by: downloads, recent, name
|
|
58
|
-
- `--limit <n>` - Limit results
|
|
59
|
-
- `--offset <n>` - Pagination offset
|
|
60
|
-
- `--json` - Output as JSON
|
|
61
|
-
|
|
62
|
-
### Bundle Commands
|
|
63
|
-
|
|
64
|
-
MCP bundle operations for discovering, downloading, and running MCP servers.
|
|
65
|
-
|
|
66
|
-
| Command | Description |
|
|
67
|
-
|---------|-------------|
|
|
68
|
-
| `mpak bundle search <query>` | Search public bundles |
|
|
69
|
-
| `mpak bundle show <package>` | Show bundle details with platforms |
|
|
70
|
-
| `mpak bundle pull <package>` | Download a bundle |
|
|
71
|
-
| `mpak bundle run <package>` | Run an MCP server from the registry |
|
|
72
|
-
|
|
73
|
-
#### bundle search
|
|
74
|
-
|
|
75
|
-
Search for bundles in the registry.
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
mpak bundle search echo
|
|
79
|
-
mpak bundle search --type python echo
|
|
80
|
-
mpak bundle search --sort downloads --limit 10 mcp
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
Options:
|
|
84
|
-
- `--type <type>` - Filter by server type (node, python, binary)
|
|
85
|
-
- `--sort <field>` - Sort by: downloads, recent, name (default: downloads)
|
|
86
|
-
- `--limit <n>` - Limit results (default: 20)
|
|
87
|
-
- `--offset <n>` - Pagination offset
|
|
88
|
-
- `--json` - Output as JSON
|
|
89
|
-
|
|
90
|
-
#### bundle show
|
|
91
|
-
|
|
92
|
-
Display detailed information about a bundle.
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
mpak bundle show @nimblebraininc/echo
|
|
96
|
-
mpak bundle show @nimblebraininc/echo --json
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
Shows:
|
|
100
|
-
- Bundle metadata (name, author, type, license)
|
|
101
|
-
- Provenance info (if published via GitHub Actions OIDC)
|
|
102
|
-
- Download stats
|
|
103
|
-
- Available versions with platforms
|
|
104
|
-
- Install instructions
|
|
105
|
-
|
|
106
|
-
Options:
|
|
107
|
-
- `--json` - Output as JSON
|
|
108
|
-
|
|
109
|
-
#### bundle pull
|
|
110
|
-
|
|
111
|
-
Download a bundle from the registry.
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
# Download latest version for current platform
|
|
115
|
-
mpak bundle pull @nimblebraininc/echo
|
|
116
|
-
|
|
117
|
-
# Download specific version
|
|
118
|
-
mpak bundle pull @nimblebraininc/echo@1.0.0
|
|
119
|
-
|
|
120
|
-
# Download for different platform (cross-compile use case)
|
|
121
|
-
mpak bundle pull @nimblebraininc/echo --os linux --arch arm64
|
|
122
|
-
|
|
123
|
-
# Custom output path
|
|
124
|
-
mpak bundle pull @nimblebraininc/echo -o ./bundles/echo.mcpb
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
Options:
|
|
128
|
-
- `-o, --output <path>` - Output file path
|
|
129
|
-
- `--os <os>` - Target OS: darwin, linux, win32
|
|
130
|
-
- `--arch <arch>` - Target architecture: x64, arm64
|
|
131
|
-
- `--json` - Output download info as JSON (doesn't download)
|
|
132
|
-
|
|
133
|
-
#### bundle run
|
|
134
|
-
|
|
135
|
-
Run an MCP server directly from the registry. Bundles are cached locally for fast subsequent runs.
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
# Run latest version
|
|
139
|
-
mpak bundle run @nimblebraininc/echo
|
|
140
|
-
|
|
141
|
-
# Run specific version
|
|
142
|
-
mpak bundle run @nimblebraininc/echo@1.0.0
|
|
143
|
-
|
|
144
|
-
# Force re-download (update cache)
|
|
145
|
-
mpak bundle run @nimblebraininc/echo --update
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
Options:
|
|
149
|
-
- `--update` - Force re-download even if cached
|
|
11
|
+
## Usage
|
|
150
12
|
|
|
151
|
-
|
|
13
|
+
### Search
|
|
152
14
|
|
|
153
|
-
|
|
154
|
-
{
|
|
155
|
-
"mcpServers": {
|
|
156
|
-
"echo": {
|
|
157
|
-
"command": "mpak",
|
|
158
|
-
"args": ["bundle", "run", "@nimblebraininc/echo"]
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
Bundles are cached in `~/.mpak/cache/` and automatically extracted on first run.
|
|
165
|
-
|
|
166
|
-
### Skill Commands
|
|
167
|
-
|
|
168
|
-
Agent skill operations for validating, packaging, and installing skills.
|
|
169
|
-
|
|
170
|
-
| Command | Description |
|
|
171
|
-
|---------|-------------|
|
|
172
|
-
| `mpak skill validate <path>` | Validate a skill directory |
|
|
173
|
-
| `mpak skill pack <path>` | Create a .skill bundle |
|
|
174
|
-
| `mpak skill search <query>` | Search skills in the registry |
|
|
175
|
-
| `mpak skill show <name>` | Show skill details |
|
|
176
|
-
| `mpak skill pull <name>` | Download a .skill bundle |
|
|
177
|
-
| `mpak skill install <name>` | Install to ~/.claude/skills/ |
|
|
178
|
-
| `mpak skill list` | List installed skills |
|
|
179
|
-
|
|
180
|
-
#### skill validate
|
|
181
|
-
|
|
182
|
-
Validate a skill directory against the [Agent Skills specification](https://agentskills.io/specification).
|
|
15
|
+
Search across both bundles and skills:
|
|
183
16
|
|
|
184
17
|
```bash
|
|
185
|
-
mpak
|
|
186
|
-
mpak
|
|
18
|
+
mpak search <query>
|
|
19
|
+
mpak search <query> --type bundle
|
|
20
|
+
mpak search <query> --type skill
|
|
187
21
|
```
|
|
188
22
|
|
|
189
|
-
|
|
190
|
-
- `--json` - Output as JSON
|
|
191
|
-
|
|
192
|
-
#### skill pack
|
|
193
|
-
|
|
194
|
-
Create a `.skill` bundle from a skill directory.
|
|
23
|
+
### Bundles
|
|
195
24
|
|
|
196
25
|
```bash
|
|
197
|
-
|
|
198
|
-
mpak
|
|
199
|
-
```
|
|
26
|
+
# Search bundles
|
|
27
|
+
mpak bundle search <query>
|
|
200
28
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
- `--json` - Output as JSON
|
|
29
|
+
# Show bundle details
|
|
30
|
+
mpak bundle show @scope/name
|
|
204
31
|
|
|
205
|
-
|
|
32
|
+
# Download a bundle
|
|
33
|
+
mpak bundle pull @scope/name
|
|
34
|
+
mpak bundle pull @scope/name@1.0.0
|
|
206
35
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
mpak
|
|
211
|
-
mpak skill search --category development docs
|
|
212
|
-
mpak skill search --tags documentation,refactoring
|
|
36
|
+
# Run an MCP server from the registry
|
|
37
|
+
mpak run @scope/name
|
|
38
|
+
mpak bundle run @scope/name --update
|
|
39
|
+
mpak bundle run --local ./path/to/bundle.mcpb
|
|
213
40
|
```
|
|
214
41
|
|
|
215
|
-
|
|
216
|
-
- `--tags <tags>` - Filter by tags (comma-separated)
|
|
217
|
-
- `--category <category>` - Filter by category
|
|
218
|
-
- `--surface <surface>` - Filter by surface (claude-code, claude-api, claude-ai)
|
|
219
|
-
- `--sort <field>` - Sort by: downloads, recent, name
|
|
220
|
-
- `--limit <n>` - Limit results
|
|
221
|
-
- `--offset <n>` - Pagination offset
|
|
222
|
-
- `--json` - Output as JSON
|
|
223
|
-
|
|
224
|
-
#### skill show
|
|
225
|
-
|
|
226
|
-
Display detailed information about a skill.
|
|
227
|
-
|
|
228
|
-
```bash
|
|
229
|
-
mpak skill show @nimblebraininc/docs-auditor
|
|
230
|
-
mpak skill show @nimblebraininc/docs-auditor --json
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
Options:
|
|
234
|
-
- `--json` - Output as JSON
|
|
235
|
-
|
|
236
|
-
#### skill pull
|
|
237
|
-
|
|
238
|
-
Download a skill bundle from the registry.
|
|
42
|
+
### Skills
|
|
239
43
|
|
|
240
44
|
```bash
|
|
241
|
-
|
|
242
|
-
mpak skill
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
Options:
|
|
246
|
-
- `-o, --output <path>` - Output file path
|
|
247
|
-
- `--json` - Output as JSON
|
|
45
|
+
# Validate a skill directory
|
|
46
|
+
mpak skill validate ./path/to/skill
|
|
248
47
|
|
|
249
|
-
|
|
48
|
+
# Pack a skill into a .skill bundle
|
|
49
|
+
mpak skill pack ./path/to/skill
|
|
250
50
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
```bash
|
|
254
|
-
mpak skill install @nimblebraininc/docs-auditor
|
|
255
|
-
mpak skill install @nimblebraininc/docs-auditor --force
|
|
256
|
-
```
|
|
51
|
+
# Search skills in the registry
|
|
52
|
+
mpak skill search <query>
|
|
257
53
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
- `--json` - Output as JSON
|
|
54
|
+
# Show skill details
|
|
55
|
+
mpak skill show @scope/name
|
|
261
56
|
|
|
262
|
-
|
|
57
|
+
# Download a .skill bundle
|
|
58
|
+
mpak skill pull @scope/name
|
|
263
59
|
|
|
264
|
-
|
|
60
|
+
# Install a skill to ~/.claude/skills/
|
|
61
|
+
mpak skill install @scope/name
|
|
265
62
|
|
|
266
|
-
|
|
63
|
+
# List installed skills
|
|
267
64
|
mpak skill list
|
|
268
|
-
mpak skill list --json
|
|
269
65
|
```
|
|
270
66
|
|
|
271
|
-
|
|
272
|
-
- `--json` - Output as JSON
|
|
273
|
-
|
|
274
|
-
### Config Commands
|
|
275
|
-
|
|
276
|
-
Manage per-package configuration values (e.g., API keys).
|
|
277
|
-
|
|
278
|
-
| Command | Description |
|
|
279
|
-
|---------|-------------|
|
|
280
|
-
| `mpak config set <pkg> <k=v...>` | Set config values |
|
|
281
|
-
| `mpak config get <pkg>` | Show config (values masked) |
|
|
282
|
-
| `mpak config list` | List packages with config |
|
|
283
|
-
| `mpak config clear <pkg> [key]` | Clear config |
|
|
67
|
+
### Configuration
|
|
284
68
|
|
|
285
69
|
```bash
|
|
286
|
-
# Set
|
|
287
|
-
mpak config set @
|
|
70
|
+
# Set config values for a package
|
|
71
|
+
mpak config set @scope/name api_key=xxx
|
|
288
72
|
|
|
289
73
|
# View stored config (values are masked)
|
|
290
|
-
mpak config get @
|
|
74
|
+
mpak config get @scope/name
|
|
291
75
|
|
|
292
|
-
# List
|
|
76
|
+
# List packages with config
|
|
293
77
|
mpak config list
|
|
294
78
|
|
|
295
79
|
# Clear config
|
|
296
|
-
mpak config clear @
|
|
297
|
-
mpak config clear @
|
|
80
|
+
mpak config clear @scope/name
|
|
81
|
+
mpak config clear @scope/name api_key
|
|
298
82
|
```
|
|
299
83
|
|
|
300
|
-
## Configuration
|
|
301
|
-
|
|
302
|
-
Configuration is stored in `~/.mpak/config.json`:
|
|
303
|
-
|
|
304
|
-
```json
|
|
305
|
-
{
|
|
306
|
-
"version": "1.0.0",
|
|
307
|
-
"lastUpdated": "2025-12-30T...",
|
|
308
|
-
"registryUrl": "https://api.mpak.dev"
|
|
309
|
-
}
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
### Environment Variables
|
|
313
|
-
|
|
314
|
-
| Variable | Description | Default |
|
|
315
|
-
|----------|-------------|---------|
|
|
316
|
-
| `MPAK_REGISTRY_URL` | Registry API URL | `https://api.mpak.dev` |
|
|
317
|
-
|
|
318
|
-
## API
|
|
319
|
-
|
|
320
|
-
The CLI uses the public v1 API:
|
|
321
|
-
|
|
322
|
-
| Endpoint | Description |
|
|
323
|
-
|----------|-------------|
|
|
324
|
-
| `GET /v1/bundles/search` | Search bundles |
|
|
325
|
-
| `GET /v1/bundles/@{scope}/{pkg}` | Get bundle details |
|
|
326
|
-
| `GET /v1/bundles/@{scope}/{pkg}/versions` | List versions with platforms |
|
|
327
|
-
| `GET /v1/bundles/@{scope}/{pkg}/versions/{version}/download` | Get download URL |
|
|
328
|
-
| `GET /v1/skills/search` | Search skills |
|
|
329
|
-
| `GET /v1/skills/@{scope}/{name}` | Get skill details |
|
|
330
|
-
| `GET /v1/skills/@{scope}/{name}/download` | Get skill download URL |
|
|
331
|
-
|
|
332
84
|
## Development
|
|
333
85
|
|
|
334
|
-
### Setup
|
|
335
|
-
|
|
336
|
-
```bash
|
|
337
|
-
npm install
|
|
338
|
-
npm run build
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
### Scripts
|
|
342
|
-
|
|
343
|
-
| Script | Description |
|
|
344
|
-
|--------|-------------|
|
|
345
|
-
| `npm run build` | Build TypeScript to JavaScript |
|
|
346
|
-
| `npm run dev` | Run CLI in development mode |
|
|
347
|
-
| `npm run typecheck` | Type check without building |
|
|
348
|
-
| `npm run generate:types` | Generate types from OpenAPI spec |
|
|
349
|
-
| `npm test` | Run unit tests |
|
|
350
|
-
| `npm run test:all` | Run all tests including integration |
|
|
351
|
-
| `npm run lint` | Lint source code |
|
|
352
|
-
|
|
353
|
-
### Publishing
|
|
354
|
-
|
|
355
86
|
```bash
|
|
356
|
-
#
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
# Beta/prerelease
|
|
360
|
-
npm publish --tag beta
|
|
361
|
-
```
|
|
87
|
+
# Build
|
|
88
|
+
pnpm build
|
|
362
89
|
|
|
363
|
-
|
|
90
|
+
# Run tests
|
|
91
|
+
pnpm test
|
|
364
92
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
cd ../mpak/server
|
|
368
|
-
npm run dev
|
|
369
|
-
```
|
|
93
|
+
# Type checking
|
|
94
|
+
pnpm typecheck
|
|
370
95
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
MPAK_REGISTRY_URL=http://localhost:3200 npm run dev -- bundle search echo
|
|
374
|
-
```
|
|
375
|
-
|
|
376
|
-
### Project Structure
|
|
377
|
-
|
|
378
|
-
```
|
|
379
|
-
src/
|
|
380
|
-
├── index.ts # Entry point
|
|
381
|
-
├── program.ts # Commander program setup
|
|
382
|
-
├── commands/
|
|
383
|
-
│ ├── packages/ # Bundle commands
|
|
384
|
-
│ │ ├── search.ts
|
|
385
|
-
│ │ ├── show.ts
|
|
386
|
-
│ │ ├── pull.ts
|
|
387
|
-
│ │ └── run.ts
|
|
388
|
-
│ ├── skills/ # Skill commands
|
|
389
|
-
│ │ ├── validate.ts
|
|
390
|
-
│ │ ├── pack.ts
|
|
391
|
-
│ │ ├── search.ts
|
|
392
|
-
│ │ ├── show.ts
|
|
393
|
-
│ │ ├── pull.ts
|
|
394
|
-
│ │ ├── install.ts
|
|
395
|
-
│ │ └── list.ts
|
|
396
|
-
│ └── config.ts # Config commands
|
|
397
|
-
├── lib/
|
|
398
|
-
│ └── api/
|
|
399
|
-
│ ├── registry-client.ts # Bundle API client
|
|
400
|
-
│ ├── skills-client.ts # Skills API client
|
|
401
|
-
│ └── schema.d.ts # Generated OpenAPI types
|
|
402
|
-
├── schemas/
|
|
403
|
-
│ └── generated/
|
|
404
|
-
│ └── skill.ts # Skill validation schemas
|
|
405
|
-
└── utils/
|
|
406
|
-
├── config-manager.ts # Config file handling
|
|
407
|
-
└── version.ts # Version helper
|
|
96
|
+
# Lint
|
|
97
|
+
pnpm lint
|
|
408
98
|
```
|
|
409
99
|
|
|
410
100
|
## License
|
|
411
101
|
|
|
412
|
-
|
|
102
|
+
Apache-2.0
|
package/dist/index.d.ts
CHANGED