MCP server for devcontainer to generate and configure development containers directly from devcontainer.json configuration files.
This project is built with Node.js. For local development, you can either:
- Install
Node.js
on your machine, or - Use the provided devcontainer virtual environment.
You may run the project without installing Node.js
locally by using npx
:
npx -y mcp-devcontainers
Docker is required in the execution environment:
- For local MCP server: Install Docker on your local machine
- For remote MCP server: Install Docker on the remote server
π¦ Docker installation guide: https://docs.docker.com/get-started/get-docker/
- Build:
npm run build
- Compiles TypeScript to JavaScript - Watch mode:
npm run watch
- Automatically rebuilds on file changes - Prepare release:
npm run prepare
- Prepares the package for publishing - Run ESLint:
npm run lint
- Executes ESLint for code validation - Fix ESLint issues:
npm run lint:fix
- Automatically fixes ESLint errors
Launches the MCP server with stdio transport
npm start
Runs the MCP server with Server-Sent Events transport on https://{your-domain}/sse
npm start sse
Starts the MCP server with Streamable HTTP transport on https://{your-domain}/mcp
npm start http
Tools are built on the devcontainers/cli
They enable you to generate and configure development containers directly from devcontainer.json
configuration files:
Initializes and starts a devcontainer environment in the specified workspace folder. Ensures the devcontainer is operational and ready for development tasks.
-
Name Required Type Description workspaceFolder β« string Path to the workspace folder outputFilePath βͺ string Path for output logs -
Text content with the devcontainer startup information
Executes user-defined postCreateCommand and postStartCommand scripts within the devcontainer for the specified workspace. Use this to run setup or initialization tasks after container startup.
-
Name Required Type Description workspaceFolder β« string Path to the workspace folder outputFilePath βͺ string Path for output logs -
Text content with the command execution result
Runs a custom shell command inside the devcontainer for the specified workspace. Useful for executing arbitrary commands or scripts within the devcontainer environment.
-
Name Required Type Description workspaceFolder β« string Path to the workspace folder outputFilePath βͺ string Path for output logs command β« string[ ] Command to execute as string array -
Text content with the command execution result
We welcome contributions of any kind to this project, including feature enhancements, UI improvements, documentation updates, test case completions, and syntax corrections. I believe that a real developer can write better code than AI, so if you have concerns about certain parts of the code implementation, feel free to share your suggestions or submit a pull request.
Please review our Code of Conduct. It is in effect at all times. We expect it to be honored by everyone who contributes to this project.
For more information, please see Contributing Guidelines
Before creating an issue, check if you are using the latest version of the project. If you are not up-to-date, see if updating fixes your issue first.
Review our Security Policy. Do not file a public issue for security vulnerabilities.
Written by @AIQL.com.
This project is licensed under the MIT License. See the LICENSE file for details.