Skip to content

Commit 802424e

Browse files
Update README.md to fix the server sample build issue. (#546)
* Update README.md to fix the server sample build issue. Update README.md to fix the server sample build issue. * Update README.md --------- Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
1 parent 068f041 commit 802424e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ public static class MyPrompts
166166
More control is also available, with fine-grained control over configuring the server and how it should handle client requests. For example:
167167

168168
```csharp
169-
using ModelContextProtocol.Protocol.Transport;
170-
using ModelContextProtocol.Protocol.Types;
169+
using ModelContextProtocol;
170+
using ModelContextProtocol.Protocol;
171171
using ModelContextProtocol.Server;
172172
using System.Text.Json;
173173

@@ -212,9 +212,9 @@ McpServerOptions options = new()
212212
throw new McpException("Missing required argument 'message'");
213213
}
214214

215-
return ValueTask.FromResult(new CallToolResponse()
215+
return ValueTask.FromResult(new CallToolResult
216216
{
217-
Content = [new Content() { Text = $"Echo: {message}", Type = "text" }]
217+
Content = [new TextContentBlock { Text = $"Echo: {message}", Type = "text" }]
218218
});
219219
}
220220

0 commit comments

Comments
 (0)