d3b39c590a74ea5ac302e41e7ca9efc98de4b783
MCP SSH Server
Self-contained MCP server for SSH command execution and persistent terminal sessions.
Build
dotnet build McpSsh.slnx
dotnet test McpSsh.slnx --no-build
Publish
Publish all supported runtime IDs as single-file, self-contained binaries:
./scripts/publish.sh
Publish one runtime:
./scripts/publish.sh linux-x64
The script writes binaries under artifacts/publish/<rid>/.
ReadyToRun is enabled by default to improve startup:
PUBLISH_READY_TO_RUN=false ./scripts/publish.sh linux-x64
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:
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.
Description
Languages
C#
98.9%
Shell
1.1%