Files
mcp-ssh/README.md
2026-05-24 20:48:11 +00:00

982 B

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.