mcp-gov 1.2.0 → 1.2.1
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 +8 -4
- package/package.json +1 -1
package/bin/mcp-gov.js
CHANGED
|
@@ -65,9 +65,11 @@ async function main() {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
async function handleWrap() {
|
|
68
|
-
const defaultPath =
|
|
68
|
+
const defaultPath = '~/.config/claude/config.json';
|
|
69
|
+
const fullDefault = join(homedir(), '.config', 'claude', 'config.json');
|
|
69
70
|
const configPath = await ask(`Enter config path [${defaultPath}]: `);
|
|
70
|
-
const
|
|
71
|
+
const input = configPath.trim() || fullDefault;
|
|
72
|
+
const path = input.startsWith('~') ? input.replace('~', homedir()) : input;
|
|
71
73
|
rl.close();
|
|
72
74
|
|
|
73
75
|
if (!existsSync(path)) {
|
|
@@ -87,9 +89,11 @@ async function handleWrap() {
|
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
async function handleUnwrap() {
|
|
90
|
-
const defaultPath =
|
|
92
|
+
const defaultPath = '~/.config/claude/config.json';
|
|
93
|
+
const fullDefault = join(homedir(), '.config', 'claude', 'config.json');
|
|
91
94
|
const configPath = await ask(`Enter config path [${defaultPath}]: `);
|
|
92
|
-
const
|
|
95
|
+
const input = configPath.trim() || fullDefault;
|
|
96
|
+
const path = input.startsWith('~') ? input.replace('~', homedir()) : input;
|
|
93
97
|
rl.close();
|
|
94
98
|
|
|
95
99
|
if (!existsSync(path)) {
|