You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ai/quickstarts/build-mcp-server.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,20 +66,23 @@ Configure GitHub Copilot for Visual Studio Code to use your custom MCP server:
66
66
"args": [
67
67
"run",
68
68
"--project",
69
-
"<RELATIVE PATH TO PROJECT DIRECTORY>"
69
+
"<relative-path-to-project-file>"
70
70
]
71
71
}
72
72
}
73
73
}
74
74
```
75
75
76
+
> [!NOTE]
77
+
> VS Code executes MCP servers from the workspace root. The `<relative-path-to-project-file>` placeholder should point to your .NET project file. For example, the value for this **SampleMcpServer** app would be `SampleMcpServer.csproj`.
78
+
76
79
1. Save the file.
77
80
78
81
## Test the MCP server
79
82
80
83
The MCP server template includes a tool called `get_random_number` you can use for testing and as a starting point for development.
81
84
82
-
1. Open GitHub Copilot in Visual Studio Code and switch to chat mode.
85
+
1. Open GitHub Copilot in Visual Studio Code and switch to agent mode.
83
86
84
87
1. Select the **Select tools** icon to verify your **SampleMcpServer** is available with the sample tool listed.
0 commit comments