Skip to content

Commit db28f56

Browse files
Document MCP Server project template in README
Added information about the MCP Server project template and its usage.
1 parent 4cb2fd4 commit db28f56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
9195
Here is an example of how to create an MCP server and register all tools from the current application.
9296
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...
9397
the employed overload of `WithTools` examines the current assembly for classes with the `McpServerToolType` attribute, and registers all methods with the

0 commit comments

Comments
 (0)