Table of Contents

Class RequestParams

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Provides a base class for all request parameters.

public abstract class RequestParams
Inheritance
RequestParams
Derived
Inherited Members

Remarks

See the schema for details.

Properties

InputResponses

Gets or sets the responses to server-initiated input requests from a previous InputRequiredResult.

[JsonPropertyName("inputResponses")]
public IDictionary<string, InputResponse>? InputResponses { get; set; }

Property Value

IDictionary<string, InputResponse>

Remarks

This property is populated when retrying a request after receiving an InputRequiredResult. Each key corresponds to a key from the InputRequests map, and the value is the client's response to that input request.

Meta

Gets or sets metadata reserved by MCP for protocol-level metadata.

[JsonPropertyName("_meta")]
public JsonObject? Meta { get; set; }

Property Value

JsonObject

Remarks

Implementations must not make assumptions about its contents.

ProgressToken

Gets the opaque token that will be attached to any subsequent progress notifications.

[JsonIgnore]
public ProgressToken? ProgressToken { get; }

Property Value

ProgressToken?

RequestState

Gets or sets opaque request state echoed back from a previous InputRequiredResult.

[JsonPropertyName("requestState")]
public string? RequestState { get; set; }

Property Value

string

Remarks

This property is populated when retrying a request after receiving an InputRequiredResult that included a RequestState value. The client must echo back the exact value without modification.