debtool-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEBTOOL_DB | No | Index path. | <cache>/index.sqlite |
| DEBTOOL_CACHE_DIR | No | Cache directory. | $XDG_CACHE_HOME/debtool |
| DEBTOOL_INDEX_TTL | No | Max index age in seconds (0 = no age limit). | 0 |
| DEBTOOL_MAX_OUTPUT | No | Max characters returned per tool call. | 12000 |
| DEBTOOL_AUTO_REFRESH | No | Rebuild when dpkg/apt metadata changes. | 1 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Local Debian package and command discovery. Read-only: nothing is installed, started or changed; install plans only print a command for the user to run.
Use this order, cheapest first:
deb_search(intent) — find commands/packages by what you want to do.
deb_card(name) — usage, package, binaries, man pages for one hit.
deb_man(name, mode="examples"|"synopsis"|"options") — focused excerpts.
deb_provides(command) — which package provides a command.
deb_install_plan(package) — exact
sudo apt install ...command.
Prefer installed tools. If a package is available but not installed, ask the user to run the printed command; never assume you may install it.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| deb_searchB | Find Debian commands, applications or packages for an intent. |
| deb_cardC | Compact usage card for one command, package, app or service. |
| deb_manC | Focused excerpt from a man page instead of the whole page. |
| deb_providesB | Which package provides a command or file (installed or available). |
| deb_install_planA | Simulate an install and print the exact sudo command for the user. |
| deb_compareC | Compare candidates: installed state, size, binary count, summary. |
| deb_statusB | Index freshness, size and counts; optional helper availability. |
| deb_refreshA | Rebuild the local index. Only call when deb_status reports it is stale. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| find_debian_tool | Guided workflow: turn a task into the right Debian tool. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| debtool-status | Index status and data sources. |
| debtool-installed | Installed packages, one compact line each. |
TDQS
Scored across 8 tools
Each tool targets a distinct operation: search, provides, man, card, install_plan, compare, status, and refresh. There is little overlap, and the descriptions make the boundaries clear.
All tools consistently use the deb_ prefix, which makes the server easy to identify. The suffixes mix noun and verb forms (deb_card, deb_search, deb_status, deb_refresh), but the pattern remains predictable and readable.
Eight tools is well-scoped for a Debian package/command lookup and planning server. Each tool has a distinct role, and there is no obvious bloat.
The surface covers discovery, package ownership, man pages, comparisons, install planning, and index maintenance. Minor gaps exist, such as no uninstall/removal plan or dependency inspection, but core workflows are supported.