.NET
Targets net8.0, net9.0 and netstandard2.0.
dotnet add package WarlockCode.WarToolsAI
using WarlockCode.WarToolsAI;
var kit = WarTools.Create(new WarToolsOptions
{
Preset = "none",
Enable = new[] { "time.now", "kv.*" },
Store = new JsonFileKvStore("./.wartools-store.json")
});
var res = await kit.ExecuteAsync("time.now", new { timezone = "America/Bogota" });
ExecuteAsync(name, input)returns aWarToolEnvelope(see envelope).- Runtime options:
Runtime = new RuntimeOptions { Approval = ..., Budget = ..., Retry = ..., Idempotency = ... };kit.Approve(id),kit.BudgetUsage(). See approval gate and budget guard. - The .NET package is an SDK only; the MCP server ships in the Node and Python packages.