rename to ssh_terminal
This commit is contained in:
@@ -36,7 +36,7 @@ public sealed class SshTools
|
||||
return _sshExecService.ExecuteAsync(host, username, command, port, cwd, keyPath, keyPassphrase, timeoutSeconds, cancellationToken);
|
||||
}
|
||||
|
||||
[McpServerTool(Name = "terminal_start", Destructive = true)]
|
||||
[McpServerTool(Name = "ssh_terminal_start", Destructive = true)]
|
||||
[Description("Start a persistent SSH PTY shell session using key-based authentication.")]
|
||||
public Task<TerminalStartResult> StartTerminalAsync(
|
||||
[Description("Remote hostname or IP address. OpenSSH aliases are not supported in this vertical slice.")] string host,
|
||||
@@ -52,7 +52,7 @@ public sealed class SshTools
|
||||
return _terminalSessionManager.StartAsync(host, username, cols, rows, port, keyPath, keyPassphrase, idleTimeoutSeconds, cancellationToken);
|
||||
}
|
||||
|
||||
[McpServerTool(Name = "terminal_write", Destructive = true)]
|
||||
[McpServerTool(Name = "ssh_terminal_write", Destructive = true)]
|
||||
[Description("Write input to an active SSH terminal session.")]
|
||||
public TerminalWriteResult WriteTerminal(
|
||||
[Description("Terminal session ID returned by terminal_start.")] string sessionId,
|
||||
@@ -61,7 +61,7 @@ public sealed class SshTools
|
||||
return _terminalSessionManager.Write(sessionId, input);
|
||||
}
|
||||
|
||||
[McpServerTool(Name = "terminal_read", Destructive = false)]
|
||||
[McpServerTool(Name = "ssh_terminal_read", Destructive = false)]
|
||||
[Description("Read buffered output from an active SSH terminal session.")]
|
||||
public TerminalReadResult ReadTerminal(
|
||||
[Description("Terminal session ID returned by terminal_start.")] string sessionId,
|
||||
@@ -70,7 +70,7 @@ public sealed class SshTools
|
||||
return _terminalSessionManager.Read(sessionId, maxBytes);
|
||||
}
|
||||
|
||||
[McpServerTool(Name = "terminal_stop", Destructive = true)]
|
||||
[McpServerTool(Name = "ssh_terminal_stop", Destructive = true)]
|
||||
[Description("Stop and remove an SSH terminal session.")]
|
||||
public TerminalStopResult StopTerminal(
|
||||
[Description("Terminal session ID returned by terminal_start.")] string sessionId)
|
||||
|
||||
Reference in New Issue
Block a user