system/packages
List installed packages on Debian/Ubuntu (dpkg) or Alpine (apk) systems by parsing the package database. Filter by name (glob or exact) and get text or JSON output; read-only.
Instructions
Lists installed packages by parsing the package database (dpkg on Debian/Ubuntu, apk on Alpine); rpm-based systems return an error, not supported yet. Read-only. The whole list is returned with no cap (hundreds of entries), so filter with name: an exact name or a glob (openssh-*, *ssl*). Only packages with status installed are listed. Text has a header N packages installed (dpkg) and a NAME VERSION ARCH table; output_format: json returns an array of objects (name, version, architecture), [] when none; there are no description or size fields. For OS and kernel version use system/os-release.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Only packages whose name matches this glob or exact name (e.g. 'openssh-*', '*ssl*', 'curl') | |
| privileged | No | Run as root. Needs a grant for this tool in mcp-sudo.yaml, otherwise refused | |
| output_format | No | Use json for structured output (yaml, table and wide return the same JSON); default is text |