config

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package config provides configuration loading, validation, and defaults for the linux-mcp MCP server.

Index

Constants

View Source
const (
	ToolNameGetSystemInfo             = "get_system_info"
	ToolNameGetCPUInfo                = "get_cpu_info"
	ToolNameGetCPUTemperature         = "get_cpu_temperature"
	ToolNameGetMemoryInfo             = "get_memory_info"
	ToolNameGetDiskInfo               = "get_disk_info"
	ToolNameGetNetworkInfo            = "get_network_info"
	ToolNameGetProcessInfo            = "get_process_info"
	ToolNameGetDockerInfo             = "get_docker_info"
	ToolNameGetDockerContainerDetails = "get_docker_container_details"
	ToolNameGetDockerContainerLogs    = "get_docker_container_logs"
	ToolNameGetDockerContainerStats   = "get_docker_container_stats"
	ToolNameGetDockerContainerTop     = "get_docker_container_top"
	ToolNameGetDockerContainerDiff    = "get_docker_container_diff"
	ToolNameGetDockerImageHistory     = "get_docker_image_history"
	ToolNameGetDockerImageDetails     = "get_docker_image_details"
	ToolNameGetDockerNetworks         = "get_docker_networks"
	ToolNameGetDockerVolumes          = "get_docker_volumes"
	ToolNameGetDockerSystemInfo       = "get_docker_system_info"
	ToolNameGetDockerDiskUsage        = "get_docker_disk_usage"
	ToolNameGetDockerStatsAll         = "get_docker_stats_all"
	ToolNameGetDockerSystemSnapshot   = "get_docker_system_snapshot"
	ToolNameGetSystemSnapshot         = "get_system_snapshot"
	ToolNameGetJournalLogs            = "get_journal_logs"
	ToolNameGetInodeUsage             = "get_inode_usage"
	ToolNameGetNetworkConnections     = "get_network_connections"
	ToolNameGetListeningPorts         = "get_listening_ports"
	ToolNameGetServiceStatus          = "get_service_status"
	ToolNameGetProcessFDs             = "get_process_fds"
	ToolNameGetTopIOProcesses         = "get_top_io_processes"
	ToolNameGetFailedLogins           = "get_failed_logins"
	ToolNameGetGPUInfo                = "get_gpu_info"
	ToolNameGetLargestFiles           = "get_largest_files"
	ToolNamePingHost                  = "ping_host"
	ToolNameGetInstalledPackages      = "get_installed_packages"
	ToolNameCheckUpdates              = "check_updates"
	ToolNameGetLoadAverage            = "get_load_average"
	ToolNameGetLoggedInUsers          = "get_logged_in_users"
	ToolNameResolveDNS                = "resolve_dns"
	ToolNameGetMountOptions           = "get_mount_options"
	ToolNameGetSystemdUnits           = "get_systemd_units"
	ToolNameGetBootTime               = "get_boot_time"
	ToolNameGetBootBlame              = "get_boot_blame"
	ToolNameGetBootCriticalChain      = "get_boot_critical_chain"
	ToolNameGetManPage                = "get_man_page"
	ToolNameGetEnvironmentVariables   = "get_environment_variables"
	ToolNameGetHardwareBusInfo        = "get_hardware_bus_info"
	ToolNameGetUserAutomation         = "get_user_automation"
	ToolNameGetDesktopSessionInfo     = "get_desktop_session_info"
	ToolNameGetPowerAnalytics         = "get_power_analytics"
	ToolNameGetUserInfo               = "get_user_info"
	ToolNameGetIPInfo                 = "get_ip_info"
	ToolNameGetBlockDevices           = "get_block_devices"
	ToolNameGetSELinuxAppArmorStatus  = "get_selinux_apparmor_status"
	ToolNameGetTimeSyncStatus         = "get_time_sync_status"
	ToolNameGetRAIDStatus             = "get_raid_status"
	ToolNameGetLogrotateStatus        = "get_logrotate_status"
	ToolNameGetCronJobs               = "get_cron_jobs"
	ToolNameGetSystemHealthCheck      = "get_system_health_check"
	ToolNameGetSecurityAudit          = "get_security_audit"
	ToolNameGetSMARTHealth            = "get_smart_health"
	ToolNameGetDiskIOMetrics          = "get_disk_io_metrics"
	ToolNameGetProcDiagnostics        = "get_proc_diagnostics"
	ToolNameGetAuditLogs              = "get_audit_logs"
	ToolNameGetFileLocks              = "get_file_locks"
	ToolNameGetSharedMemorySegments   = "get_shared_memory_segments"
	ToolNameGetProcessTree            = "get_process_tree"
	ToolNameGetKernelModules          = "get_kernel_modules"
	ToolNameGetRoutingTable           = "get_routing_table"
	ToolNameGetIOStats                = "get_io_stats"
)

Tool name constants for consistent reference across packages.

Variables

This section is empty.

Functions

func IsDisabled

func IsDisabled(name string) bool

func Load

func Load() error

func Reload

func Reload() error

func ToolTimeout

func ToolTimeout(name string, fallback time.Duration) time.Duration

Types

type Config

type Config struct {
	LogLevel string            `json:"log_level"`
	Timeouts map[string]string `json:"timeouts"`
	Disabled []string          `json:"disabled"`
}

func Get

func Get() Config

Jump to

Keyboard shortcuts

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