This repo is a template for how to create a MCP project using DevContainers.
- Install DevContainer CLI:
npm install -g @devcontainers/CLI
- Start devcontainer:
cd mcpexample
devcontainer up --workspace-folder .
- Enter devcontainer:
devcontainer exec --workspace-folder . bash
- Start nvim
Once you've finished creating your MCP project, you'll need to execute the project in a container. To do that we use:
docker build -t xpn/mcpexample .
This will copy the project into a new container, which we can then run using:
docker run -i xpn/mcpexample