mcp-gov 1.2.0 → 1.2.2

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/README.md CHANGED
@@ -1,3 +1,12 @@
1
+ ```
2
+ ███╗ ███╗ ██████╗██████╗ ██████╗ ██████╗ ██╗ ██╗
3
+ ████╗ ████║██╔════╝██╔══██╗ ██╔════╝ ██╔═══██╗██║ ██║
4
+ ██╔████╔██║██║ ██████╔╝ ██║ ███╗██║ ██║██║ ██║
5
+ ██║╚██╔╝██║██║ ██╔═══╝ ██║ ██║██║ ██║╚██╗ ██╔╝
6
+ ██║ ╚═╝ ██║╚██████╗██║ ╚██████╔╝╚██████╔╝ ╚████╔╝
7
+ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═════╝ ╚═════╝ ╚═══╝
8
+ ```
9
+
1
10
  # MCP Governance System
2
11
 
3
12
  A permission control and audit logging system for Model Context Protocol (MCP) servers. Provides fine-grained governance over tool operations with **automatic rule generation**, **wrap/unwrap capabilities**, and structured audit logs.
package/bin/mcp-gov.js CHANGED
@@ -33,8 +33,19 @@ function ask(question) {
33
33
  });
34
34
  }
35
35
 
36
+ const logo = `
37
+ ███╗ ███╗ ██████╗██████╗ ██████╗ ██████╗ ██╗ ██╗
38
+ ████╗ ████║██╔════╝██╔══██╗ ██╔════╝ ██╔═══██╗██║ ██║
39
+ ██╔████╔██║██║ ██████╔╝ ██║ ███╗██║ ██║██║ ██║
40
+ ██║╚██╔╝██║██║ ██╔═══╝ ██║ ██║██║ ██║╚██╗ ██╔╝
41
+ ██║ ╚═╝ ██║╚██████╗██║ ╚██████╔╝╚██████╔╝ ╚████╔╝
42
+ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═════╝ ╚═════╝ ╚═══╝
43
+ `;
44
+
36
45
  async function main() {
37
- console.log(`\nMCP Governance System v${version}\n`);
46
+ console.log(logo);
47
+ console.log(` v${version}`);
48
+ console.log('');
38
49
  console.log('Select action:');
39
50
  console.log(' 1) Wrap MCP servers');
40
51
  console.log(' 2) Unwrap MCP servers');
@@ -65,9 +76,11 @@ async function main() {
65
76
  }
66
77
 
67
78
  async function handleWrap() {
68
- const defaultPath = join(homedir(), '.config', 'claude', 'config.json');
79
+ const defaultPath = '~/.config/claude/config.json';
80
+ const fullDefault = join(homedir(), '.config', 'claude', 'config.json');
69
81
  const configPath = await ask(`Enter config path [${defaultPath}]: `);
70
- const path = configPath.trim() || defaultPath;
82
+ const input = configPath.trim() || fullDefault;
83
+ const path = input.startsWith('~') ? input.replace('~', homedir()) : input;
71
84
  rl.close();
72
85
 
73
86
  if (!existsSync(path)) {
@@ -87,9 +100,11 @@ async function handleWrap() {
87
100
  }
88
101
 
89
102
  async function handleUnwrap() {
90
- const defaultPath = join(homedir(), '.config', 'claude', 'config.json');
103
+ const defaultPath = '~/.config/claude/config.json';
104
+ const fullDefault = join(homedir(), '.config', 'claude', 'config.json');
91
105
  const configPath = await ask(`Enter config path [${defaultPath}]: `);
92
- const path = configPath.trim() || defaultPath;
106
+ const input = configPath.trim() || fullDefault;
107
+ const path = input.startsWith('~') ? input.replace('~', homedir()) : input;
93
108
  rl.close();
94
109
 
95
110
  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.2",
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",