Skip to main content
Glama

mcp-devcontainers

MCP Devcontainers は、 devcontainers cliとの簡単な統合を提供する Model Context Protocol (MCP) サーバーです。

依存関係

このサーバーは、開発コンテナの構築と管理にdevcontainers cliによって使用されるため、システムにDockerがインストールされ、実行されている必要があります。

MCP Devcontainers サーバーを使用するために、他の依存関係は必要ありません。

Related MCP server: Docker MCP Server

使用法

MCPサーバーは、使用しているクライアントによって設定が異なります。参考までに、Claude Desktopを使用した場合の設定方法を以下に示します。

{
  "mcpServers": {
    "devcontainers": {
      "command": "npx",
      "args": [
        "-y",
        "@crunchloop/mcp-devcontainers"
      ]
    }
  }
}

MCPトランスポート

現時点では、 stdioトランスポートのみが実装されています。

ツール

  • devcontainer_up - 指定されたワークスペースフォルダで開発コンテナ環境を起動または初期化します。これにより、開発コンテナが実行中であり、開発タスクの準備ができていることを確認します。

    • workspaceFolder : ワークスペースフォルダへのパス(文字列、必須)

    • outputFilePath : 出力ログを書き込むパス(文字列、オプション)

  • devcontainer_run_user_commands - 指定されたワークスペースフォルダのdevcontainer内で、ユーザー定義のpostCreateCommandおよびpostStartCommandスクリプトを実行します。devcontainerの起動後にセットアップコマンドまたは初期化コマンドを実行する場合に使用します。

    • workspaceFolder : ワークスペースフォルダへのパス(文字列、必須)

    • outputFilePath : 出力ログを書き込むパス(文字列、オプション)

  • devcontainer_exec - 指定されたワークスペースフォルダに対して、devcontainer内で任意のシェルコマンドを実行します。devcontainerコンテキスト内でカスタムコマンドやスクリプトを実行する場合に使用します。

    • workspaceFolder : ワークスペースフォルダへのパス(文字列、必須)

    • command : 実行するコマンド(文字列[]、必須)

    • outputFilePath : 出力ログを書き込むパス(文字列、オプション)

ライセンス

MITライセンスに基づいてリリースされています。詳細はLICENSEファイルをご覧ください。

Available Tools

3 tools
devcontainer_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

    B3.4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: starting the devcontainer, executing arbitrary commands, and running user-defined lifecycle scripts. No overlapping functionality.

    Naming Consistency5/5

    All tools follow the 'devcontainer_verb' pattern in snake_case (exec, run_user_commands, up). Naming is consistent and predictable.

    Tool Count4/5

    With 3 tools, the server is lean but covers core devcontainer operations. Could be slightly more comprehensive but appropriate for a focused utility.

    Completeness3/5

    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.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      An 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.
      1
      MIT
    • F
      license
      B
      quality
      C
      maintenance
      An 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
      -
    • A
      license
      C
      quality
      D
      maintenance
      An 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.
      76
      13 npm
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP 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.
      12 npm
      8
      MIT