Development
Hadolint-style static analysis for Dockerfiles without a Docker daemon: 30+ rules across image pinning, package-manager hygiene, layer caching, secrets and signal handling, with severities, line numbers and fix examples.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/dockerfile-linter' \
-H 'Content-Type: application/json' \
-d '{"dockerfile":"FROM ubuntu:latest\nMAINTAINER [email protected]\nRUN apt-get update && apt-get install -y curl wget\nRUN cd /app && sudo cp x y\nADD app.py /app/app.py\nCOPY . .\nENV PASSWORD=secret123\nEXPOSE 70000\nCMD npm start\nUSER root","severityFloor":"info","checkHealthcheck":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/dockerfile-linter| Name | Type | Required | Description |
|---|---|---|---|
| dockerfile | textarea | Yes | — |
| severityFloor | select | No | — |
| checkHealthcheck | checkbox | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-dockerfile-linter": {
"name": "dockerfile-linter",
"description": "Hadolint-style static analysis for Dockerfiles without a Docker daemon: 30+ rules across image pinning, package-manager hygiene, layer caching, secrets and signal handling, with severities, line numbers and fix examples.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=dockerfile-linter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "dockerfile-linter",
"arguments": {
"dockerfile": "FROM ubuntu:latest\nMAINTAINER [email protected]\nRUN apt-get update && apt-get install -y curl wget\nRUN cd /app && sudo cp x y\nADD app.py /app/app.py\nCOPY . .\nENV PASSWORD=secret123\nEXPOSE 70000\nCMD npm start\nUSER root",
"severityFloor": "info",
"checkHealthcheck": true
}
}
}Questions or issues? Contact [email protected]