Skip to content
pkgseek
← All MCP tools
translate_dockerfileReleases and migration

Translate Dockerfile

Statically parse single- or multi-stage Dockerfiles, map packages to a target container distro, and suggest multi-stage build-time slimming.

Inputs

  • input
  • target_distro
  • target_release?
  • source_distro?
  • source_release?
  • stage_index?
SafetyRead-only and idempotent; input is never executed.

JSON-RPC example

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "translate_dockerfile",
    "arguments": {
      "input": "FROM debian:bookworm-slim\nRUN apt-get update && apt-get install -y gcc curl nginx",
      "target_distro": "alpine"
    }
  }
}

POST https://api.pkgseek.com/mcp · Content-Type: application/json