Skip to content

Commit 6366a49

Browse files
Update hub-mcp.md
Added Claude and VS Code
1 parent a1bf2bc commit 6366a49

File tree

1 file changed

+77
-0
lines changed
  • content/manuals/ai/mcp-catalog-and-toolkit

1 file changed

+77
-0
lines changed

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

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,83 @@ The Docker Hub MCP Server is a Model Context Protocol (MCP) server that interfac
2727
> [!TIP]
2828
> By default, the Gordon [client](#install-an-mcp-client) is enabled,
2929
> which means Gordon can automatically interact with your MCP servers.
30+
>
31+
## Use Claude Desktop as a client
32+
33+
1. Add the Docker Hub MCP Server configuration to your `claude_desktop_config.json`:
34+
35+
#### For public repositories only:
36+
37+
- `/FULL/PATH/TO/YOUR/docker-hub-mcp-server` - The complete path to where you cloned this repository
38+
```json
39+
{
40+
"mcpServers": {
41+
"docker-hub": {
42+
"command": "node",
43+
"args": ["/FULL/PATH/TO/YOUR/docker-hub-mcp-server/dist/index.js", "--transport=stdio"]
44+
}
45+
}
46+
}
47+
```
48+
#### For authenticated access (recommended):
49+
Replace the following values:
50+
- `YOUR_DOCKER_HUB_USERNAME` - Your Docker Hub username
51+
- `YOUR_DOCKER_HUB_PERSONAL_ACCESS_TOKEN` - Your Docker Hub Personal Access Token
52+
- `/FULL/PATH/TO/YOUR/docker-hub-mcp-server` - The complete path to where you cloned this
53+
54+
```json
55+
{
56+
"mcpServers": {
57+
"docker-hub": {
58+
"command": "node",
59+
"args": ["/FULL/PATH/TO/YOUR/docker-hub-mcp-server/dist/index.js", "--transport=stdio", "--username=YOUR_DOCKER_HUB_USERNAME"],
60+
"env": {
61+
"HUB_PAT_TOKEN": "YOUR_DOCKER_HUB_PERSONAL_ACCESS_TOKEN"
62+
}
63+
}
64+
}
65+
}
66+
```
67+
2. Save the configuration file and completely restart Claude Desktop for the changes to take effect.
68+
69+
## Usage with VS Code
70+
1. Add the Docker Hub MCP Server configuration to your User Settings (JSON) file in VS Code. You can do this by opening the `Command Palette` and typing `Preferences: Open User Settings (JSON)`.
71+
72+
#### For public repositories only:
73+
74+
- `/FULL/PATH/TO/YOUR/docker-hub-mcp-server` - The complete path to where you cloned this repository
75+
```json
76+
{
77+
"mcpServers": {
78+
"docker-hub": {
79+
"command": "node",
80+
"args": ["/FULL/PATH/TO/YOUR/docker-hub-mcp-server/dist/index.js", "--transport=stdio"]
81+
}
82+
}
83+
}
84+
```
85+
#### For authenticated access (recommended):
86+
Replace the following values:
87+
- `YOUR_DOCKER_HUB_USERNAME` - Your Docker Hub username
88+
- `YOUR_DOCKER_HUB_PERSONAL_ACCESS_TOKEN` - Your Docker Hub Personal Access Token
89+
- `/FULL/PATH/TO/YOUR/docker-hub-mcp-server` - The complete path to where you cloned this
90+
91+
```json
92+
{
93+
"mcpServers": {
94+
"docker-hub": {
95+
"command": "node",
96+
"args": ["/FULL/PATH/TO/YOUR/docker-hub-mcp-server/dist/index.js", "--transport=stdio"],
97+
"env": {
98+
"HUB_USERNAME": "YOUR_DOCKER_HUB_USERNAME",
99+
"HUB_PAT_TOKEN": "YOUR_DOCKER_HUB_PERSONAL_ACCESS_TOKEN"
100+
}
101+
}
102+
}
103+
}
104+
```
105+
2. Open the `Command Palette` and type `MCP: List Servers`.
106+
3. Select `docker-hub` and select `Start Server`.
30107

31108
## Usage examples
32109

0 commit comments

Comments
 (0)