openSUSE/systemd-mcp
3.3
If you are the rightful owner of systemd-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Model Context Protocol (MCP) server for systemd provides a direct interface to systemd's C API, eliminating the need for systemctl.
Tools
1
Resources
0
Prompts
0
Model Context Proctocl (MCP) for systemd
The server directly connects to systemd via it's C API and so doesn't need systemctl to run.
Usage
Compile direclty with
go build systemd-mcp.go
or
make build
Functionality
Following tools are provided:
list_systemd_units_by_state
which list the unit in the given state, also all states can be listedlist_systemd_units_by_name
which list the unit given by their patternrestart_reload_unit
which restarts or reloads a unitstart_unit
start a unitstop_unit
stops a unitcheck_restart_reload
check the state of reload or restartenable_or_disable_unit
what enables or disables a unitlist_unit_files
which lists the unit files known to systemdlist_log
which has access to the system log, with various filters
Testing
You can test the functions with mcptools, with e.g.
mcptools shell go run systemd-mcp.go