Skip to content

Commit d413371

Browse files
committed
fix blocking issue
1 parent bf1b52e commit d413371

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

docs/ide/mcp-servers.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -30,53 +30,53 @@ By standardizing this interaction, MCP eliminates the need for custom integratio
3030
## Configuration example with GitHub MCP server
3131

3232
1. Create a new file: `<SOLUTIONDIR>\.mcp.json`. Using Visual Studio to edit this file is recommended so its JSON schema is automatically applied.
33-
1. Paste the following contents into the `.mcp.json` file
34-
35-
```json
36-
{
37-
"inputs": [
38-
{
39-
"id": "github_pat",
40-
"description": "GitHub personal access token",
41-
"type": "promptString",
42-
"password": true
43-
}
44-
],
45-
"servers": {
46-
"github": {
47-
"type": "stdio",
48-
"command": "docker",
49-
"args": [
50-
"run",
51-
"-i",
52-
"--rm",
53-
"-e",
54-
"GITHUB_PERSONAL_ACCESS_TOKEN",
55-
"ghcr.io/github/github-mcp-server"
56-
],
57-
"env": {
58-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_pat}"
33+
2. Paste the following contents into the `.mcp.json` file
34+
35+
```json
36+
{
37+
"inputs": [
38+
{
39+
"id": "github_pat",
40+
"description": "GitHub personal access token",
41+
"type": "promptString",
42+
"password": true
43+
}
44+
],
45+
"servers": {
46+
"github": {
47+
"type": "stdio",
48+
"command": "docker",
49+
"args": [
50+
"run",
51+
"-i",
52+
"--rm",
53+
"-e",
54+
"GITHUB_PERSONAL_ACCESS_TOKEN",
55+
"ghcr.io/github/github-mcp-server"
56+
],
57+
"env": {
58+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_pat}"
59+
}
5960
}
6061
}
6162
}
62-
}
63-
```
63+
```
6464

65-
1. Get a Personal Access Token for your [GitHub Account](https://github.com/settings/personal-access-tokens)
66-
1. In Visual Studio, click the `Ask` dropdown in the GitHub Copilot Chat window, and then select `Agent`.
65+
3. Get a Personal Access Token for your [GitHub Account](https://github.com/settings/personal-access-tokens)
66+
4. In Visual Studio, click the `Ask` dropdown in the GitHub Copilot Chat window, and then select `Agent`.
6767

6868
:::image type="content" source="media/vs-2022/copilot-agent-mode/copilot-agent-dropdown.png" alt-text="Screenshot that shows Copilot agent mode selector." lightbox="media/vs-2022/copilot-agent-mode/copilot-agent-dropdown.png":::
6969

70-
1. When prompted, paste your personal access token into the dialog.
70+
5. When prompted, paste your personal access token into the dialog.
7171

7272
:::image type="content" source="media/vs-2022/mcp-servers/model-context-protocol-personal-access-token.png" alt-text="Screenshot that shows entering the personal access token." lightbox="media/vs-2022/mcp-servers/model-context-protocol-personal-access-token.png":::
7373

74-
1. Select the tools you'd like to use, for example, `list_issues`
74+
6. Select the tools you'd like to use, for example, `list_issues`
7575

7676
:::image type="content" source="media/vs-2022/mcp-servers/model-context-protocol-github-tools-list.png" alt-text="Screenshot that shows MCP GitHub tools." lightbox="media/vs-2022/mcp-servers/model-context-protocol-github-tools-list.png":::
7777

78-
1. Try a sample prompt: `list issues assigned to me on GitHub`
79-
1. Copilot asks for permission to use a tool made available to it by the MCP server, select **Allow** with the scope you wish to proceed with.
78+
7. Try a sample prompt: `list issues assigned to me on GitHub`
79+
8. Copilot asks for permission to use a tool made available to it by the MCP server, select **Allow** with the scope you wish to proceed with.
8080

8181
:::image type="content" source="media/vs-2022/copilot-agent-mode/copilot-agent-tool-approval.png" alt-text="Screenshot that shows the agent tools confirmation options." lightbox="media/vs-2022/copilot-agent-mode/copilot-agent-tool-approval.png":::
8282

0 commit comments

Comments
 (0)