Services¶
Tools for inspecting systemd services.
Choosing where to run
All tools on this page require a host parameter (string). Pass
localhost to run the command on the system the MCP server runs on, or
a remote machine to run it there via SSH.
See SSH Configuration for details, and
Host mode for restricting which of
the two a server accepts.
get_service_logs¶
Get recent logs for a specific systemd service.
Parameters:
service_name(string, required): Name of the systemd servicelines(integer, default:50): Number of log lines to retrieve. [min: 1, max: 10000]
get_service_status¶
Get detailed status of a specific systemd service.
Parameters:
service_name(string, required): Name of the systemd service
list_services¶
List all systemd services.