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