- Namespace
- ModelContextProtocol
- Assembly
- ModelContextProtocol.Core.dll
Provides a bag of optional parameters for use with MCP requests.
public sealed class RequestOptions
- Inheritance
-
RequestOptions
- Inherited Members
Constructors
RequestOptions()
Properties
JsonSerializerOptions
Gets or sets a JsonSerializerOptions to use for any serialization of arguments or results in the request.
public JsonSerializerOptions? JsonSerializerOptions { get; set; }
Property Value
Meta
Gets or sets optional metadata to include as the "_meta" property in a request.
public JsonObject? Meta { get; set; }
Property Value
ProgressToken
Gets or sets an optional progress token to use for tracking long-running operations.
public ProgressToken? ProgressToken { get; set; }
Property Value
Methods
GetMetaForRequest()
Gets a JsonObject to use in requests for the "_meta" property.
public JsonObject? GetMetaForRequest()
Returns
- JsonObject
A JsonObject suitable for use in requests for the "_meta" property.