Document MCP Server project template in README (#1148)

Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
This commit is contained in:
leslierichardson95 2026-01-27 14:23:06 -08:00 • committed by GitHub
commit 6ca7cde13c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,6 +88,9 @@ var response = await chatClient.GetResponseAsync(
## Getting Started (Server)
> [!TIP]
> You can use the [MCP Server project template](https://learn.microsoft.com/dotnet/ai/quickstarts/build-mcp-server?pivots=visualstudio) to quickly get started with creating your own MCP server.
Here is an example of how to create an MCP server and register all tools from the current application.
It includes a simple echo tool as an example (this is included in the same file here for easy of copy and paste, but it needn't be in the same file...
the employed overload of `WithTools` examines the current assembly for classes with the `McpServerToolType` attribute, and registers all methods with the