Skip to content

Commit f71e39d

Browse files
committed
AI tools: connect to VSCode
1 parent 7b18100 commit f71e39d

File tree

6 files changed

+59
-8
lines changed

6 files changed

+59
-8
lines changed

.gitignore

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
**/.DS_Store
2-
**/desktop.ini
1+
.hugo_build.lock
2+
.idea/
3+
.vscode/mcp.json
34
.vscode/settings.json
45
.vscode/tasks.json
6+
**/.DS_Store
7+
**/desktop.ini
58
node_modules
6-
.hugo_build.lock
7-
resources
89
public
9-
tmp
10+
resources
1011
static/pagefind
11-
.idea/
12+
tmp

_vale/config/vocabularies/Docker/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ unmanaged
157157
VMware
158158
vpnkit
159159
vSphere
160+
VSCode
160161
Wasm
161162
Windows
162163
windowsfilter
Loading
Loading
Loading

content/manuals/ai/mcp-catalog-and-toolkit/toolkit.md

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ Imagine you want to enable Ask Gordon to interact with your GitHub account:
8383

8484
1. From the **MCP Toolkit** menu, select the **Catalog** tab and find
8585
the **GitHub Official** server and add it.
86-
2. In the server's **Config** tab, insert your token generated from
87-
your [GitHub account](https://github.com/settings/personal-access-tokens).
86+
2. In the server's **Config** tab, connect via OAuth.
8887
3. In the **Clients** tab, ensure Gordon is connected.
8988
4. From the **Ask Gordon** menu, you can now send requests related to your
9089
GitHub account, in accordance to the tools provided by the GitHub MCP server. To test it, ask Gordon:
@@ -123,3 +122,53 @@ and add Claude Desktop as a client:
123122
```text
124123
Take a screenshot of docs.docker.com and then invert the colors
125124
```
125+
126+
### Example: Use Visual Studio Code as a client
127+
128+
You can interact with all your installed MCP servers in VSCode by configuring VS
129+
Code for a specific project:
130+
131+
1. In Docker Desktop, select **MCP Toolkit** and select the **Clients** tab.
132+
1. Option 1: To enable the MCP Toolkit globally:
133+
134+
1. Insert the following in your user's config.json:
135+
136+
```json
137+
"mcp": {
138+
"servers": {
139+
"MCP_DOCKER": {
140+
"command": "docker",
141+
"args": [
142+
"mcp",
143+
"gateway",
144+
"run"
145+
],
146+
"type": "stdio"
147+
}
148+
}
149+
}
150+
```
151+
152+
1. Option2: Enable the MCP Toolkit for a given project:
153+
154+
1. In the terminal, navigate to your project's folder in the terminal.
155+
1. Run:
156+
157+
```bash
158+
docker mcp client connect vscode
159+
```
160+
161+
> [!NOTE]
162+
> This command creates a `.vscode/mcp.json` file in the current directory. We
163+
> recommend you add it to your `.gitignore` file.
164+
165+
1. In Visual Studio Code, open a new Chat and select the **Agent** mode:
166+
167+
![Copilot mode switching](./images/copilot-mode.png)
168+
169+
1. You can also check the available MCP tools:
170+
171+
![Displaying tools in VSCode](./images/tools.png)
172+
173+
For more information about the Agent mode, see the
174+
[Visual Studio Code documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_use-mcp-tools-in-agent-mode).

0 commit comments

Comments
 (0)