Dockerfile language server for syntax validation, best practices, and auto-completion.
## Dockerfile LSP MCP Server: Container Definition Intelligence The **Dockerfile LSP MCP Server** provides intelligent Dockerfile editing with best practice suggestions, syntax validation, and multi-stage build support for container development. ### Why Dockerfile LSP MCP? Containers power modern deployment. The Dockerfile LSP MCP provides: - **Syntax Validation**: Catch errors early - **Best Practices**: Hadolint integration - **Multi-stage**: Build stage navigation - **Base Images**: Image tag suggestions ### Key Features #### 1. Instruction Support All Dockerfile instructions: - FROM with tag completion - RUN with shell suggestions - COPY/ADD with paths - ENV and ARG handling #### 2. Best Practices Security and optimization: - Layer caching hints - Security warnings - Size optimization - Pinned versions ### Configuration ```json { "mcpServers": { "dockerfile-lsp": { "command": "dockerfile-language-server", "args": ["--stdio", "--mcp"] } } } ``` The Dockerfile LSP MCP ensures container definitions follow best practices.
{
"mcpServers": {
"dockerfile-lsp": {}
}
}