MCP Devcontainers
mcp-devcontainers
MCP Devcontainers 是一个模型上下文协议 (MCP) 服务器,可与devcontainers cli进行简单的集成。
依赖项
该服务器需要在您的系统上安装并运行Docker ,因为devcontainers cli使用它来构建和管理开发容器。
使用 MCP Devcontainers 服务器不需要其他依赖项。
Related MCP server: Docker MCP Server
用法
MCP 服务器的配置会根据您使用的客户端而有所不同。以下是使用 Claude Desktop 进行配置的示例。
{
"mcpServers": {
"devcontainers": {
"command": "npx",
"args": [
"-y",
"@crunchloop/mcp-devcontainers"
]
}
}
}MCP 传输
目前,仅实现了stdio传输。
工具
devcontainer_up - 在指定的工作区文件夹中启动或初始化 devcontainer 环境。使用此命令可确保 devcontainer 正在运行并准备好执行开发任务。
workspaceFolder:工作区文件夹的路径(字符串,必需)outputFilePath:写入输出日志的路径(字符串,可选)
devcontainer_run_user_commands - 在 devcontainer 中为指定的工作区文件夹运行用户定义的
postCreateCommand和postStartCommand脚本。用于在 devcontainer 启动后执行设置或初始化命令。workspaceFolder:工作区文件夹的路径(字符串,必需)outputFilePath:写入输出日志的路径(字符串,可选)
devcontainer_exec - 在 devcontainer 中为指定的工作区文件夹执行任意 shell 命令。使用它可以在 devcontainer 上下文中运行自定义命令或脚本。
workspaceFolder:工作区文件夹的路径(字符串,必需)command:要执行的命令(string[],必需)outputFilePath:写入输出日志的路径(字符串,可选)
执照
根据 MIT 许可证发布。更多详情请参阅许可证文件。
Available Tools
3 toolsdevcontainer_execC
Execute an arbitrary shell command inside the devcontainer for the specified workspace folder.Use this to run custom commands or scripts within the devcontainer context.
Inputs: workspaceFolder (required), command (required), outputFilePath.
devcontainer_run_user_commandsB
Run the user-defined postCreateCommand and postStartCommand scripts in the devcontainerfor the specified workspace folder. Use this to execute setup or initialization commandsafter the devcontainer starts.
Inputs: workspaceFolder (required), outputFilePath.
devcontainer_upC
Start or initialize a devcontainer environment in the specified workspace folder.Use this to ensure the devcontainer is running and ready for development tasks.
Inputs: workspaceFolder (required), outputFilePath.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: starting the devcontainer, executing arbitrary commands, and running user-defined lifecycle scripts. No overlapping functionality.
All tools follow the 'devcontainer_verb' pattern in snake_case (exec, run_user_commands, up). Naming is consistent and predictable.
With 3 tools, the server is lean but covers core devcontainer operations. Could be slightly more comprehensive but appropriate for a focused utility.
The tool set covers starting, executing commands, and running lifecycle scripts, but misses common operations like stopping, rebuilding, or checking status, which are notable gaps.
Maintenance
Related MCP Connectors
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
A MCP server built for developers enabling Git based project management with project and personal…
Devopness MCP server for DevOps happiness! Empower AI Agents to deploy apps and infra, to any cloud.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceAn MCP server that enables programmatic management and monitoring of development servers through a unified interface and interactive TUI. It provides tools for process control, log streaming, and experimental browser automation via Playwright.1MIT
- FlicenseBqualityCmaintenanceAn MCP server that enables managing Docker containers through natural language commands, allowing users to create, list, and delete containers. It facilitates automated container orchestration and integrates with VS Code via the Cline extension.3-
- AlicenseCqualityDmaintenanceAn experimental MCP server that enables AI assistants to interact with VS Code workspaces through file operations, code execution, and Git management. It also provides tools for Docker integration, project scaffolding, and secure command execution using project-specific configurations.769 npm3MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for generating and configuring development containers from devcontainer.json files, enabling management of devcontainer environments through tools like devcontainer_up, devcontainer_exec, and cleanup.17 npm8MIT