MCP cover image
See in Github
2025-04-07

基于具有集成模型上下文协议(MCP)服务器的VS Code Dev容器,用于使用Claude的AI辅助开发的预配置的开发容器设置,用于文件系统和外壳操作。

1

Github Watches

0

Github Forks

1

Github Stars

AIBD Dev Container

A preconfigured development container setup for AI-assisted development with Claude, based on VS Code Dev Containers with integrated Model Context Protocol (MCP) server for file system and shell operations.

Overview

This repository provides a ready-to-use development container that:

  • Creates a consistent, isolated development environment
  • Integrates seamlessly with Claude Desktop via MCP server
  • Uses Docker volumes for persistent storage
  • Works on Windows (with WSL2), macOS, and Linux

Prerequisites

Setup Instructions

1. Clone the Repository

git clone https://github.com/gergelyszerovay/aibd-devcontainer.git
cd aibd-devcontainer

2. Open in VS Code

Open the cloned repository in Visual Studio Code. You should receive a notification asking if you want to reopen the folder in a container. Click "Reopen in Container" to proceed.

Alternatively, you can:

  1. Click the green button in the lower-left corner of VS Code
  2. Select "Reopen in Container" from the menu

3. Wait for Container Build

VS Code will build and start your development container. This process may take a few moments on first launch. Subsequent starts will be faster.

4. Access Your Project Files

The container creates a Docker volume mounted at /volume inside the container:

cd volume

This is where you should place your project files. You can either:

  • Clone an existing repository: git clone https://github.com/your-username/your-project.git
  • Create new files directly in this directory

5. Connect Claude to the Container

To connect Claude to your development container:

  1. Configure Claude Desktop to use the MCP server by adding the following to your claude_desktop_config.json:
{
  "mcpServers": {
    "devcontainer": {
      "command": "npx",
      "args": ["-y", "supergateway", "--sse", "http://localhost:3100/sse"]
    }
  }
}
  1. Restart Claude Desktop to establish the connection

Container Configuration

Dev Container JSON

The .devcontainer/devcontainer.json file configures the development container:

{
  "name": "Node.js & TypeScript",
  "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
  "forwardPorts": [3100],
  "postCreateCommand": "bash .devcontainer/install.sh",
  "postStartCommand": "bash .devcontainer/start.sh",
  "mounts": [
    "source=${localWorkspaceFolderBasename}-volume,target=${containerWorkspaceFolder}/volume,type=volume"
  ]
}

This configuration:

  • Uses the official Microsoft TypeScript/Node.js image
  • Forwards port 3100 for the MCP server
  • Runs setup scripts after creation and on each start
  • Creates a persistent Docker volume for your project files

Installation Script

The .devcontainer/install.sh script runs once when the container is first created:

#/bin/sh

sudo chown -R node:node ./

# Additional setup commands can be added here

You can customize this script to install additional tools or dependencies.

Startup Script

The .devcontainer/start.sh script runs each time the container starts:

#/bin/sh

npx -y @gergelyszerovay/mcp-server-aibd-devcontainer --enableHttpTransport=true --mcpHttpPort=3100 --enableStdioTransport=false --enableRestServer=true --restHttpPort=3101 --enableShellExecTool=true --allowed-directories=/workspaces

This script starts the MCP server that enables Claude to interact with your code.

License

This project is available under the MIT License. See the LICENSE file for more details.

相关推荐

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • open-webui
  • 用户友好的AI接口(支持Ollama,OpenAi API,...)

    Reviews

    1 (1)
    Avatar
    user_qltaWK45
    2025-04-16

    I have been using the aibd-devcontainer for a few weeks now, and it has significantly streamlined my development workflow. The ease of setting up a consistent development environment with Docker has been a game-changer. Kudos to gergelyszerovay for creating such a fantastic tool! Highly recommend checking it out on GitHub: https://github.com/gergelyszerovay/aibd-devcontainer.