Skip to content

Commit ff75122

Browse files
committed
s/McpToolType/McpServerToolType
1 parent daf7c43 commit ff75122

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ var response = await chatClient.GetResponseAsync(
8080

8181
Here is an example of how to create an MCP server and register all tools from the current application.
8282
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...
83-
the employed overload of `WithTools` examines the current assembly for classes with the `McpToolType` attribute, and registers all methods with the
83+
the employed overload of `WithTools` examines the current assembly for classes with the `McpServerToolType` attribute, and registers all methods with the
8484
`McpTool` attribute as tools.)
8585

8686
```csharp

src/ModelContextProtocol/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ var response = await chatClient.GetResponseAsync(
8585

8686
Here is an example of how to create an MCP server and register all tools from the current application.
8787
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
8989
`McpTool` attribute as tools.)
9090

9191
```csharp
@@ -101,7 +101,7 @@ builder.Services
101101
.WithTools();
102102
await builder.Build().RunAsync();
103103

104-
[McpToolType]
104+
[McpServerToolType]
105105
public static class EchoTool
106106
{
107107
[McpTool, Description("Echoes the message back to the client.")]

0 commit comments

Comments
 (0)