Add EverythingServer sample (#151)
This commit is contained in:
parent
d21d933876
commit
01410df5ad
1 changed files with 620 additions and 1 deletions
11
samples/EverythingServer/Tools/EchoTool.cs
Normal file
11
samples/EverythingServer/Tools/EchoTool.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using ModelContextProtocol.Server;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace EverythingServer.Tools;
|
||||
|
||||
[McpServerToolType]
|
||||
public class EchoTool
|
||||
{
|
||||
[McpServerTool(Name = "echo"), Description("Echoes the message back to the client.")]
|
||||
public static string Echo(string message) => $"Echo: {message}";
|
||||
}
|
||||
Loading…
Reference in a new issue