Skip to main content
Glama

MCP Devcontainers

by crunchloop

mcp-devcontainers

MCP Devcontainers 是一个模型上下文协议 (MCP) 服务器,可与devcontainers cli进行简单的集成。

依赖项

该服务器需要在您的系统上安装并运行Docker ,因为devcontainers cli使用它来构建和管理开发容器。

使用 MCP Devcontainers 服务器不需要其他依赖项。

用法

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 中为指定的工作区文件夹运行用户定义的postCreateCommandpostStartCommand脚本。用于在 devcontainer 启动后执行设置或初始化命令。
    • workspaceFolder :工作区文件夹的路径(字符串,必需)
    • outputFilePath :写入输出日志的路径(字符串,可选)
  • devcontainer_exec - 在 devcontainer 中为指定的工作区文件夹执行任意 shell 命令。使用它可以在 devcontainer 上下文中运行自定义命令或脚本。
    • workspaceFolder :工作区文件夹的路径(字符串,必需)
    • command :要执行的命令(string[],必需)
    • outputFilePath :写入输出日志的路径(字符串,可选)

执照

根据 MIT 许可证发布。更多详情请参阅许可证文件。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

MCP 服务器可以通过 devcontainers CLI 与开发容器进行交互,允许用户在 devcontainers 中启动、运行命令以及执行任意 shell 命令。

  1. 依赖项
    1. 用法
      1. MCP 传输
        1. 工具
          1. 执照

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              An MCP server to run commands.
              Last updated -
              2
              265
              150
              TypeScript
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              An MCP server to create secure code sandbox environment for executing code within Docker containers.
              Last updated -
              69
              Go
              MIT License
              • Linux
              • Apple
            • -
              security
              A
              license
              -
              quality
              An MCP server that allows managing Docker containers through natural language, enabling users to compose, introspect, and debug containers without running commands themselves.
              Last updated -
              468
              Python
              GPL 3.0
              • Apple
            • -
              security
              F
              license
              -
              quality
              A simple MCP server that allows accessing and executing shell commands on a VM machine through a web-based terminal interface, with automatic tunneling to make the VM accessible from anywhere.
              Last updated -
              39
              2
              JavaScript

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/crunchloop/mcp-devcontainers'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server