Skip to content

Commit 486428a

Browse files
authored
fix: env is not relevant for Docker command
1 parent 418332a commit 486428a

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

README.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,9 @@ Add the following JSON block to your IDE MCP settings.
161161
"run",
162162
"-i",
163163
"--rm",
164+
"-e", "GITHUB_PERSONAL_ACCESS_TOKEN=${input:github_token}",
164165
"ghcr.io/github/github-mcp-server"
165-
],
166-
"env": {
167-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
168-
}
166+
]
169167
}
170168
}
171169
}
@@ -192,11 +190,9 @@ Optionally, you can add a similar example (i.e. without the mcp key) to a file c
192190
"run",
193191
"-i",
194192
"--rm",
193+
"-e", "GITHUB_PERSONAL_ACCESS_TOKEN=${input:github_token}",
195194
"ghcr.io/github/github-mcp-server"
196-
],
197-
"env": {
198-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
199-
}
195+
]
200196
}
201197
}
202198
}
@@ -216,11 +212,9 @@ More about using MCP server tools in VS Code's [agent mode documentation](https:
216212
"run",
217213
"-i",
218214
"--rm",
215+
"-e", "GITHUB_PERSONAL_ACCESS_TOKEN=${input:github_token}",
219216
"ghcr.io/github/github-mcp-server"
220-
],
221-
"env": {
222-
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
223-
}
217+
]
224218
}
225219
}
226220
}
@@ -371,12 +365,10 @@ the hostname for GitHub Enterprise Server or GitHub Enterprise Cloud with data r
371365
"run",
372366
"-i",
373367
"--rm",
368+
"-e", "GITHUB_PERSONAL_ACCESS_TOKEN=${input:github_token}",
369+
"-e", "GITHUB_HOST=https://<your GHES or ghe.com domain name>",
374370
"ghcr.io/github/github-mcp-server"
375-
],
376-
"env": {
377-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}",
378-
"GITHUB_HOST": "https://<your GHES or ghe.com domain name>"
379-
}
371+
]
380372
}
381373
```
382374

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy