* Improve tool handling * Rework stuff with new hosting options * Update readme * Fix build * Try run client tests * Fix build * Fix issues on linux * Try to run testserver on linux * Fix test issue * Fix code smells
13 lines
297 B
C#
13 lines
297 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;
|
|
}
|
|
}
|