ssh

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(s *mcp.Server)

Types

type ListServersInput

type ListServersInput struct{}

type ListServersOutput

type ListServersOutput struct {
	Servers []config.ServerInfo `json:"servers" jsonschema:"Array of server objects with name, host, port, and user fields."`
}

type SSHExecuteInput

type SSHExecuteInput struct {
	Server  string `` /* 126-byte string literal not displayed */
	Command string `json:"command" jsonschema:"Shell command to execute on the remote host. Uses the remote system's default shell."`
	Timeout int    `json:"timeout,omitempty" jsonschema:"Command timeout in seconds. Default: 30. Set higher for long-running commands."`
}

type SSHExecuteOutput

type SSHExecuteOutput struct {
	Output   string `json:"output" jsonschema:"Combined stdout and stderr output from the remote command."`
	ExitCode int    `json:"exit_code" jsonschema:"Exit code from the remote command. 0 indicates success."`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL