mcp-gov 1.2.4 → 1.2.5
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/bin/mcp-gov.js +16 -10
- package/package.json +1 -1
package/bin/mcp-gov.js
CHANGED
|
@@ -82,13 +82,16 @@ async function main() {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
async function handleWrap() {
|
|
85
|
-
const defaultPath = '~/.claude.json';
|
|
86
|
-
const fullDefault = join(homedir(), '.claude.json');
|
|
87
|
-
|
|
88
85
|
let path;
|
|
89
86
|
while (true) {
|
|
90
|
-
const configPath = await ask(
|
|
91
|
-
const input = configPath.trim()
|
|
87
|
+
const configPath = await ask('Enter config path (e.g. ~/.claude.json): ');
|
|
88
|
+
const input = configPath.trim();
|
|
89
|
+
|
|
90
|
+
if (!input) {
|
|
91
|
+
console.log('Path required. Please try again.\n');
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
|
|
92
95
|
path = input.startsWith('~') ? input.replace('~', homedir()) : input;
|
|
93
96
|
|
|
94
97
|
if (existsSync(path)) {
|
|
@@ -111,13 +114,16 @@ async function handleWrap() {
|
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
async function handleUnwrap() {
|
|
114
|
-
const defaultPath = '~/.claude.json';
|
|
115
|
-
const fullDefault = join(homedir(), '.claude.json');
|
|
116
|
-
|
|
117
117
|
let path;
|
|
118
118
|
while (true) {
|
|
119
|
-
const configPath = await ask(
|
|
120
|
-
const input = configPath.trim()
|
|
119
|
+
const configPath = await ask('Enter config path (e.g. ~/.claude.json): ');
|
|
120
|
+
const input = configPath.trim();
|
|
121
|
+
|
|
122
|
+
if (!input) {
|
|
123
|
+
console.log('Path required. Please try again.\n');
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
|
|
121
127
|
path = input.startsWith('~') ? input.replace('~', homedir()) : input;
|
|
122
128
|
|
|
123
129
|
if (existsSync(path)) {
|