Skip to content

Commit 8513056

Browse files
committed
ai tools: add OAuth
1 parent 0f98203 commit 8513056

File tree

6 files changed

+79
-11
lines changed

6 files changed

+79
-11
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
@@ -161,6 +161,7 @@ unmanaged
161161
VMware
162162
vpnkit
163163
vSphere
164+
VSCode
164165
Wasm
165166
Windows
166167
windowsfilter
Loading
Loading

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

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,16 @@ To install an MCP server:
107107
108108
To learn more about the MCP server catalog, see [Catalog](catalog.md).
109109

110-
### Example: Use the GitHub MCP server
110+
### Example: Use the **GitHub Official** MCP server
111111

112112
Imagine you want to enable Ask Gordon to interact with your GitHub account:
113113

114114
1. From the **MCP Toolkit** menu, select the **Catalog** tab and find
115115
the **GitHub Official** server and add it.
116-
2. In the server's **Config** tab, insert your token generated from
117-
your [GitHub account](https://github.com/settings/personal-access-tokens).
116+
2. In the server's **Config** tab, [connect via OAuth](#authenticate-via-oauth).
118117
3. In the **Clients** tab, ensure Gordon is connected.
119118
4. From the **Ask Gordon** menu, you can now send requests related to your
120-
GitHub account, in accordance to the tools provided by the GitHub MCP server. To test it, ask Gordon:
119+
GitHub account, in accordance to the tools provided by the GitHub Official server. To test it, ask Gordon:
121120

122121
```text
123122
What's my GitHub handle?
@@ -145,7 +144,7 @@ You can simply install these 2 MCP servers in the MCP Toolkit,
145144
and add Claude Desktop as a client:
146145

147146
1. From the **MCP Toolkit** menu, select the **Catalog** tab and find the **Puppeteer** server and add it.
148-
2. Repeat for the **GitHub** server.
147+
2. Repeat for the **GitHub Official** server.
149148
3. From the **Clients** tab, select **Connect** next to **Claude Desktop**. Restart
150149
Claude Desktop if it's running, and it can now access all the servers in the MCP Toolkit.
151150
4. Within Claude Desktop, run a test by submitting the following prompt using the Sonnet 3.5 model:
@@ -160,3 +159,67 @@ and add Claude Desktop as a client:
160159
```text
161160
Take a screenshot of docs.docker.com and then invert the colors
162161
```
162+
163+
### Example: Use Visual Studio Code as a client
164+
165+
You can interact with all your installed MCP servers in VS Code:
166+
167+
1. In Docker Desktop, select **MCP Toolkit** and select the **Clients** tab.
168+
1. Option 1: To enable the MCP Toolkit globally:
169+
170+
1. Insert the following in your user's config.json:
171+
172+
```json
173+
"mcp": {
174+
"servers": {
175+
"MCP_DOCKER": {
176+
"command": "docker",
177+
"args": [
178+
"mcp",
179+
"gateway",
180+
"run"
181+
],
182+
"type": "stdio"
183+
}
184+
}
185+
}
186+
```
187+
188+
1. Option 2: Enable the MCP Toolkit for a given project:
189+
190+
1. In your terminal, navigate to your project's folder.
191+
1. Run:
192+
193+
```bash
194+
docker mcp client connect vscode
195+
```
196+
197+
> [!NOTE]
198+
> This command creates a `.vscode/mcp.json` file in the current directory. We
199+
> recommend you add it to your `.gitignore` file.
200+
201+
1. In Visual Studio Code, open a new Chat and select the **Agent** mode:
202+
203+
![Copilot mode switching](./images/copilot-mode.png)
204+
205+
1. You can also check the available MCP tools:
206+
207+
![Displaying tools in VSCode](./images/tools.png)
208+
209+
For more information about the Agent mode, see the
210+
[Visual Studio Code documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_use-mcp-tools-in-agent-mode).
211+
212+
## Authenticate via OAuth
213+
214+
You can connect the MCP Toolkit to your development workflow via
215+
OAuth integration. For now, the MCP Toolkit only supports GitHub OAuth.
216+
217+
1. On https://github.com/, ensure you are logged in.
218+
1. In Docker Desktop, select **MCP Toolkit** and select the **OAuth** tab.
219+
1. In the GitHub entry, select **Authorize**. Your browser opens the GitHub authorization page.
220+
1. In the GitHub authorization page, select **Authorize docker**. Once the authorization
221+
is successful, you are automatically redirected to Docker Desktop.
222+
1. Install the **GitHub Official** MCP server, see [Install an MCP server](#install-an-mcp-server).
223+
224+
The MCP Toolkit now has access to your GitHub account. To revoke access, select **Revoke** in the **OAuth** tab.
225+
See an example in [Use the **GitHub Official** MCP server ](#example-use-the-github-official-mcp-server).

hugo_stats.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@
313313
"h-2",
314314
"h-32",
315315
"h-48",
316+
"h-5",
316317
"h-6",
317318
"h-8",
318319
"h-[calc(100vh-64px)]",
@@ -542,6 +543,7 @@
542543
"text-gray-400",
543544
"text-gray-500",
544545
"text-gray-600",
546+
"text-gray-800",
545547
"text-left",
546548
"text-lg",
547549
"text-magenta-light",
@@ -564,6 +566,7 @@
564566
"truncate",
565567
"underline-offset-2",
566568
"w-2",
569+
"w-5",
567570
"w-56",
568571
"w-8",
569572
"w-[1200px]",

0 commit comments

Comments
 (0)