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.
Files changed (2) hide show
  1. package/bin/mcp-gov.js +8 -4
  2. 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 = join(homedir(), '.config', 'claude', 'config.json');
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 path = configPath.trim() || defaultPath;
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 = join(homedir(), '.config', 'claude', 'config.json');
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 path = configPath.trim() || defaultPath;
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)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-gov",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "MCP Governance System - Permission control and audit logging for Model Context Protocol servers",
5
5
  "type": "module",
6
6
  "main": "src/index.js",