14 lines
351 B
C#
14 lines
351 B
C#
using PLCSharp.Models;
|
|
using System.Text.Json.Nodes;
|
|
|
|
namespace PLCSharp.Mcp;
|
|
|
|
internal sealed class ProjectGateway(string root)
|
|
{
|
|
public string Call(string operation, JsonObject arguments)
|
|
{
|
|
using var project = ProjectDirectory.Open(root);
|
|
return ProjectInspection.Query(project, operation, arguments).ToJsonString();
|
|
}
|
|
}
|