Correct 'McpTool' to 'McpServerTool' in README (#775)

This commit is contained in:
Alexander Sklar 2025-09-16 03:42:43 -07:00 • committed by GitHub
commit fe2ce2bc60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,7 +88,7 @@ var response = await chatClient.GetResponseAsync(
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
`McpTool` attribute as tools.)
`McpServerTool` attribute as tools.)
```
dotnet add package ModelContextProtocol --prerelease