@nimblebrain/mpak 0.1.0 → 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.
Files changed (151) hide show
  1. package/LICENSE +10 -198
  2. package/README.md +50 -383
  3. package/dist/index.d.ts +0 -2
  4. package/dist/index.js +2113 -4
  5. package/dist/index.js.map +1 -1
  6. package/package.json +32 -29
  7. package/.claude/settings.local.json +0 -19
  8. package/.env.example +0 -13
  9. package/.github/workflows/ci.yml +0 -27
  10. package/CLAUDE.md +0 -283
  11. package/dist/commands/config.d.ts +0 -31
  12. package/dist/commands/config.d.ts.map +0 -1
  13. package/dist/commands/config.js +0 -129
  14. package/dist/commands/config.js.map +0 -1
  15. package/dist/commands/packages/pull.d.ts +0 -11
  16. package/dist/commands/packages/pull.d.ts.map +0 -1
  17. package/dist/commands/packages/pull.js +0 -72
  18. package/dist/commands/packages/pull.js.map +0 -1
  19. package/dist/commands/packages/run.d.ts +0 -47
  20. package/dist/commands/packages/run.d.ts.map +0 -1
  21. package/dist/commands/packages/run.js +0 -419
  22. package/dist/commands/packages/run.js.map +0 -1
  23. package/dist/commands/packages/search.d.ts +0 -12
  24. package/dist/commands/packages/search.d.ts.map +0 -1
  25. package/dist/commands/packages/search.js +0 -63
  26. package/dist/commands/packages/search.js.map +0 -1
  27. package/dist/commands/packages/show.d.ts +0 -8
  28. package/dist/commands/packages/show.d.ts.map +0 -1
  29. package/dist/commands/packages/show.js +0 -109
  30. package/dist/commands/packages/show.js.map +0 -1
  31. package/dist/commands/search.d.ts +0 -12
  32. package/dist/commands/search.d.ts.map +0 -1
  33. package/dist/commands/search.js +0 -144
  34. package/dist/commands/search.js.map +0 -1
  35. package/dist/commands/skills/index.d.ts +0 -8
  36. package/dist/commands/skills/index.d.ts.map +0 -1
  37. package/dist/commands/skills/index.js +0 -8
  38. package/dist/commands/skills/index.js.map +0 -1
  39. package/dist/commands/skills/install.d.ts +0 -9
  40. package/dist/commands/skills/install.d.ts.map +0 -1
  41. package/dist/commands/skills/install.js +0 -110
  42. package/dist/commands/skills/install.js.map +0 -1
  43. package/dist/commands/skills/list.d.ts +0 -8
  44. package/dist/commands/skills/list.d.ts.map +0 -1
  45. package/dist/commands/skills/list.js +0 -89
  46. package/dist/commands/skills/list.js.map +0 -1
  47. package/dist/commands/skills/pack.d.ts +0 -22
  48. package/dist/commands/skills/pack.d.ts.map +0 -1
  49. package/dist/commands/skills/pack.js +0 -116
  50. package/dist/commands/skills/pack.js.map +0 -1
  51. package/dist/commands/skills/pull.d.ts +0 -9
  52. package/dist/commands/skills/pull.d.ts.map +0 -1
  53. package/dist/commands/skills/pull.js +0 -68
  54. package/dist/commands/skills/pull.js.map +0 -1
  55. package/dist/commands/skills/search.d.ts +0 -14
  56. package/dist/commands/skills/search.d.ts.map +0 -1
  57. package/dist/commands/skills/search.js +0 -53
  58. package/dist/commands/skills/search.js.map +0 -1
  59. package/dist/commands/skills/show.d.ts +0 -8
  60. package/dist/commands/skills/show.d.ts.map +0 -1
  61. package/dist/commands/skills/show.js +0 -64
  62. package/dist/commands/skills/show.js.map +0 -1
  63. package/dist/commands/skills/validate.d.ts +0 -25
  64. package/dist/commands/skills/validate.d.ts.map +0 -1
  65. package/dist/commands/skills/validate.js +0 -191
  66. package/dist/commands/skills/validate.js.map +0 -1
  67. package/dist/index.d.ts.map +0 -1
  68. package/dist/lib/api/registry-client.d.ts +0 -63
  69. package/dist/lib/api/registry-client.d.ts.map +0 -1
  70. package/dist/lib/api/registry-client.js +0 -167
  71. package/dist/lib/api/registry-client.js.map +0 -1
  72. package/dist/lib/api/skills-client.d.ts +0 -30
  73. package/dist/lib/api/skills-client.d.ts.map +0 -1
  74. package/dist/lib/api/skills-client.js +0 -110
  75. package/dist/lib/api/skills-client.js.map +0 -1
  76. package/dist/program.d.ts +0 -12
  77. package/dist/program.d.ts.map +0 -1
  78. package/dist/program.js +0 -186
  79. package/dist/program.js.map +0 -1
  80. package/dist/schemas/generated/api-responses.d.ts +0 -541
  81. package/dist/schemas/generated/api-responses.d.ts.map +0 -1
  82. package/dist/schemas/generated/api-responses.js +0 -313
  83. package/dist/schemas/generated/api-responses.js.map +0 -1
  84. package/dist/schemas/generated/auth.d.ts +0 -18
  85. package/dist/schemas/generated/auth.d.ts.map +0 -1
  86. package/dist/schemas/generated/auth.js +0 -18
  87. package/dist/schemas/generated/auth.js.map +0 -1
  88. package/dist/schemas/generated/index.d.ts +0 -5
  89. package/dist/schemas/generated/index.d.ts.map +0 -1
  90. package/dist/schemas/generated/index.js +0 -6
  91. package/dist/schemas/generated/index.js.map +0 -1
  92. package/dist/schemas/generated/package.d.ts +0 -43
  93. package/dist/schemas/generated/package.d.ts.map +0 -1
  94. package/dist/schemas/generated/package.js +0 -20
  95. package/dist/schemas/generated/package.js.map +0 -1
  96. package/dist/schemas/generated/skill.d.ts +0 -381
  97. package/dist/schemas/generated/skill.d.ts.map +0 -1
  98. package/dist/schemas/generated/skill.js +0 -216
  99. package/dist/schemas/generated/skill.js.map +0 -1
  100. package/dist/utils/config-manager.d.ts +0 -66
  101. package/dist/utils/config-manager.d.ts.map +0 -1
  102. package/dist/utils/config-manager.js +0 -193
  103. package/dist/utils/config-manager.js.map +0 -1
  104. package/dist/utils/errors.d.ts +0 -12
  105. package/dist/utils/errors.d.ts.map +0 -1
  106. package/dist/utils/errors.js +0 -27
  107. package/dist/utils/errors.js.map +0 -1
  108. package/dist/utils/version.d.ts +0 -5
  109. package/dist/utils/version.d.ts.map +0 -1
  110. package/dist/utils/version.js +0 -19
  111. package/dist/utils/version.js.map +0 -1
  112. package/eslint.config.js +0 -63
  113. package/src/commands/config.ts +0 -162
  114. package/src/commands/packages/pull.ts +0 -96
  115. package/src/commands/packages/run.test.ts +0 -261
  116. package/src/commands/packages/run.ts +0 -536
  117. package/src/commands/packages/search.ts +0 -83
  118. package/src/commands/packages/show.ts +0 -128
  119. package/src/commands/search.ts +0 -191
  120. package/src/commands/skills/index.ts +0 -7
  121. package/src/commands/skills/install.ts +0 -129
  122. package/src/commands/skills/list.ts +0 -116
  123. package/src/commands/skills/pack.test.ts +0 -260
  124. package/src/commands/skills/pack.ts +0 -145
  125. package/src/commands/skills/pull.ts +0 -88
  126. package/src/commands/skills/search.ts +0 -73
  127. package/src/commands/skills/show.ts +0 -72
  128. package/src/commands/skills/validate.test.ts +0 -466
  129. package/src/commands/skills/validate.ts +0 -227
  130. package/src/index.ts +0 -11
  131. package/src/lib/api/registry-client.ts +0 -223
  132. package/src/lib/api/schema.d.ts +0 -520
  133. package/src/lib/api/skills-client.ts +0 -148
  134. package/src/program.test.ts +0 -22
  135. package/src/program.ts +0 -226
  136. package/src/schemas/config.v1.schema.json +0 -37
  137. package/src/schemas/generated/api-responses.ts +0 -386
  138. package/src/schemas/generated/auth.ts +0 -21
  139. package/src/schemas/generated/index.ts +0 -5
  140. package/src/schemas/generated/package.ts +0 -29
  141. package/src/schemas/generated/skill.ts +0 -271
  142. package/src/utils/config-manager.test.ts +0 -330
  143. package/src/utils/config-manager.ts +0 -272
  144. package/src/utils/errors.test.ts +0 -25
  145. package/src/utils/errors.ts +0 -33
  146. package/src/utils/version.test.ts +0 -16
  147. package/src/utils/version.ts +0 -18
  148. package/test/integration/registry-client.test.ts +0 -180
  149. package/tsconfig.check.json +0 -9
  150. package/tsconfig.json +0 -25
  151. package/vitest.config.ts +0 -14
package/LICENSE CHANGED
@@ -1,201 +1,13 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
1
+ Copyright 2026 NimbleBrain Inc.
4
2
 
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
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
- 1. Definitions.
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
8
 
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 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 CLI
1
+ # @nimblebrain/mpak
2
2
 
3
- [![CI](https://github.com/NimbleBrainInc/mpak-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/NimbleBrainInc/mpak-cli/actions/workflows/ci.yml)
4
- [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
5
- [![npm](https://img.shields.io/npm/v/@nimblebrain/mpak)](https://www.npmjs.com/package/@nimblebrain/mpak)
6
- [![node](https://img.shields.io/node/v/@nimblebrain/mpak)](https://nodejs.org)
7
- [![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
8
- [![Discord](https://img.shields.io/badge/Discord-%235865F2.svg?logo=discord&logoColor=white)](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,421 +8,95 @@ CLI for MCP bundles and Agent Skills.
15
8
  npm install -g @nimblebrain/mpak
16
9
  ```
17
10
 
18
- ## Quick Start
19
-
20
- ```bash
21
- # Search for everything (bundles + skills)
22
- mpak search postgres
23
-
24
- # Run an MCP server
25
- mpak run @owner/my-server
11
+ ## Usage
26
12
 
27
- # Search skills only
28
- mpak skill search strategy
13
+ ### Search
29
14
 
30
- # Install a skill
31
- mpak skill install @owner/my-skill
32
- ```
33
-
34
- ## Claude Code Integration
35
-
36
- Add any mpak bundle to Claude Code with a single command:
15
+ Search across both bundles and skills:
37
16
 
38
17
  ```bash
39
- claude mcp add --transport stdio echo -- mpak run @nimblebraininc/echo
18
+ mpak search <query>
19
+ mpak search <query> --type bundle
20
+ mpak search <query> --type skill
40
21
  ```
41
22
 
42
- For bundles requiring API keys:
23
+ ### Bundles
43
24
 
44
25
  ```bash
45
- # Set config once
46
- mpak config set @nimblebraininc/ipinfo api_key=your_token
26
+ # Search bundles
27
+ mpak bundle search <query>
47
28
 
48
- # Then add to Claude Code
49
- claude mcp add --transport stdio ipinfo -- mpak run @nimblebraininc/ipinfo
50
- ```
29
+ # Show bundle details
30
+ mpak bundle show @scope/name
51
31
 
52
- ## Commands
32
+ # Download a bundle
33
+ mpak bundle pull @scope/name
34
+ mpak bundle pull @scope/name@1.0.0
53
35
 
54
- ### Unified Search
55
-
56
- Search across both bundles and skills.
57
-
58
- ```bash
59
- # Search everything
60
- mpak search postgres
61
-
62
- # Filter by type
63
- mpak search postgres --type bundle
64
- mpak search strategy --type skill
65
-
66
- # Sort and limit
67
- mpak search mcp --sort downloads --limit 10
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
68
40
  ```
69
41
 
70
- Options:
71
- - `--type <type>` - Filter by type (bundle, skill)
72
- - `--sort <field>` - Sort by: downloads, recent, name
73
- - `--limit <n>` - Limit results
74
- - `--offset <n>` - Pagination offset
75
- - `--json` - Output as JSON
76
-
77
- ### Bundle Commands
78
-
79
- MCP bundle operations for discovering, downloading, and running MCP servers.
80
-
81
- | Command | Description |
82
- |---------|-------------|
83
- | `mpak bundle search <query>` | Search public bundles |
84
- | `mpak bundle show <package>` | Show bundle details with platforms |
85
- | `mpak bundle pull <package>` | Download a bundle |
86
- | `mpak bundle run <package>` | Run an MCP server from the registry |
87
-
88
- #### bundle search
89
-
90
- Search for bundles in the registry.
91
-
92
- ```bash
93
- mpak bundle search echo
94
- mpak bundle search --type python echo
95
- mpak bundle search --sort downloads --limit 10 mcp
96
- ```
97
-
98
- Options:
99
- - `--type <type>` - Filter by server type (node, python, binary)
100
- - `--sort <field>` - Sort by: downloads, recent, name (default: downloads)
101
- - `--limit <n>` - Limit results (default: 20)
102
- - `--offset <n>` - Pagination offset
103
- - `--json` - Output as JSON
104
-
105
- #### bundle show
106
-
107
- Display detailed information about a bundle.
42
+ ### Skills
108
43
 
109
44
  ```bash
110
- mpak bundle show @nimblebraininc/echo
111
- mpak bundle show @nimblebraininc/echo --json
112
- ```
113
-
114
- Shows:
115
- - Bundle metadata (name, author, type, license)
116
- - Provenance info (if published via GitHub Actions OIDC)
117
- - Download stats
118
- - Available versions with platforms
119
- - Install instructions
45
+ # Validate a skill directory
46
+ mpak skill validate ./path/to/skill
120
47
 
121
- Options:
122
- - `--json` - Output as JSON
48
+ # Pack a skill into a .skill bundle
49
+ mpak skill pack ./path/to/skill
123
50
 
124
- #### bundle pull
125
-
126
- Download a bundle from the registry.
127
-
128
- ```bash
129
- # Download latest version for current platform
130
- mpak bundle pull @nimblebraininc/echo
51
+ # Search skills in the registry
52
+ mpak skill search <query>
131
53
 
132
- # Download specific version
133
- mpak bundle pull @nimblebraininc/echo@1.0.0
134
-
135
- # Download for different platform (cross-compile use case)
136
- mpak bundle pull @nimblebraininc/echo --os linux --arch arm64
137
-
138
- # Custom output path
139
- mpak bundle pull @nimblebraininc/echo -o ./bundles/echo.mcpb
140
- ```
141
-
142
- Options:
143
- - `-o, --output <path>` - Output file path
144
- - `--os <os>` - Target OS: darwin, linux, win32
145
- - `--arch <arch>` - Target architecture: x64, arm64
146
- - `--json` - Output download info as JSON (doesn't download)
147
-
148
- #### bundle run
149
-
150
- Run an MCP server directly from the registry. Bundles are cached locally for fast subsequent runs.
151
-
152
- ```bash
153
- # Run latest version
154
- mpak bundle run @nimblebraininc/echo
155
-
156
- # Run specific version
157
- mpak bundle run @nimblebraininc/echo@1.0.0
158
-
159
- # Force re-download (update cache)
160
- mpak bundle run @nimblebraininc/echo --update
161
- ```
162
-
163
- Options:
164
- - `--update` - Force re-download even if cached
165
-
166
- > **Tip:** Use `mpak run` as a shortcut for `mpak bundle run`.
167
-
168
- **Claude Code:**
169
-
170
- ```bash
171
- claude mcp add --transport stdio echo -- mpak run @nimblebraininc/echo
172
- ```
173
-
174
- **Claude Desktop:**
175
-
176
- ```json
177
- {
178
- "mcpServers": {
179
- "echo": {
180
- "command": "mpak",
181
- "args": ["run", "@nimblebraininc/echo"]
182
- }
183
- }
184
- }
185
- ```
186
-
187
- Bundles are cached in `~/.mpak/cache/` and automatically extracted on first run.
188
-
189
- ### Skill Commands
190
-
191
- Agent skill operations for validating, packaging, and installing skills.
192
-
193
- | Command | Description |
194
- |---------|-------------|
195
- | `mpak skill validate <path>` | Validate a skill directory |
196
- | `mpak skill pack <path>` | Create a .skill bundle |
197
- | `mpak skill search <query>` | Search skills in the registry |
198
- | `mpak skill show <name>` | Show skill details |
199
- | `mpak skill pull <name>` | Download a .skill bundle |
200
- | `mpak skill install <name>` | Install to ~/.claude/skills/ |
201
- | `mpak skill list` | List installed skills |
202
-
203
- #### skill validate
204
-
205
- Validate a skill directory against the [Agent Skills specification](https://agentskills.io/specification).
206
-
207
- ```bash
208
- mpak skill validate ./my-skill
209
- mpak skill validate ./my-skill --json
210
- ```
54
+ # Show skill details
55
+ mpak skill show @scope/name
211
56
 
212
- Options:
213
- - `--json` - Output as JSON
57
+ # Download a .skill bundle
58
+ mpak skill pull @scope/name
214
59
 
215
- #### skill pack
60
+ # Install a skill to ~/.claude/skills/
61
+ mpak skill install @scope/name
216
62
 
217
- Create a `.skill` bundle from a skill directory.
218
-
219
- ```bash
220
- mpak skill pack ./my-skill
221
- mpak skill pack ./my-skill -o ./dist/my-skill.skill
222
- ```
223
-
224
- Options:
225
- - `-o, --output <path>` - Output file path
226
- - `--json` - Output as JSON
227
-
228
- #### skill search
229
-
230
- Search for skills in the registry.
231
-
232
- ```bash
233
- mpak skill search strategy
234
- mpak skill search --category development docs
235
- mpak skill search --tags documentation,refactoring
236
- ```
237
-
238
- Options:
239
- - `--tags <tags>` - Filter by tags (comma-separated)
240
- - `--category <category>` - Filter by category
241
- - `--surface <surface>` - Filter by surface (claude-code, claude-api, claude-ai)
242
- - `--sort <field>` - Sort by: downloads, recent, name
243
- - `--limit <n>` - Limit results
244
- - `--offset <n>` - Pagination offset
245
- - `--json` - Output as JSON
246
-
247
- #### skill show
248
-
249
- Display detailed information about a skill.
250
-
251
- ```bash
252
- mpak skill show @nimblebraininc/docs-auditor
253
- mpak skill show @nimblebraininc/docs-auditor --json
254
- ```
255
-
256
- Options:
257
- - `--json` - Output as JSON
258
-
259
- #### skill pull
260
-
261
- Download a skill bundle from the registry.
262
-
263
- ```bash
264
- mpak skill pull @nimblebraininc/docs-auditor
265
- mpak skill pull @nimblebraininc/docs-auditor -o ./skills/
266
- ```
267
-
268
- Options:
269
- - `-o, --output <path>` - Output file path
270
- - `--json` - Output as JSON
271
-
272
- #### skill install
273
-
274
- Download and install a skill to `~/.claude/skills/`.
275
-
276
- ```bash
277
- mpak skill install @nimblebraininc/docs-auditor
278
- mpak skill install @nimblebraininc/docs-auditor --force
279
- ```
280
-
281
- Options:
282
- - `--force` - Overwrite existing installation
283
- - `--json` - Output as JSON
284
-
285
- #### skill list
286
-
287
- List installed skills.
288
-
289
- ```bash
63
+ # List installed skills
290
64
  mpak skill list
291
- mpak skill list --json
292
65
  ```
293
66
 
294
- Options:
295
- - `--json` - Output as JSON
296
-
297
- ### Config Commands
298
-
299
- Manage per-package configuration values (e.g., API keys).
300
-
301
- | Command | Description |
302
- |---------|-------------|
303
- | `mpak config set <pkg> <k=v...>` | Set config values |
304
- | `mpak config get <pkg>` | Show config (values masked) |
305
- | `mpak config list` | List packages with config |
306
- | `mpak config clear <pkg> [key]` | Clear config |
67
+ ### Configuration
307
68
 
308
69
  ```bash
309
- # Set API key for a package
310
- mpak config set @nimblebraininc/ipinfo api_key=your_token
70
+ # Set config values for a package
71
+ mpak config set @scope/name api_key=xxx
311
72
 
312
73
  # View stored config (values are masked)
313
- mpak config get @nimblebraininc/ipinfo
74
+ mpak config get @scope/name
314
75
 
315
- # List all packages with stored config
76
+ # List packages with config
316
77
  mpak config list
317
78
 
318
79
  # Clear config
319
- mpak config clear @nimblebraininc/ipinfo
320
- mpak config clear @nimblebraininc/ipinfo api_key # Clear specific key
80
+ mpak config clear @scope/name
81
+ mpak config clear @scope/name api_key
321
82
  ```
322
83
 
323
- ## Configuration
324
-
325
- Configuration is stored in `~/.mpak/config.json`:
326
-
327
- ```json
328
- {
329
- "version": "1.0.0",
330
- "lastUpdated": "2025-12-30T...",
331
- "registryUrl": "https://api.mpak.dev"
332
- }
333
- ```
334
-
335
- ### Environment Variables
336
-
337
- | Variable | Description | Default |
338
- |----------|-------------|---------|
339
- | `MPAK_REGISTRY_URL` | Registry API URL | `https://api.mpak.dev` |
340
-
341
- ## API
342
-
343
- The CLI uses the public v1 API:
344
-
345
- | Endpoint | Description |
346
- |----------|-------------|
347
- | `GET /v1/bundles/search` | Search bundles |
348
- | `GET /v1/bundles/@{scope}/{pkg}` | Get bundle details |
349
- | `GET /v1/bundles/@{scope}/{pkg}/versions` | List versions with platforms |
350
- | `GET /v1/bundles/@{scope}/{pkg}/versions/{version}/download` | Get download URL |
351
- | `GET /v1/skills/search` | Search skills |
352
- | `GET /v1/skills/@{scope}/{name}` | Get skill details |
353
- | `GET /v1/skills/@{scope}/{name}/download` | Get skill download URL |
354
-
355
84
  ## Development
356
85
 
357
- ### Setup
358
-
359
- ```bash
360
- npm install
361
- npm run build
362
- ```
363
-
364
- ### Scripts
365
-
366
- | Script | Description |
367
- |--------|-------------|
368
- | `npm run build` | Build TypeScript to JavaScript |
369
- | `npm run dev` | Run CLI in development mode |
370
- | `npm run typecheck` | Type check without building |
371
- | `npm run generate:types` | Generate types from OpenAPI spec |
372
- | `npm test` | Run unit tests |
373
- | `npm run test:all` | Run all tests including integration |
374
- | `npm run lint` | Lint source code |
375
-
376
- ### Publishing
377
-
378
86
  ```bash
379
- # Stable release
380
- npm publish
381
-
382
- # Beta/prerelease
383
- npm publish --tag beta
384
- ```
87
+ # Build
88
+ pnpm build
385
89
 
386
- ### Local Testing
90
+ # Run tests
91
+ pnpm test
387
92
 
388
- 1. Start the server locally:
389
- ```bash
390
- cd ../mpak/server
391
- npm run dev
392
- ```
93
+ # Type checking
94
+ pnpm typecheck
393
95
 
394
- 2. Run CLI with local registry:
395
- ```bash
396
- MPAK_REGISTRY_URL=http://localhost:3200 npm run dev -- bundle search echo
397
- ```
398
-
399
- ### Project Structure
400
-
401
- ```
402
- src/
403
- ├── index.ts # Entry point
404
- ├── program.ts # Commander program setup
405
- ├── commands/
406
- │ ├── packages/ # Bundle commands
407
- │ │ ├── search.ts
408
- │ │ ├── show.ts
409
- │ │ ├── pull.ts
410
- │ │ └── run.ts
411
- │ ├── skills/ # Skill commands
412
- │ │ ├── validate.ts
413
- │ │ ├── pack.ts
414
- │ │ ├── search.ts
415
- │ │ ├── show.ts
416
- │ │ ├── pull.ts
417
- │ │ ├── install.ts
418
- │ │ └── list.ts
419
- │ └── config.ts # Config commands
420
- ├── lib/
421
- │ └── api/
422
- │ ├── registry-client.ts # Bundle API client
423
- │ ├── skills-client.ts # Skills API client
424
- │ └── schema.d.ts # Generated OpenAPI types
425
- ├── schemas/
426
- │ └── generated/
427
- │ └── skill.ts # Skill validation schemas
428
- └── utils/
429
- ├── config-manager.ts # Config file handling
430
- └── version.ts # Version helper
96
+ # Lint
97
+ pnpm lint
431
98
  ```
432
99
 
433
100
  ## License
434
101
 
435
- [Apache 2.0](LICENSE)
102
+ Apache-2.0