mcpick 0.0.9 → 0.0.11

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.
@@ -45,7 +45,7 @@ export function get_profile_path(name) {
45
45
  const filename = name.endsWith('.json') ? name : `${name}.json`;
46
46
  return join(get_profiles_dir(), filename);
47
47
  }
48
- export function get_backup_filename() {
48
+ function format_backup_timestamp() {
49
49
  const now = new Date();
50
50
  const year = now.getFullYear();
51
51
  const month = String(now.getMonth() + 1).padStart(2, '0');
@@ -53,7 +53,13 @@ export function get_backup_filename() {
53
53
  const hour = String(now.getHours()).padStart(2, '0');
54
54
  const minute = String(now.getMinutes()).padStart(2, '0');
55
55
  const second = String(now.getSeconds()).padStart(2, '0');
56
- return `mcp-servers-${year}-${month}-${day}-${hour}${minute}${second}.json`;
56
+ return `${year}-${month}-${day}-${hour}${minute}${second}`;
57
+ }
58
+ export function get_backup_filename() {
59
+ return `mcp-servers-${format_backup_timestamp()}.json`;
60
+ }
61
+ export function get_plugin_backup_filename() {
62
+ return `plugins-${format_backup_timestamp()}.json`;
57
63
  }
58
64
  export async function ensure_directory_exists(dir_path) {
59
65
  try {
@@ -81,4 +87,22 @@ export function get_project_mcp_json_path() {
81
87
  export function get_global_mcp_json_path() {
82
88
  return join(homedir(), '.mcp.json');
83
89
  }
90
+ export function get_plugins_dir() {
91
+ return join(get_base_dir().baseDir, 'plugins');
92
+ }
93
+ export function get_installed_plugins_path() {
94
+ return join(get_plugins_dir(), 'installed_plugins.json');
95
+ }
96
+ export function get_known_marketplaces_path() {
97
+ return join(get_plugins_dir(), 'known_marketplaces.json');
98
+ }
99
+ export function get_plugin_cache_dir() {
100
+ return join(get_plugins_dir(), 'cache');
101
+ }
102
+ export function get_marketplaces_dir() {
103
+ return join(get_plugins_dir(), 'marketplaces');
104
+ }
105
+ export function get_marketplace_manifest_path(name) {
106
+ return join(get_marketplaces_dir(), name, '.claude-plugin', 'marketplace.json');
107
+ }
84
108
  //# 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.11",
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": {