csharp-sdk/samples/TestServerWithHosting/Tools/EchoTool.cs
2025-03-19 15:02:38 +02:00

14 lines
315 B
C#

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