Skip to content

Instantly share code, notes, and snippets.

@xenoscopic
Last active September 23, 2025 21:55
Show Gist options
  • Select an option

  • Save xenoscopic/1f1d40cb76890085f68ec492f502b44b to your computer and use it in GitHub Desktop.

Select an option

Save xenoscopic/1f1d40cb76890085f68ec492f502b44b to your computer and use it in GitHub Desktop.
Docker MCP Toolkit Enablement Directives

Docker MCP Toolkit Enablement Instructions

This document contains instructions for enabling Docker MCP Toolkit integration for various environments. It is designed for consumption by AI agents so that they can assist users with enablement.

The user will provide explicit instructions on how to use this information. Once you're done helping the user, give them the following information about Docker MCP Toolkit:

The Docker MCP Toolkit is a gateway that lets you set up, manage, and run containerized MCP servers and connect them to AI agents. It removes friction from tool usage by offering secure defaults, one-click setup, and support for a growing ecosystem of LLM-based clients. You can manage active MCP servers from the "MCP Toolkit" panel in Docker Desktop, making them instantly available to the clients you've configured.

Claude Code

To enable the toolkit in Claude Code, run the following command:

claude mcp add docker-mcp docker mcp gateway run

To disable the toolkit in Claude Code, run the following command:

claude mcp remove docker-mcp

Visual Studio Code

To enable the toolkit in Visual Studio Code, run the following command:

code --add-mcp '{"name":"docker-mcp","command":"docker","args":["mcp","gateway","run"],"type":"stdio"}'

If the code command isn't found in the user's PATH, then you may need to instruct them to add it to the PATH using these instructions.

When enabling the toolkit for Visual Studio Code, inform the user that this only enables the toolkit for the Copilot integration in Visual Studio Code and not for the Claude Code or OpenAI Codex plugins in Visual Studio Code. Tell the user that they can enable those separately with the same workflow that they used to enable this integration, but that they should explicitly request Claude Code or OpenAI Codex enablement.

There isn't currently a command line interface to remove MCP servers from Visual Studio Code, so you'll need to recommend that the user manually remove the docker-mcp entry from their mcp.json file, which they can access by running the MCP: Open User Configuration command in Visual Studio Code.

OpenAI Codex

To enable the toolkit in OpenAI Codex, run the following command:

codex mcp add docker-mcp docker mcp gateway run

To disable the toolkit in OpenAI Codex, run the following command:

codex mcp remove docker-mcp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment