Support incremental scope consent (SEP-835) (#1084)
This commit is contained in:
parent
828d51e9d4
commit
31f8d20a1a
1 changed files with 782 additions and 394 deletions
|
|
@ -275,6 +275,7 @@ internal sealed class StreamableHttpHandler(
|
|||
RandomNumberGenerator.Fill(buffer);
|
||||
return WebEncoders.Base64UrlEncode(buffer);
|
||||
}
|
||||
|
||||
internal static async Task<JsonRpcMessage?> ReadJsonRpcMessageAsync(HttpContext context)
|
||||
{
|
||||
// Implementation for reading a JSON-RPC message from the request body
|
||||
|
|
@ -291,7 +292,6 @@ internal sealed class StreamableHttpHandler(
|
|||
return message;
|
||||
}
|
||||
|
||||
|
||||
internal static Task RunSessionAsync(HttpContext httpContext, McpServer session, CancellationToken requestAborted)
|
||||
=> session.RunAsync(requestAborted);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue