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:
parent
86bc96df46
commit
6ca7cde13c
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue