ssh-agent-workspace 1.0.4 → 1.0.5
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 +158 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,6 +108,164 @@ Host bastion
|
|
|
108
108
|
|
|
109
109
|
Your agent now has a persistent workspace on `prod`. Running `cd /var/www` once means the agent stays there for every subsequent command.
|
|
110
110
|
|
|
111
|
+
### Add to Your MCP Client
|
|
112
|
+
|
|
113
|
+
<details>
|
|
114
|
+
<summary><b>OpenCode</b></summary>
|
|
115
|
+
|
|
116
|
+
Add to `~/.config/opencode/opencode.json`:
|
|
117
|
+
|
|
118
|
+
```json
|
|
119
|
+
{
|
|
120
|
+
"$schema": "https://opencode.ai/config.json",
|
|
121
|
+
"mcp": {
|
|
122
|
+
"workspace": {
|
|
123
|
+
"type": "local",
|
|
124
|
+
"command": ["npx", "-y", "ssh-agent-workspace"]
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Or via CLI:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
opencode mcp add workspace -- npx -y ssh-agent-workspace
|
|
134
|
+
```
|
|
135
|
+
</details>
|
|
136
|
+
|
|
137
|
+
<details>
|
|
138
|
+
<summary><b>Claude Code</b></summary>
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
claude mcp add workspace -- npx -y ssh-agent-workspace
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Or add to `~/.config/claude-code/claude_code_config.json` or project `.mcp.json`:
|
|
145
|
+
|
|
146
|
+
```json
|
|
147
|
+
{
|
|
148
|
+
"mcpServers": {
|
|
149
|
+
"workspace": {
|
|
150
|
+
"command": "npx",
|
|
151
|
+
"args": ["-y", "ssh-agent-workspace"],
|
|
152
|
+
"autoApprove": [
|
|
153
|
+
"mcp__workspace__connect",
|
|
154
|
+
"mcp__workspace__exec",
|
|
155
|
+
"mcp__workspace__send_input",
|
|
156
|
+
"mcp__workspace__read_output",
|
|
157
|
+
"mcp__workspace__list_hosts",
|
|
158
|
+
"mcp__workspace__list_sessions",
|
|
159
|
+
"mcp__workspace__sftp_upload",
|
|
160
|
+
"mcp__workspace__sftp_download",
|
|
161
|
+
"mcp__workspace__sftp_list"
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
> **Tip:** The `autoApprove` block lets the agent use those tools without asking permission each time. Add or remove tools based on your comfort level.
|
|
169
|
+
</details>
|
|
170
|
+
|
|
171
|
+
<details>
|
|
172
|
+
<summary><b>Cursor</b></summary>
|
|
173
|
+
|
|
174
|
+
Go to `Cursor Settings` → `MCP` → `New MCP Server`. Use this config:
|
|
175
|
+
|
|
176
|
+
```json
|
|
177
|
+
{
|
|
178
|
+
"mcpServers": {
|
|
179
|
+
"workspace": {
|
|
180
|
+
"command": "npx",
|
|
181
|
+
"args": ["-y", "ssh-agent-workspace"]
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
```
|
|
186
|
+
</details>
|
|
187
|
+
|
|
188
|
+
<details>
|
|
189
|
+
<summary><b>Codex (OpenAI)</b></summary>
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
codex mcp add workspace -- npx -y ssh-agent-workspace
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Or add to `~/.codex/config.toml`:
|
|
196
|
+
|
|
197
|
+
```toml
|
|
198
|
+
[mcp_servers.workspace]
|
|
199
|
+
command = "npx"
|
|
200
|
+
args = ["-y", "ssh-agent-workspace"]
|
|
201
|
+
```
|
|
202
|
+
</details>
|
|
203
|
+
|
|
204
|
+
<details>
|
|
205
|
+
<summary><b>Windsurf</b></summary>
|
|
206
|
+
|
|
207
|
+
Add to `~/.codeium/windsurf/mcp_config.json`:
|
|
208
|
+
|
|
209
|
+
```json
|
|
210
|
+
{
|
|
211
|
+
"mcpServers": {
|
|
212
|
+
"workspace": {
|
|
213
|
+
"command": "npx",
|
|
214
|
+
"args": ["-y", "ssh-agent-workspace"]
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
</details>
|
|
220
|
+
|
|
221
|
+
<details>
|
|
222
|
+
<summary><b>Copilot / VS Code</b></summary>
|
|
223
|
+
|
|
224
|
+
```json
|
|
225
|
+
{
|
|
226
|
+
"mcpServers": {
|
|
227
|
+
"workspace": {
|
|
228
|
+
"command": "npx",
|
|
229
|
+
"args": ["-y", "ssh-agent-workspace"]
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
</details>
|
|
235
|
+
|
|
236
|
+
<details>
|
|
237
|
+
<summary><b>Gemini CLI</b></summary>
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
gemini mcp add workspace npx -y ssh-agent-workspace
|
|
241
|
+
```
|
|
242
|
+
</details>
|
|
243
|
+
|
|
244
|
+
<details>
|
|
245
|
+
<summary><b>Cline</b></summary>
|
|
246
|
+
|
|
247
|
+
```json
|
|
248
|
+
{
|
|
249
|
+
"mcpServers": {
|
|
250
|
+
"workspace": {
|
|
251
|
+
"command": "npx",
|
|
252
|
+
"args": ["-y", "ssh-agent-workspace"]
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
```
|
|
257
|
+
</details>
|
|
258
|
+
|
|
259
|
+
<details>
|
|
260
|
+
<summary><b>Qoder</b></summary>
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
qodercli mcp add workspace -- npx -y ssh-agent-workspace
|
|
264
|
+
```
|
|
265
|
+
</details>
|
|
266
|
+
|
|
267
|
+
> **Using npx** means no global install needed. npx auto-downloads the latest version. If you installed globally (`npm install -g ssh-agent-workspace`), replace `"npx"` / `"-y"` / `"ssh-agent-workspace"` with `"ssh-agent-workspace"` as the command directly.
|
|
268
|
+
|
|
111
269
|
---
|
|
112
270
|
|
|
113
271
|
## Key Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ssh-agent-workspace",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Persistent SSH workspaces for AI agents. Stateful tmux-backed sessions that survive reconnects, restarts, and network drops — with runtime security and tool configuration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|