Build initial MCP SSH server

This commit is contained in:
Vibe Myass
2026-05-24 20:45:12 +00:00
commit a8f7e8f483
28 changed files with 2116 additions and 0 deletions

34
README.md Normal file
View File

@@ -0,0 +1,34 @@
# MCP SSH Server
Self-contained MCP server for SSH command execution and persistent terminal sessions.
## Build
```bash
dotnet build McpSsh.slnx
dotnet test McpSsh.slnx --no-build
```
## Publish
Publish all supported runtime IDs as single-file, self-contained binaries:
```bash
./scripts/publish.sh
```
Publish one runtime:
```bash
./scripts/publish.sh linux-x64
```
The script writes binaries under `artifacts/publish/<rid>/`.
Trimming is disabled by default because the MCP SDK discovers tools through reflection. To experiment with trimming after validating tool discovery in the published binary:
```bash
PUBLISH_TRIMMED=true ./scripts/publish.sh linux-x64
```
NativeAOT is not enabled. This code should be treated as not AOT-ready until the MCP SDK reflection path and SSH.NET dependencies are explicitly validated under `PublishAot=true`.