File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ var response = await chatClient.GetResponseAsync(
8888
8989## Getting Started (Server)
9090
91+ ### MCP Server Project Template
92+
93+ You can create your own MCP server by using the MCP Server project template . This template will set you up with a working MCP server containing a random number tool that returns a random number between a specified min and max value . This template also lets you select an MCP transport type (stdio or http ) and it will confgure the MCP Server based on that choice . To learn more about the template , read this MS Learn doc on [creating minimal MCP servers ](https :// learn.microsoft.com/en-us/dotnet/ai/quickstarts/build-mcp-server).
94+
9195Here is an example of how to create an MCP server and register all tools from the current application .
9296It 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 ...
9397the employed overload of `WithTools ` examines the current assembly for classes with the `McpServerToolType ` attribute , and registers all methods with the
You can’t perform that action at this time.
0 commit comments