csharp-sdk/samples/TestServerWithHosting/Tools/EchoTool.cs
2025-03-08 17:18:09 +01:00

13 lines
296 B
C#

using McpDotNet.Server;
namespace TestServerWithHosting.Tools;
[McpToolType]
public static class EchoTool
{
[McpTool(description: "Echoes the input back to the client.")]
public static string Echo([McpParameter(true)] string message)
{
return "hello " + message;
}
}