mcp-ssh-manager 3.0.0 → 3.1.0
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/.claude/settings.local.json +10 -1
- package/CLAUDE.md +16 -0
- package/README.md +62 -0
- package/cli/commands/server.sh +27 -5
- package/cli/commands/tools.sh +603 -0
- package/cli/lib/config.sh +104 -14
- package/cli/lib/menu.sh +124 -0
- package/cli/ssh-manager +17 -7
- package/docs/TOOL_MANAGEMENT.md +473 -0
- package/package.json +5 -4
- package/scripts/validate.sh +12 -0
- package/src/backup-manager.js +12 -12
- package/src/command-aliases.js +16 -16
- package/src/config-loader.js +1 -1
- package/src/database-manager.js +38 -40
- package/src/deploy-helper.js +12 -13
- package/src/health-monitor.js +26 -26
- package/src/hooks-system.js +43 -43
- package/src/index.js +866 -832
- package/src/logger.js +53 -53
- package/src/profile-loader.js +14 -14
- package/src/server-aliases.js +11 -11
- package/src/server-groups.js +98 -97
- package/src/session-manager.js +59 -58
- package/src/ssh-key-manager.js +1 -1
- package/src/ssh-manager.js +44 -23
- package/src/tool-config-manager.js +434 -0
- package/src/tool-registry.js +196 -0
- package/src/tunnel-manager.js +98 -98
|
@@ -80,7 +80,16 @@
|
|
|
80
80
|
"Bash(npm whoami:*)",
|
|
81
81
|
"Bash(npm view:*)",
|
|
82
82
|
"Bash(npm pack:*)",
|
|
83
|
-
"Bash(npm publish:*)"
|
|
83
|
+
"Bash(npm publish:*)",
|
|
84
|
+
"Bash(git rm:*)",
|
|
85
|
+
"Bash(while read line_num rest)",
|
|
86
|
+
"Bash(do sed -n \"$line_nums/.*''''\\([^'''']*\\)''''.*/\\1/p\" /Users/jeremy/mcp/mcp-ssh-manager/src/index.js done)",
|
|
87
|
+
"Bash(sed:*)",
|
|
88
|
+
"Bash(perl:*)",
|
|
89
|
+
"Bash(git fetch:*)",
|
|
90
|
+
"Bash(git -C /Users/jeremy/mcp/mcp-ssh-manager log:*)",
|
|
91
|
+
"WebFetch(domain:www.npmjs.com)",
|
|
92
|
+
"WebFetch(domain:glama.ai)"
|
|
84
93
|
],
|
|
85
94
|
"deny": []
|
|
86
95
|
}
|
package/CLAUDE.md
CHANGED
|
@@ -51,6 +51,22 @@ ssh-manager codex convert to-toml # Convert .env to TOML
|
|
|
51
51
|
ssh-manager codex convert to-env # Convert TOML to .env
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
### Tool Management (NEW in v3.1)
|
|
55
|
+
```bash
|
|
56
|
+
ssh-manager tools list # Show all tools and status
|
|
57
|
+
ssh-manager tools configure # Interactive configuration wizard
|
|
58
|
+
ssh-manager tools enable <group> # Enable a tool group
|
|
59
|
+
ssh-manager tools disable <group> # Disable a tool group
|
|
60
|
+
ssh-manager tools reset # Reset to defaults (all tools)
|
|
61
|
+
ssh-manager tools export-claude # Export auto-approval config
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Tool Groups**: core (5), sessions (4), monitoring (6), backup (4), database (4), advanced (14)
|
|
65
|
+
|
|
66
|
+
**Modes**: all (37 tools, ~43.5k tokens), minimal (5 tools, ~3.5k tokens), custom (variable)
|
|
67
|
+
|
|
68
|
+
See [docs/TOOL_MANAGEMENT.md](docs/TOOL_MANAGEMENT.md) for complete guide.
|
|
69
|
+
|
|
54
70
|
### Development and Testing
|
|
55
71
|
```bash
|
|
56
72
|
npm start # Start MCP server (requires stdin)
|
package/README.md
CHANGED
|
@@ -8,6 +8,8 @@ A powerful Model Context Protocol (MCP) server that enables **Claude Code** and
|
|
|
8
8
|
|
|
9
9
|
<div align="center">
|
|
10
10
|
|
|
11
|
+
[](https://www.npmjs.com/package/mcp-ssh-manager)
|
|
12
|
+
[](https://www.npmjs.com/package/mcp-ssh-manager)
|
|
11
13
|
[](https://github.com/bvisible/mcp-ssh-manager)
|
|
12
14
|
[](https://modelcontextprotocol.io)
|
|
13
15
|
[](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v3.0.0)
|
|
@@ -101,6 +103,54 @@ This release adds **12 new MCP tools** transforming SSH Manager into a comprehen
|
|
|
101
103
|
|
|
102
104
|
---
|
|
103
105
|
|
|
106
|
+
## ⚙️ Tool Management & Context Optimization
|
|
107
|
+
|
|
108
|
+
**NEW in v3.1**: Reduce Claude Code context usage by 92% with tool activation management!
|
|
109
|
+
|
|
110
|
+
MCP SSH Manager includes **37 tools** organized into **6 groups**. By default, all tools are enabled, but you can optimize for your specific workflow:
|
|
111
|
+
|
|
112
|
+
### Quick Setup
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
# Interactive configuration wizard
|
|
116
|
+
ssh-manager tools configure
|
|
117
|
+
|
|
118
|
+
# View current configuration
|
|
119
|
+
ssh-manager tools list
|
|
120
|
+
|
|
121
|
+
# Enable/disable specific groups
|
|
122
|
+
ssh-manager tools enable monitoring
|
|
123
|
+
ssh-manager tools disable backup
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Configuration Modes
|
|
127
|
+
|
|
128
|
+
| Mode | Tools | Context Usage | Best For |
|
|
129
|
+
|------|-------|---------------|----------|
|
|
130
|
+
| **All** (default) | 37 tools | ~43.5k tokens | Full feature set, most users |
|
|
131
|
+
| **Minimal** | 5 tools | ~3.5k tokens | Basic SSH operations only |
|
|
132
|
+
| **Custom** | 5-37 tools | Varies | Tailored to your workflow |
|
|
133
|
+
|
|
134
|
+
### Tool Groups
|
|
135
|
+
|
|
136
|
+
- **Core** (5 tools) - Always enabled: list, execute, upload, download, sync
|
|
137
|
+
- **Sessions** (4 tools) - Persistent SSH sessions
|
|
138
|
+
- **Monitoring** (6 tools) - Health checks, service status, process management
|
|
139
|
+
- **Backup** (4 tools) - Database and file backups
|
|
140
|
+
- **Database** (4 tools) - MySQL, PostgreSQL, MongoDB operations
|
|
141
|
+
- **Advanced** (14 tools) - Deployment, sudo, tunnels, groups, aliases, etc.
|
|
142
|
+
|
|
143
|
+
### Benefits
|
|
144
|
+
|
|
145
|
+
- **92% context reduction** in minimal mode (~40k tokens saved)
|
|
146
|
+
- **Fewer approval prompts** in Claude Code
|
|
147
|
+
- **Faster loading** and cleaner interface
|
|
148
|
+
- **Auto-approval configuration** export for Claude Code
|
|
149
|
+
|
|
150
|
+
📖 [**Complete Tool Management Guide →**](docs/TOOL_MANAGEMENT.md)
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
104
154
|
## 🔍 Alternative Search Terms
|
|
105
155
|
|
|
106
156
|
Looking for:
|
|
@@ -133,6 +183,18 @@ This is **the** MCP SSH Manager you've been searching for! 🎯
|
|
|
133
183
|
|
|
134
184
|
### 1. Install MCP SSH Manager
|
|
135
185
|
|
|
186
|
+
**Option A: Install from npm (recommended)**
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
# Install globally from npm
|
|
190
|
+
npm install -g mcp-ssh-manager
|
|
191
|
+
|
|
192
|
+
# Or install locally
|
|
193
|
+
npx mcp-ssh-manager
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
**Option B: Install from source**
|
|
197
|
+
|
|
136
198
|
```bash
|
|
137
199
|
# Clone and install
|
|
138
200
|
git clone https://github.com/bvisible/mcp-ssh-manager.git
|
package/cli/commands/server.sh
CHANGED
|
@@ -191,21 +191,43 @@ cmd_server_remove() {
|
|
|
191
191
|
fi
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
# Edit server configuration
|
|
195
|
-
|
|
194
|
+
# Edit server configuration (full .env file)
|
|
195
|
+
cmd_server_edit_file() {
|
|
196
196
|
local editor=$(get_config "default_editor" "${EDITOR:-nano}")
|
|
197
|
-
|
|
197
|
+
|
|
198
198
|
if [ ! -f "$SSH_MANAGER_ENV" ]; then
|
|
199
199
|
print_error "Configuration file not found: $SSH_MANAGER_ENV"
|
|
200
200
|
return 1
|
|
201
201
|
fi
|
|
202
|
-
|
|
202
|
+
|
|
203
203
|
print_info "Opening configuration in $editor..."
|
|
204
204
|
$editor "$SSH_MANAGER_ENV"
|
|
205
|
-
|
|
205
|
+
|
|
206
206
|
print_success "Configuration updated"
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
# Edit server interactively
|
|
210
|
+
cmd_server_edit() {
|
|
211
|
+
local server="$1"
|
|
212
|
+
|
|
213
|
+
if [ -z "$server" ]; then
|
|
214
|
+
# No server specified, launch wizard
|
|
215
|
+
wizard_edit_server
|
|
216
|
+
else
|
|
217
|
+
# Server specified, edit that specific server
|
|
218
|
+
# Check if server exists
|
|
219
|
+
local host=$(get_server_config "$server" "HOST")
|
|
220
|
+
if [ -z "$host" ]; then
|
|
221
|
+
print_error "Server '$server' not found"
|
|
222
|
+
return 1
|
|
223
|
+
fi
|
|
224
|
+
|
|
225
|
+
# Set SELECTED_SERVER for wizard
|
|
226
|
+
SELECTED_SERVER="$server"
|
|
227
|
+
wizard_edit_server
|
|
228
|
+
fi
|
|
229
|
+
}
|
|
230
|
+
|
|
209
231
|
# Show server details
|
|
210
232
|
cmd_server_show() {
|
|
211
233
|
local server="$1"
|