csharp-sdk/samples/TestServerWithHosting/Tools/EchoTool.cs
Andy Gocke f652b1a03d
Mark samples as AOT compatible (#184)
* Revert changes to remove APIs

* Apply suggestions from code review

Co-authored-by: Stephen Toub <stoub@microsoft.com>

---------

Co-authored-by: Stephen Toub <stoub@microsoft.com>
2025-04-03 14:12:25 -04:00

14 lines
327 B
C#

using ModelContextProtocol.Server;
using System.ComponentModel;
namespace TestServerWithHosting.Tools;
[McpServerToolType]
public sealed class EchoTool
{
[McpServerTool, Description("Echoes the input back to the client.")]
public static string Echo(string message)
{
return "hello " + message;
}
}