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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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