Class MCPApprovalRequest
public sealed class MCPApprovalRequest : BaseResponse, IResponseItem, IServerSentEvent, IListItem
- Inheritance
-
MCPApprovalRequest
- Implements
- Inherited Members
Constructors
MCPApprovalRequest()
public MCPApprovalRequest()
MCPApprovalRequest(string, string, string)
public MCPApprovalRequest(string name, string arguments = null, string serverLabel = null)
Parameters
Properties
Arguments
A JSON string of arguments for the tool.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("arguments")]
public string Arguments { get; }
Property Value
Id
The unique ID of this response item.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("id")]
public string Id { get; }
Property Value
Name
The name of the tool to run.
[JsonInclude]
[JsonPropertyName("name")]
public string Name { get; }
Property Value
Object
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("object")]
public string Object { get; }
Property Value
ServerLabel
The label of the MCP server making the request.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("server_label")]
public string ServerLabel { get; }
Property Value
Status
The status of the response item.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("status")]
public ResponseStatus Status { get; }
Property Value
Type
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("type")]
public ResponseItemType Type { get; }