You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ModelContextProtocol/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ var response = await chatClient.GetResponseAsync(
85
85
86
86
Here is an example of how to create an MCP server and register all tools from the current application.
87
87
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...
88
-
the employed overload of `WithTools` examines the current assembly for classes with the `McpToolType` attribute, and registers all methods with the
88
+
the employed overload of `WithTools` examines the current assembly for classes with the `McpServerToolType` attribute, and registers all methods with the
89
89
`McpTool` attribute as tools.)
90
90
91
91
```csharp
@@ -101,7 +101,7 @@ builder.Services
101
101
.WithTools();
102
102
awaitbuilder.Build().RunAsync();
103
103
104
-
[McpToolType]
104
+
[McpServerToolType]
105
105
publicstaticclassEchoTool
106
106
{
107
107
[McpTool, Description("Echoes the message back to the client.")]
0 commit comments