Forge
csharp3407750f
1using System.Text.Json;
2using Microsoft.AspNetCore.Http;
3
4namespace AgentForge.Abstractions;
5
6public sealed class ForgeMcpToolInvocationContext
7{
8 public required HttpContext HttpContext { get; init; }
9
10 public IServiceProvider RequestServices => HttpContext.RequestServices;
11}
12
13public delegate Task<ForgeMcpInvokeResponse> ForgeMcpToolHandler(
14 ForgeMcpToolInvocationContext context,
15 IReadOnlyDictionary<string, JsonElement> arguments,
16 CancellationToken cancellationToken);
17
View only · write via MCP/CIDE