docker mcp with vs code integration

Docker mcp toolkit allows you can access different mcp tools easily without having multiple setup or diffeeret configuration settings. It just requires one config and then you can use all those tools. 

Fire up your vscode editor. 

You need to create a folder call .vscode and create file call mcp.json with the following values 

"mcp": {
 "servers": {
   "MCP_DOCKER": {
     "command": "docker",
     "args": [
       "mcp",
       "gateway",
       "run"
     ],
     "type": "stdio"
   }
 }
}

Next, ensure you activate your chat or co-pilot extension by  going into View -> Chat. 

Ensure that you have selected Agent model -> click on tools. 


Then you can see a list of those tools appearing for you - as shown here. You are seeing the puppeteer because I have added it. You can add more if you want like curl, etc. 
To add, you can go to your Docker desktop, then goto MCP toolkit -> Catalog as shown here



This is what you see in your vscode after you added mcp catalog. If it doesn't refresh, please wait for 1 min or maybe reload your vscode.






















Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type