mcp-ssh-manager 3.0.0 → 3.1.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/.claude/settings.local.json +10 -1
- package/CHANGELOG.md +63 -0
- package/CLAUDE.md +16 -0
- package/README.md +117 -4
- 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/context-test.txt +1 -0
- package/docs/SOCIAL_MEDIA_ANNOUNCEMENT.md +385 -0
- package/docs/TOOL_MANAGEMENT.md +473 -0
- package/docs/TROUBLESHOOTING.md +143 -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/config.js +70 -0
- 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 +899 -841
- 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 +4 -3
- package/src/ssh-manager.js +46 -24
- package/src/tool-config-manager.js +434 -0
- package/src/tool-registry.js +196 -0
- package/src/tunnel-manager.js +98 -98
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
# Social Media Announcement - v3.1.0
|
|
2
|
+
|
|
3
|
+
## Twitter/X Post
|
|
4
|
+
|
|
5
|
+
🚀 NEW: MCP SSH Manager v3.1.0 - Tool Activation System!
|
|
6
|
+
|
|
7
|
+
Reduce context usage by 92% with intelligent tool activation. Enable only what you need:
|
|
8
|
+
|
|
9
|
+
✅ 37 DevOps tools (SSH, Database, Backup, Monitoring)
|
|
10
|
+
✅ 6 tool groups (Core → Advanced)
|
|
11
|
+
✅ Compatible with Claude Code & OpenAI Codex
|
|
12
|
+
✅ Auto-approval config export
|
|
13
|
+
|
|
14
|
+
Install: `npm i -g mcp-ssh-manager`
|
|
15
|
+
|
|
16
|
+
📦 https://github.com/bvisible/mcp-ssh-manager
|
|
17
|
+
🌟 Star if useful!
|
|
18
|
+
|
|
19
|
+
#MCP #ClaudeCode #DevOps #SSH #AI #Automation
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Reddit Post (r/ClaudeAI)
|
|
24
|
+
|
|
25
|
+
**Title:** MCP SSH Manager v3.1.0 - Comprehensive SSH automation with 92% context reduction
|
|
26
|
+
|
|
27
|
+
**Body:**
|
|
28
|
+
|
|
29
|
+
I've been working on MCP SSH Manager, a Model Context Protocol server that brings comprehensive SSH management to Claude Code (and OpenAI Codex).
|
|
30
|
+
|
|
31
|
+
**What is it?**
|
|
32
|
+
|
|
33
|
+
A complete DevOps automation platform with 37 MCP tools for managing remote SSH servers directly from Claude Code:
|
|
34
|
+
|
|
35
|
+
- 🔧 Core SSH operations (execute, upload, download, sync)
|
|
36
|
+
- 💾 Backup & restore (MySQL, PostgreSQL, MongoDB, files)
|
|
37
|
+
- 🏥 Health monitoring (CPU, RAM, disk, network, services)
|
|
38
|
+
- 🗄️ Database management (dumps, imports, queries)
|
|
39
|
+
- 🚇 SSH tunnels (local, remote, SOCKS)
|
|
40
|
+
- 📦 Advanced features (persistent sessions, server groups, profiles, hooks)
|
|
41
|
+
|
|
42
|
+
**What's new in v3.1.0?**
|
|
43
|
+
|
|
44
|
+
Tool activation system - reduce context usage by **92%**!
|
|
45
|
+
|
|
46
|
+
- Enable only the tools you need (minimal mode: 5 tools vs all 37)
|
|
47
|
+
- 6 tool groups: Core, Sessions, Monitoring, Backup, Database, Advanced
|
|
48
|
+
- CLI: `ssh-manager tools configure` for interactive setup
|
|
49
|
+
- Export auto-approval configs for Claude Code
|
|
50
|
+
|
|
51
|
+
**Why build this?**
|
|
52
|
+
|
|
53
|
+
Existing MCP SSH tools offer 2-4 basic operations. I needed enterprise DevOps features: automated backups, health monitoring, database operations, etc.
|
|
54
|
+
|
|
55
|
+
**Installation:**
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npm install -g mcp-ssh-manager
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Configuration:**
|
|
62
|
+
|
|
63
|
+
Claude Code:
|
|
64
|
+
```json
|
|
65
|
+
{
|
|
66
|
+
"mcpServers": {
|
|
67
|
+
"ssh-manager": {
|
|
68
|
+
"command": "node",
|
|
69
|
+
"args": ["/path/to/mcp-ssh-manager/src/index.js"]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
OpenAI Codex:
|
|
76
|
+
```bash
|
|
77
|
+
ssh-manager codex setup
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Links:**
|
|
81
|
+
|
|
82
|
+
- GitHub: https://github.com/bvisible/mcp-ssh-manager
|
|
83
|
+
- NPM: https://www.npmjs.com/package/mcp-ssh-manager
|
|
84
|
+
- Glama.ai: https://glama.ai/mcp/servers/@bvisible/mcp-ssh-manager
|
|
85
|
+
- Documentation: Full guides for all features
|
|
86
|
+
|
|
87
|
+
**Features I'm proud of:**
|
|
88
|
+
|
|
89
|
+
- Dual compatibility (Claude Code + OpenAI Codex)
|
|
90
|
+
- Profile system (default, docker, frappe, nodejs)
|
|
91
|
+
- Hooks for automation (pre-deploy, post-deploy, on-error)
|
|
92
|
+
- Command aliases (reduce typing)
|
|
93
|
+
- Comprehensive testing & CI/CD
|
|
94
|
+
- 92% context reduction with tool activation
|
|
95
|
+
|
|
96
|
+
Would love feedback! Star on GitHub if you find it useful ⭐
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Hacker News Post (Show HN)
|
|
101
|
+
|
|
102
|
+
**Title:** Show HN: MCP SSH Manager – 37 DevOps tools for Claude Code with 92% context reduction
|
|
103
|
+
|
|
104
|
+
**Body:**
|
|
105
|
+
|
|
106
|
+
Hi HN! I built MCP SSH Manager, a comprehensive Model Context Protocol server for SSH automation with Claude Code and OpenAI Codex.
|
|
107
|
+
|
|
108
|
+
**The problem:** Existing MCP SSH tools offer 2-4 basic operations (execute, upload, download). I needed enterprise DevOps features like automated backups, health monitoring, and database management - directly accessible from my AI assistant.
|
|
109
|
+
|
|
110
|
+
**What I built:**
|
|
111
|
+
|
|
112
|
+
37 MCP tools organized into 6 groups:
|
|
113
|
+
- Core (5): SSH execute, upload, download, sync, sudo
|
|
114
|
+
- Sessions (4): Persistent SSH sessions
|
|
115
|
+
- Monitoring (6): Health checks, service status, process management
|
|
116
|
+
- Backup (4): MySQL/PostgreSQL/MongoDB/file backups with scheduling
|
|
117
|
+
- Database (4): Dumps, imports, queries, table listings
|
|
118
|
+
- Advanced (14): Tunnels, groups, profiles, hooks, aliases
|
|
119
|
+
|
|
120
|
+
**New in v3.1.0: Tool Activation System**
|
|
121
|
+
|
|
122
|
+
The biggest challenge was context usage - 37 tools consume ~43.5k tokens. Solution: intelligent tool activation.
|
|
123
|
+
|
|
124
|
+
- Users can enable only needed tool groups
|
|
125
|
+
- Minimal mode: 5 tools (~3.5k tokens) = 92% reduction
|
|
126
|
+
- Interactive CLI: `ssh-manager tools configure`
|
|
127
|
+
- Export auto-approval configs for Claude Code
|
|
128
|
+
|
|
129
|
+
**Technical details:**
|
|
130
|
+
|
|
131
|
+
- Built with @modelcontextprotocol/sdk + ssh2
|
|
132
|
+
- Dual config support: .env (Claude) + TOML (Codex)
|
|
133
|
+
- Profile system for different workflows (docker, nodejs, frappe)
|
|
134
|
+
- Hooks for automation (pre-deploy, post-deploy, on-error)
|
|
135
|
+
- Comprehensive testing with GitHub Actions CI/CD
|
|
136
|
+
|
|
137
|
+
**Stack:**
|
|
138
|
+
|
|
139
|
+
- Node.js 18+
|
|
140
|
+
- SSH2 for connections
|
|
141
|
+
- Zod for validation
|
|
142
|
+
- TOML parser for Codex configs
|
|
143
|
+
|
|
144
|
+
**Example use cases:**
|
|
145
|
+
|
|
146
|
+
1. "Deploy my app to production server, create a database backup first"
|
|
147
|
+
2. "Check health of all my servers and alert me if any are above 80% CPU"
|
|
148
|
+
3. "Execute this command on all servers in the 'web' group sequentially"
|
|
149
|
+
4. "Create a backup of the MySQL database and schedule it to run daily at 2am"
|
|
150
|
+
|
|
151
|
+
**Links:**
|
|
152
|
+
|
|
153
|
+
- Repo: https://github.com/bvisible/mcp-ssh-manager
|
|
154
|
+
- NPM: https://www.npmjs.com/package/mcp-ssh-manager
|
|
155
|
+
- Docs: https://github.com/bvisible/mcp-ssh-manager#readme
|
|
156
|
+
|
|
157
|
+
Would love HN's feedback! What other DevOps automation would you want accessible from your AI assistant?
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## LinkedIn Post
|
|
162
|
+
|
|
163
|
+
🚀 Excited to announce MCP SSH Manager v3.1.0!
|
|
164
|
+
|
|
165
|
+
After months of development, I'm releasing a comprehensive Model Context Protocol server that brings enterprise DevOps automation to Claude Code and OpenAI Codex.
|
|
166
|
+
|
|
167
|
+
**What does it do?**
|
|
168
|
+
|
|
169
|
+
Think of it as giving your AI assistant direct, controlled access to your SSH servers with 37 specialized tools:
|
|
170
|
+
|
|
171
|
+
✅ Execute commands remotely
|
|
172
|
+
✅ Automated database backups (MySQL, PostgreSQL, MongoDB)
|
|
173
|
+
✅ Health monitoring (CPU, RAM, disk, network)
|
|
174
|
+
✅ File transfers & synchronization
|
|
175
|
+
✅ SSH tunnel management
|
|
176
|
+
✅ Database operations
|
|
177
|
+
✅ And much more...
|
|
178
|
+
|
|
179
|
+
**Key innovation in v3.1.0:**
|
|
180
|
+
|
|
181
|
+
Tool activation system reduces AI context usage by 92%. Enable only the tools you need - from 5 core tools to all 37 advanced features.
|
|
182
|
+
|
|
183
|
+
**Why this matters:**
|
|
184
|
+
|
|
185
|
+
DevOps teams spend hours on repetitive SSH tasks. With MCP SSH Manager, you can ask Claude Code:
|
|
186
|
+
|
|
187
|
+
"Deploy the app to production, backup the database first, and monitor the health metrics"
|
|
188
|
+
|
|
189
|
+
And it handles everything - safely and automatically.
|
|
190
|
+
|
|
191
|
+
**Enterprise-ready features:**
|
|
192
|
+
|
|
193
|
+
- Profile system for different workflows
|
|
194
|
+
- Automation hooks (pre-deploy, post-deploy, on-error)
|
|
195
|
+
- Server groups for batch operations
|
|
196
|
+
- Comprehensive audit logging
|
|
197
|
+
- Security-first design
|
|
198
|
+
|
|
199
|
+
Check it out: https://github.com/bvisible/mcp-ssh-manager
|
|
200
|
+
|
|
201
|
+
#DevOps #AI #Automation #ClaudeCode #SSH #EnterpriseIT #CloudComputing
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Dev.to / Medium Article Outline
|
|
206
|
+
|
|
207
|
+
**Title:** "Building an Enterprise DevOps Platform with Model Context Protocol: Lessons from MCP SSH Manager"
|
|
208
|
+
|
|
209
|
+
**Sections:**
|
|
210
|
+
|
|
211
|
+
1. **Introduction**
|
|
212
|
+
- What is MCP?
|
|
213
|
+
- Why SSH automation?
|
|
214
|
+
- The gap in existing solutions
|
|
215
|
+
|
|
216
|
+
2. **Architecture Overview**
|
|
217
|
+
- MCP SDK integration
|
|
218
|
+
- Tool design patterns
|
|
219
|
+
- Connection pooling
|
|
220
|
+
- Security considerations
|
|
221
|
+
|
|
222
|
+
3. **The Tool Activation Challenge**
|
|
223
|
+
- Context token limits
|
|
224
|
+
- 37 tools = 43.5k tokens
|
|
225
|
+
- Solution: Dynamic tool activation
|
|
226
|
+
- 92% reduction achieved
|
|
227
|
+
|
|
228
|
+
4. **Technical Deep Dives**
|
|
229
|
+
- Dual configuration support (.env + TOML)
|
|
230
|
+
- Profile system architecture
|
|
231
|
+
- Hooks and automation
|
|
232
|
+
- Testing strategy
|
|
233
|
+
|
|
234
|
+
5. **Real-world Use Cases**
|
|
235
|
+
- Automated deployments
|
|
236
|
+
- Database backup workflows
|
|
237
|
+
- Health monitoring dashboards
|
|
238
|
+
- Multi-server management
|
|
239
|
+
|
|
240
|
+
6. **Lessons Learned**
|
|
241
|
+
- Tool granularity vs. simplicity
|
|
242
|
+
- Security in AI-accessible systems
|
|
243
|
+
- Error handling for AI consumers
|
|
244
|
+
- Documentation for AI understanding
|
|
245
|
+
|
|
246
|
+
7. **Future Directions**
|
|
247
|
+
- Community feedback
|
|
248
|
+
- Planned features
|
|
249
|
+
- MCP ecosystem growth
|
|
250
|
+
|
|
251
|
+
8. **Getting Started**
|
|
252
|
+
- Installation guide
|
|
253
|
+
- Quick start examples
|
|
254
|
+
- Links to resources
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## YouTube Video Script Outline
|
|
259
|
+
|
|
260
|
+
**Title:** "MCP SSH Manager v3.1.0 - Automate DevOps with Claude Code (92% Context Reduction)"
|
|
261
|
+
|
|
262
|
+
**Duration:** 8-10 minutes
|
|
263
|
+
|
|
264
|
+
**Outline:**
|
|
265
|
+
|
|
266
|
+
1. **Intro (30 sec)**
|
|
267
|
+
- What we're building
|
|
268
|
+
- Why it matters
|
|
269
|
+
|
|
270
|
+
2. **Problem Statement (1 min)**
|
|
271
|
+
- Manual SSH tasks
|
|
272
|
+
- Existing MCP tools limitations
|
|
273
|
+
- Context usage challenges
|
|
274
|
+
|
|
275
|
+
3. **Demo: Basic Setup (2 min)**
|
|
276
|
+
- Install from npm
|
|
277
|
+
- Configure Claude Code
|
|
278
|
+
- First SSH command
|
|
279
|
+
|
|
280
|
+
4. **Demo: Tool Activation (2 min)**
|
|
281
|
+
- Show all 37 tools
|
|
282
|
+
- Run `ssh-manager tools configure`
|
|
283
|
+
- Compare context usage
|
|
284
|
+
|
|
285
|
+
5. **Demo: Real DevOps Workflow (3 min)**
|
|
286
|
+
- Deploy app
|
|
287
|
+
- Backup database
|
|
288
|
+
- Monitor health
|
|
289
|
+
- All from Claude Code
|
|
290
|
+
|
|
291
|
+
6. **Feature Highlights (1.5 min)**
|
|
292
|
+
- Profiles
|
|
293
|
+
- Hooks
|
|
294
|
+
- Server groups
|
|
295
|
+
- OpenAI Codex support
|
|
296
|
+
|
|
297
|
+
7. **Outro (30 sec)**
|
|
298
|
+
- Links
|
|
299
|
+
- Call to action (star on GitHub)
|
|
300
|
+
- What's next
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## Instagram/Visual Content Ideas
|
|
305
|
+
|
|
306
|
+
1. **Infographic: "37 DevOps Tools, 92% Less Context"**
|
|
307
|
+
- Visual comparison: All tools vs Minimal mode
|
|
308
|
+
- Token usage chart
|
|
309
|
+
- Tool group breakdown
|
|
310
|
+
|
|
311
|
+
2. **Carousel: "From Manual SSH to AI-Powered DevOps"**
|
|
312
|
+
- Slide 1: Old way (terminal commands)
|
|
313
|
+
- Slide 2: MCP SSH Manager way (Claude Code)
|
|
314
|
+
- Slide 3: Results (time saved, errors reduced)
|
|
315
|
+
- Slide 4: Get started (GitHub link)
|
|
316
|
+
|
|
317
|
+
3. **Short Video: "Deploy in 10 Seconds with Claude Code"**
|
|
318
|
+
- Screen recording of deployment workflow
|
|
319
|
+
- Before/after comparison
|
|
320
|
+
- Call to action
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## Community Engagement Plan
|
|
325
|
+
|
|
326
|
+
**Week 1:**
|
|
327
|
+
- Post on Reddit r/ClaudeAI, r/devops, r/MachineLearning
|
|
328
|
+
- Share on Twitter/X with relevant hashtags
|
|
329
|
+
- Post on LinkedIn
|
|
330
|
+
- Submit to Hacker News
|
|
331
|
+
|
|
332
|
+
**Week 2:**
|
|
333
|
+
- Write Dev.to article
|
|
334
|
+
- Create YouTube demo video
|
|
335
|
+
- Engage with comments/questions
|
|
336
|
+
- Update Glama.ai listing
|
|
337
|
+
|
|
338
|
+
**Week 3:**
|
|
339
|
+
- Write Medium article (technical deep dive)
|
|
340
|
+
- Submit to awesome-mcp lists
|
|
341
|
+
- Answer Stack Overflow questions about MCP SSH
|
|
342
|
+
- Create comparison article
|
|
343
|
+
|
|
344
|
+
**Week 4:**
|
|
345
|
+
- Follow up on MCP official repo submission
|
|
346
|
+
- Collect user feedback
|
|
347
|
+
- Plan v3.2.0 based on feedback
|
|
348
|
+
- Create case studies
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
352
|
+
## Hashtags to Use
|
|
353
|
+
|
|
354
|
+
**General:**
|
|
355
|
+
#MCP #ModelContextProtocol #ClaudeCode #OpenAICodex #AI #Automation #DevOps
|
|
356
|
+
|
|
357
|
+
**Technical:**
|
|
358
|
+
#SSH #RemoteManagement #CloudComputing #Infrastructure #IaC #SRE #Platform
|
|
359
|
+
|
|
360
|
+
**AI-specific:**
|
|
361
|
+
#AITools #LLM #AIAgent #AIAssistant #Anthropic #OpenAI #Claude
|
|
362
|
+
|
|
363
|
+
**Community:**
|
|
364
|
+
#OpenSource #JavaScript #NodeJS #TypeScript #NPM #GitHub
|
|
365
|
+
|
|
366
|
+
---
|
|
367
|
+
|
|
368
|
+
## Key Messages to Emphasize
|
|
369
|
+
|
|
370
|
+
1. **Most comprehensive** - 37 tools vs competitors' 2-4
|
|
371
|
+
2. **Enterprise-ready** - Not just basic SSH, full DevOps platform
|
|
372
|
+
3. **Efficient** - 92% context reduction with tool activation
|
|
373
|
+
4. **Dual support** - Claude Code AND OpenAI Codex
|
|
374
|
+
5. **Production-ready** - Extensive testing, CI/CD, documentation
|
|
375
|
+
6. **Active development** - Regular updates, community-driven
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
## Call to Action Options
|
|
380
|
+
|
|
381
|
+
1. **For developers:** "Star on GitHub if you find it useful!"
|
|
382
|
+
2. **For users:** "Try it now: `npm install -g mcp-ssh-manager`"
|
|
383
|
+
3. **For contributors:** "Issues and PRs welcome!"
|
|
384
|
+
4. **For feedback:** "What DevOps features would you like to see next?"
|
|
385
|
+
5. **For community:** "Join the discussion on GitHub Discussions"
|