mcpick 0.0.25 → 0.0.26
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/CHANGELOG.md +7 -0
- package/dist/{add-7mhUpbrt.js → add-DwUPxD5U.js} +4 -5
- package/dist/{add-json-BMM2L4hv.js → add-json-Dk3C8QSR.js} +4 -4
- package/dist/atomic-write-9pfXia-x.js +22 -0
- package/dist/{backup-C-YJmgps.js → backup-Ber7st-_.js} +4 -5
- package/dist/{cache-BOYZhUF6.js → cache-BVNAOxqk.js} +3 -3
- package/dist/{cli-sOeHH4CK.js → cli-Dfein2li.js} +22 -22
- package/dist/{clients-D5KAuQ5U.js → clients-C1mWlnsn.js} +3 -3
- package/dist/{clone-BRJA55js.js → clone-BE904ik7.js} +3 -6
- package/dist/{dev-B-WlQSqY.js → dev-BW_2JDPM.js} +5 -6
- package/dist/{disable-Br0aVG3u.js → disable-CVwuJLhT.js} +4 -4
- package/dist/{enable-DUolKCEH.js → enable-BEi8TUd1.js} +4 -4
- package/dist/{get-D-6Cl_CO.js → get-eDOm6sRK.js} +3 -3
- package/dist/{hooks-BKPmZViU.js → hooks-DzGBYYId.js} +4 -3
- package/dist/index.js +306 -265
- package/dist/{list-DMcaHDfM.js → list-CvpW_mNZ.js} +3 -5
- package/dist/{marketplace-DTW7Ys8k.js → marketplace-BKGJ3UGr.js} +4 -4
- package/dist/{mutation-ukRPw3qM.js → mutation-BBMIFB8H.js} +2 -2
- package/dist/{output-BS1TMOWt.js → output-DGPi2IWN.js} +2 -2
- package/dist/{plugin-cache-Dw1I2YuO.js → plugin-cache-Dj-lS1mA.js} +169 -21
- package/dist/{plugins-BzLD4og0.js → plugins-elIQYM38.js} +4 -4
- package/dist/{profile-CmIWUJH_.js → profile-NVbTnJKI.js} +4 -4
- package/dist/{reload-Di28s_rY.js → reload-BkVtWaf0.js} +2 -2
- package/dist/{remove-B32EuYRC.js → remove-BC2vomi_.js} +4 -4
- package/dist/{reset-project-choices-DX4TnZ2i.js → reset-project-choices-DhJsWQx2.js} +3 -3
- package/dist/{restore-ByS4xi0y.js → restore-CeYSOFt8.js} +3 -5
- package/dist/{rollback-DdDJrA8y.js → rollback-g-WX6b3o.js} +3 -3
- package/dist/safe-apply-B5flt8QC.js +185 -0
- package/dist/{skills-pvyQ17XU.js → skills-zuQ5kCL1.js} +2 -2
- package/package.json +6 -6
- package/pnpm-workspace.yaml +1 -0
- package/dist/config-Bzh374VP.js +0 -167
- package/dist/paths-BPISiJi4.js +0 -124
- package/dist/redact-wBMtzbno.js +0 -88
- package/dist/rolldown-runtime-CiIaOW0V.js +0 -13
- package/dist/validation-CfPAjPJ5.js +0 -63
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import { n as output, t as error } from "./output-BS1TMOWt.js";
|
|
1
|
+
import { $ as validate_mcp_server, D as add_server_to_registry, F as get_client_adapter, N as add_client_server, R as resolve_client_location, c as add_mcp_via_cli } from "./index.js";
|
|
2
|
+
import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-BBMIFB8H.js";
|
|
3
|
+
import { n as output, t as error } from "./output-DGPi2IWN.js";
|
|
5
4
|
import { defineCommand } from "citty";
|
|
6
5
|
//#region src/cli/commands/add.ts
|
|
7
6
|
var add_default = defineCommand({
|
|
@@ -168,4 +167,4 @@ function parse_key_value_pairs(input) {
|
|
|
168
167
|
//#endregion
|
|
169
168
|
export { add_default as default };
|
|
170
169
|
|
|
171
|
-
//# sourceMappingURL=add-
|
|
170
|
+
//# sourceMappingURL=add-DwUPxD5U.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-
|
|
3
|
-
import { n as output, t as error } from "./output-
|
|
1
|
+
import { F as get_client_adapter, P as add_client_server_config, R as resolve_client_location, m as mcp_add_json_via_cli } from "./index.js";
|
|
2
|
+
import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-BBMIFB8H.js";
|
|
3
|
+
import { n as output, t as error } from "./output-DGPi2IWN.js";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/cli/commands/add-json.ts
|
|
6
6
|
var add_json_default = defineCommand({
|
|
@@ -96,4 +96,4 @@ async function add_json_to_client(client, name, config, scope, location_path, js
|
|
|
96
96
|
//#endregion
|
|
97
97
|
export { add_json_default as default };
|
|
98
98
|
|
|
99
|
-
//# sourceMappingURL=add-json-
|
|
99
|
+
//# sourceMappingURL=add-json-Dk3C8QSR.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as safe_json_write } from "./safe-apply-B5flt8QC.js";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
//#region src/utils/atomic-write.ts
|
|
4
|
+
/**
|
|
5
|
+
* Atomically write a JSON file with fresh-read merging.
|
|
6
|
+
*
|
|
7
|
+
* 1. Re-reads the file right before writing to pick up concurrent changes
|
|
8
|
+
* 2. Applies the merge function to the freshest data
|
|
9
|
+
* 3. Writes to a temp file, then renames (atomic on same filesystem)
|
|
10
|
+
*/
|
|
11
|
+
async function atomic_json_write(file_path, merge) {
|
|
12
|
+
let existing = {};
|
|
13
|
+
try {
|
|
14
|
+
const content = await readFile(file_path, "utf-8");
|
|
15
|
+
existing = JSON.parse(content);
|
|
16
|
+
} catch {}
|
|
17
|
+
await safe_json_write(file_path, merge(existing), 2);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { atomic_json_write as t };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=atomic-write-9pfXia-x.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as output } from "./output-BS1TMOWt.js";
|
|
1
|
+
import { _ as get_plugin_backup_filename, a as get_backup_filename, i as ensure_directory_exists, o as get_backups_dir } from "./safe-apply-B5flt8QC.js";
|
|
2
|
+
import { W as read_claude_settings, X as read_claude_config } from "./index.js";
|
|
3
|
+
import { n as output } from "./output-DGPi2IWN.js";
|
|
5
4
|
import { readdir, unlink, writeFile } from "node:fs/promises";
|
|
6
5
|
import { join } from "node:path";
|
|
7
6
|
import { defineCommand } from "citty";
|
|
@@ -61,4 +60,4 @@ var backup_default = defineCommand({
|
|
|
61
60
|
//#endregion
|
|
62
61
|
export { backup_default as default };
|
|
63
62
|
|
|
64
|
-
//# sourceMappingURL=backup-
|
|
63
|
+
//# sourceMappingURL=backup-Ber7st-_.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as list_linked_plugins,
|
|
2
|
-
import { n as output, t as error } from "./output-
|
|
1
|
+
import { a as list_linked_plugins, d as scan_all_cache_keys, f as unlink_local_plugin, i as link_local_plugin, n as clear_plugin_caches, r as get_cached_plugins_info, s as read_installed_plugins, t as clean_orphaned_versions, u as refresh_all_marketplaces } from "./plugin-cache-Dj-lS1mA.js";
|
|
2
|
+
import { n as output, t as error } from "./output-DGPi2IWN.js";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
var cache_default = defineCommand({
|
|
5
5
|
meta: {
|
|
@@ -224,4 +224,4 @@ var cache_default = defineCommand({
|
|
|
224
224
|
//#endregion
|
|
225
225
|
export { cache_default as default };
|
|
226
226
|
|
|
227
|
-
//# sourceMappingURL=cache-
|
|
227
|
+
//# sourceMappingURL=cache-BVNAOxqk.js.map
|
|
@@ -6,27 +6,27 @@ const main = defineCommand({
|
|
|
6
6
|
description: "Vendor-neutral MCP configuration manager with first-class Claude Code support"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
list: () => import("./list-
|
|
10
|
-
enable: () => import("./enable-
|
|
11
|
-
disable: () => import("./disable-
|
|
12
|
-
clients: () => import("./clients-
|
|
13
|
-
remove: () => import("./remove-
|
|
14
|
-
add: () => import("./add-
|
|
15
|
-
"add-json": () => import("./add-json-
|
|
16
|
-
clone: () => import("./clone-
|
|
17
|
-
get: () => import("./get-
|
|
18
|
-
"reset-project-choices": () => import("./reset-project-choices-
|
|
19
|
-
backup: () => import("./backup-
|
|
20
|
-
restore: () => import("./restore-
|
|
21
|
-
profile: () => import("./profile-
|
|
22
|
-
skills: () => import("./skills-
|
|
23
|
-
plugins: () => import("./plugins-
|
|
24
|
-
hooks: () => import("./hooks-
|
|
25
|
-
cache: () => import("./cache-
|
|
26
|
-
dev: () => import("./dev-
|
|
27
|
-
marketplace: () => import("./marketplace-
|
|
28
|
-
reload: () => import("./reload-
|
|
29
|
-
rollback: () => import("./rollback-
|
|
9
|
+
list: () => import("./list-CvpW_mNZ.js").then((m) => m.default),
|
|
10
|
+
enable: () => import("./enable-BEi8TUd1.js").then((m) => m.default),
|
|
11
|
+
disable: () => import("./disable-CVwuJLhT.js").then((m) => m.default),
|
|
12
|
+
clients: () => import("./clients-C1mWlnsn.js").then((m) => m.default),
|
|
13
|
+
remove: () => import("./remove-BC2vomi_.js").then((m) => m.default),
|
|
14
|
+
add: () => import("./add-DwUPxD5U.js").then((m) => m.default),
|
|
15
|
+
"add-json": () => import("./add-json-Dk3C8QSR.js").then((m) => m.default),
|
|
16
|
+
clone: () => import("./clone-BE904ik7.js").then((m) => m.default),
|
|
17
|
+
get: () => import("./get-eDOm6sRK.js").then((m) => m.default),
|
|
18
|
+
"reset-project-choices": () => import("./reset-project-choices-DhJsWQx2.js").then((m) => m.default),
|
|
19
|
+
backup: () => import("./backup-Ber7st-_.js").then((m) => m.default),
|
|
20
|
+
restore: () => import("./restore-CeYSOFt8.js").then((m) => m.default),
|
|
21
|
+
profile: () => import("./profile-NVbTnJKI.js").then((m) => m.default),
|
|
22
|
+
skills: () => import("./skills-zuQ5kCL1.js").then((m) => m.default),
|
|
23
|
+
plugins: () => import("./plugins-elIQYM38.js").then((m) => m.default),
|
|
24
|
+
hooks: () => import("./hooks-DzGBYYId.js").then((m) => m.default),
|
|
25
|
+
cache: () => import("./cache-BVNAOxqk.js").then((m) => m.default),
|
|
26
|
+
dev: () => import("./dev-BW_2JDPM.js").then((m) => m.default),
|
|
27
|
+
marketplace: () => import("./marketplace-BKGJ3UGr.js").then((m) => m.default),
|
|
28
|
+
reload: () => import("./reload-BkVtWaf0.js").then((m) => m.default),
|
|
29
|
+
rollback: () => import("./rollback-g-WX6b3o.js").then((m) => m.default)
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
/**
|
|
@@ -109,4 +109,4 @@ const run = () => runMain(main, { showUsage: show_usage_with_examples });
|
|
|
109
109
|
//#endregion
|
|
110
110
|
export { run };
|
|
111
111
|
|
|
112
|
-
//# sourceMappingURL=cli-
|
|
112
|
+
//# sourceMappingURL=cli-Dfein2li.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as output } from "./output-
|
|
1
|
+
import { I as list_client_locations } from "./index.js";
|
|
2
|
+
import { n as output } from "./output-DGPi2IWN.js";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
//#region src/cli/commands/clients.ts
|
|
5
5
|
var clients_default = defineCommand({
|
|
@@ -27,4 +27,4 @@ var clients_default = defineCommand({
|
|
|
27
27
|
//#endregion
|
|
28
28
|
export { clients_default as default };
|
|
29
29
|
|
|
30
|
-
//# sourceMappingURL=clients-
|
|
30
|
+
//# sourceMappingURL=clients-C1mWlnsn.js.map
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
import { n as redact_server } from "./redact-wBMtzbno.js";
|
|
4
|
-
import { E as add_server_to_registry, p as add_mcp_via_cli } from "./index.js";
|
|
5
|
-
import { n as output, t as error } from "./output-BS1TMOWt.js";
|
|
1
|
+
import { $ as validate_mcp_server, D as add_server_to_registry, J as find_server_in_scope, S as redact_server, c as add_mcp_via_cli, q as detect_server_scope } from "./index.js";
|
|
2
|
+
import { n as output, t as error } from "./output-DGPi2IWN.js";
|
|
6
3
|
import { defineCommand } from "citty";
|
|
7
4
|
//#region src/cli/commands/clone.ts
|
|
8
5
|
var clone_default = defineCommand({
|
|
@@ -84,4 +81,4 @@ var clone_default = defineCommand({
|
|
|
84
81
|
//#endregion
|
|
85
82
|
export { clone_default as default };
|
|
86
83
|
|
|
87
|
-
//# sourceMappingURL=clone-
|
|
84
|
+
//# sourceMappingURL=clone-BE904ik7.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as output, t as error } from "./output-BS1TMOWt.js";
|
|
1
|
+
import { l as get_current_project_path, s as get_claude_config_path, u as get_dev_overrides_path, x as get_project_mcp_json_path } from "./safe-apply-B5flt8QC.js";
|
|
2
|
+
import { t as atomic_json_write } from "./atomic-write-9pfXia-x.js";
|
|
3
|
+
import { C as redact_server_base, J as find_server_in_scope, q as detect_server_scope } from "./index.js";
|
|
4
|
+
import { n as output, t as error } from "./output-DGPi2IWN.js";
|
|
6
5
|
import { readFile } from "node:fs/promises";
|
|
7
6
|
import { defineCommand } from "citty";
|
|
8
7
|
//#region src/core/dev-override.ts
|
|
@@ -262,4 +261,4 @@ var dev_default = defineCommand({
|
|
|
262
261
|
//#endregion
|
|
263
262
|
export { dev_default as default };
|
|
264
263
|
|
|
265
|
-
//# sourceMappingURL=dev-
|
|
264
|
+
//# sourceMappingURL=dev-BW_2JDPM.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-
|
|
3
|
-
import { n as output, t as error } from "./output-
|
|
1
|
+
import { F as get_client_adapter, O as get_all_available_servers, R as resolve_client_location, _ as remove_mcp_via_cli, z as set_client_server_enabled } from "./index.js";
|
|
2
|
+
import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-BBMIFB8H.js";
|
|
3
|
+
import { n as output, t as error } from "./output-DGPi2IWN.js";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/cli/commands/disable.ts
|
|
6
6
|
var disable_default = defineCommand({
|
|
@@ -84,4 +84,4 @@ async function disable_client_server(client, server, scope, location_path, json)
|
|
|
84
84
|
//#endregion
|
|
85
85
|
export { disable_default as default };
|
|
86
86
|
|
|
87
|
-
//# sourceMappingURL=disable-
|
|
87
|
+
//# sourceMappingURL=disable-CVwuJLhT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-
|
|
3
|
-
import { n as output, t as error } from "./output-
|
|
1
|
+
import { F as get_client_adapter, O as get_all_available_servers, R as resolve_client_location, c as add_mcp_via_cli, z as set_client_server_enabled } from "./index.js";
|
|
2
|
+
import { n as print_mutation_details, t as claude_mutation_context } from "./mutation-BBMIFB8H.js";
|
|
3
|
+
import { n as output, t as error } from "./output-DGPi2IWN.js";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
//#region src/cli/commands/enable.ts
|
|
6
6
|
var enable_default = defineCommand({
|
|
@@ -85,4 +85,4 @@ async function enable_client_server(client, server, scope, location_path, json)
|
|
|
85
85
|
//#endregion
|
|
86
86
|
export { enable_default as default };
|
|
87
87
|
|
|
88
|
-
//# sourceMappingURL=enable-
|
|
88
|
+
//# sourceMappingURL=enable-BEi8TUd1.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as output, t as error } from "./output-
|
|
1
|
+
import { h as mcp_get_via_cli } from "./index.js";
|
|
2
|
+
import { n as output, t as error } from "./output-DGPi2IWN.js";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
//#region src/cli/commands/get.ts
|
|
5
5
|
var get_default = defineCommand({
|
|
@@ -38,4 +38,4 @@ var get_default = defineCommand({
|
|
|
38
38
|
//#endregion
|
|
39
39
|
export { get_default as default };
|
|
40
40
|
|
|
41
|
-
//# sourceMappingURL=get-
|
|
41
|
+
//# sourceMappingURL=get-eDOm6sRK.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { _ as redisable_restored_hooks, g as read_disabled_hooks, h as enable_plugin_hook, m as disable_plugin_hook, p as check_restored_hooks } from "./plugin-cache-Dj-lS1mA.js";
|
|
2
|
+
import { B as add_hook, G as remove_hook, H as get_all_hooks } from "./index.js";
|
|
3
|
+
import { n as output, t as error } from "./output-DGPi2IWN.js";
|
|
3
4
|
import { defineCommand } from "citty";
|
|
4
5
|
var hooks_default = defineCommand({
|
|
5
6
|
meta: {
|
|
@@ -276,4 +277,4 @@ var hooks_default = defineCommand({
|
|
|
276
277
|
//#endregion
|
|
277
278
|
export { hooks_default as default };
|
|
278
279
|
|
|
279
|
-
//# sourceMappingURL=hooks-
|
|
280
|
+
//# sourceMappingURL=hooks-DzGBYYId.js.map
|