Skip to content

Commit d1bdb50

Browse files
authored
clarify project location (#49116)
1 parent 8b63703 commit d1bdb50

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/ai/quickstarts/build-mcp-server.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,23 @@ Configure GitHub Copilot for Visual Studio Code to use your custom MCP server:
6666
"args": [
6767
"run",
6868
"--project",
69-
"<RELATIVE PATH TO PROJECT DIRECTORY>"
69+
"<relative-path-to-project-file>"
7070
]
7171
}
7272
}
7373
}
7474
```
7575

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+
7679
1. Save the file.
7780

7881
## Test the MCP server
7982

8083
The MCP server template includes a tool called `get_random_number` you can use for testing and as a starting point for development.
8184

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.
8386

8487
1. Select the **Select tools** icon to verify your **SampleMcpServer** is available with the sample tool listed.
8588

0 commit comments

Comments
 (0)