|
|
@ -26,7 +26,6 @@ namespace McpStudy.McpServerStdio
|
|
|
|
.WithToolsFromAssembly();
|
|
|
|
.WithToolsFromAssembly();
|
|
|
|
|
|
|
|
|
|
|
|
await builder.Build().RunAsync();
|
|
|
|
await builder.Build().RunAsync();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -47,8 +46,6 @@ public static class TimeTool
|
|
|
|
public static string GetCurrentTime(string city)
|
|
|
|
public static string GetCurrentTime(string city)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var message = $"It is {DateTime.Now.Hour}:{DateTime.Now.Minute} in {city}.";
|
|
|
|
var message = $"It is {DateTime.Now.Hour}:{DateTime.Now.Minute} in {city}.";
|
|
|
|
|
|
|
|
|
|
|
|
File.AppendAllText("Mcplog.txt", $"{message}{System.Environment.NewLine}");
|
|
|
|
|
|
|
|
return message;
|
|
|
|
return message;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|