A response to an MCP approval request.

interface McpApprovalResponse {
    approval_request_id: string;
    approve: boolean;
    id: string;
    reason?: null | string;
    type: "mcp_approval_response";
}

Properties

approval_request_id: string

The ID of the approval request being answered.

approve: boolean

Whether the request was approved.

id: string

The unique ID of the approval response

reason?: null | string

Optional reason for the decision.

type: "mcp_approval_response"

The type of the item. Always mcp_approval_response.