Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Input ¶
type Input struct {
SSHHost string `json:"ssh_host,omitempty" validate:"omitempty,hostname|ip"` // SSH host for remote execution
SSHPort int `json:"ssh_port,omitempty" validate:"min=0,max=65535"` // SSH port for remote execution (default: 22)
SSHUser string `json:"ssh_user,omitempty" validate:"omitempty,alphanum|contains=-|contains=_,max=32"` // SSH user for remote execution
MaxLines int `json:"max_lines,omitempty" validate:"min=0,max=100000"` // Maximum lines to return (default: 1000)
Offset int `json:"offset,omitempty" validate:"min=0"` // Line offset for pagination
}
type MemoryInfo ¶
type MemoryInfo struct {
TotalMB int `json:"total_mb"`
UsedMB int `json:"used_mb"`
FreeMB int `json:"free_mb"`
AvailableMB int `json:"available_mb"`
CachedMB int `json:"cached_mb"`
SwapTotalMB int `json:"swap_total_mb"`
SwapUsedMB int `json:"swap_used_mb"`
SwapFreeMB int `json:"swap_free_mb"`
UsagePercent string `json:"usage_percent"`
}
type SystemInfo ¶
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
func (*Tool) SysInfoHandler ¶
func (s *Tool) SysInfoHandler(ctx context.Context, _ *mcp.CallToolRequest, input Input) (*mcp.CallToolResult, SystemInfo, error)
Click to show internal directories.
Click to hide internal directories.