mcpick 0.0.9 → 0.0.10

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/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import { add_server } from './commands/add-server.js';
4
4
  import { backup_config } from './commands/backup.js';
5
5
  import { edit_config } from './commands/edit-config.js';
6
6
  import { edit_plugins } from './commands/edit-plugins.js';
7
+ import { manage_cache } from './commands/manage-cache.js';
7
8
  import { restore_config } from './commands/restore.js';
8
9
  import { write_claude_config } from './core/config.js';
9
10
  import { list_profiles, load_profile, save_profile, } from './core/profile.js';
@@ -148,6 +149,11 @@ async function main() {
148
149
  label: 'Enable / Disable plugins',
149
150
  hint: 'Toggle Claude Code plugins on/off',
150
151
  },
152
+ {
153
+ value: 'manage-cache',
154
+ label: 'Manage plugin cache',
155
+ hint: 'View, clear, or refresh plugin caches',
156
+ },
151
157
  {
152
158
  value: 'backup',
153
159
  label: 'Backup config',
@@ -191,6 +197,9 @@ async function main() {
191
197
  case 'edit-plugins':
192
198
  await edit_plugins();
193
199
  break;
200
+ case 'manage-cache':
201
+ await manage_cache();
202
+ break;
194
203
  case 'backup':
195
204
  await backup_config();
196
205
  break;
@@ -232,8 +241,28 @@ async function main() {
232
241
  }
233
242
  }
234
243
  }
235
- main().catch((error) => {
236
- console.error('Fatal error:', error);
237
- process.exit(1);
238
- });
244
+ const SUBCOMMANDS = new Set([
245
+ 'list',
246
+ 'enable',
247
+ 'disable',
248
+ 'remove',
249
+ 'add',
250
+ 'backup',
251
+ 'restore',
252
+ 'profile',
253
+ 'plugins',
254
+ 'cache',
255
+ ]);
256
+ const arg = process.argv[2];
257
+ if ((arg && SUBCOMMANDS.has(arg)) ||
258
+ arg === '--help' ||
259
+ arg === '-h') {
260
+ import('./cli/index.js').then((m) => m.run());
261
+ }
262
+ else {
263
+ main().catch((error) => {
264
+ console.error('Fatal error:', error);
265
+ process.exit(1);
266
+ });
267
+ }
239
268
  //# sourceMappingURL=index.js.map
@@ -81,4 +81,22 @@ export function get_project_mcp_json_path() {
81
81
  export function get_global_mcp_json_path() {
82
82
  return join(homedir(), '.mcp.json');
83
83
  }
84
+ export function get_plugins_dir() {
85
+ return join(get_base_dir().baseDir, 'plugins');
86
+ }
87
+ export function get_installed_plugins_path() {
88
+ return join(get_plugins_dir(), 'installed_plugins.json');
89
+ }
90
+ export function get_known_marketplaces_path() {
91
+ return join(get_plugins_dir(), 'known_marketplaces.json');
92
+ }
93
+ export function get_plugin_cache_dir() {
94
+ return join(get_plugins_dir(), 'cache');
95
+ }
96
+ export function get_marketplaces_dir() {
97
+ return join(get_plugins_dir(), 'marketplaces');
98
+ }
99
+ export function get_marketplace_manifest_path(name) {
100
+ return join(get_marketplaces_dir(), name, '.claude-plugin', 'marketplace.json');
101
+ }
84
102
  //# sourceMappingURL=paths.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcpick",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Dynamic MCP server and plugin configuration manager for Claude Code",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,13 +20,14 @@
20
20
  "author": "",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "@clack/prompts": "^1.0.0",
24
- "valibot": "^1.2.0"
23
+ "@clack/prompts": "^1.1.0",
24
+ "citty": "^0.2.1",
25
+ "valibot": "^1.3.1"
25
26
  },
26
27
  "devDependencies": {
27
- "@changesets/cli": "^2.29.8",
28
- "@types/node": "^25.0.1",
29
- "prettier": "^3.7.4",
28
+ "@changesets/cli": "^2.30.0",
29
+ "@types/node": "^25.5.0",
30
+ "prettier": "^3.8.1",
30
31
  "typescript": "^5.9.3"
31
32
  },
32
33
  "scripts": {