Debian Policy Manual MCP server for AI agents
debot is a Model Context Protocol (MCP) server that exposes the Debian Policy
Manual as MCP resources, with two tools:
- search_policy — multi-word keyword search over the whole policy manual;
a query need not match every word, but lines matching more of the query's
words rank first, returned as file:line: text matches
- upgrade_checklist — emits the policy upgrade checklist sections from a
given standards version (the Standards-Version your package was last
checked against) until the latest
The policy manual is embedded at build time from the git submodule in
policy/, so the server needs no network access at runtime.
Configuration for opencode
To use debot as an MCP server with [opencode](https://github.com/opencode), add
the following to your ~/.config/opencode/opencode.json:
```jsonc
{
"mcp": {
"debot": {
"type": "local",
"enabled": true,
"command": ["debot", "mcp"]
}
}
}
```