Skip to content

Missing ID parameter to ResponseItem.CreateMcpApprovalRequestItem #664

@stephentoub

Description

@stephentoub

Both ResponseItem.CreateFunctionCallItem and CreateFunctionCallOutputItem accept a callId parameter, because they come in a pair, with the response needing to refer back to the corresponding ID from the request.

In contrast, ResponseItem.CreateMcpApprovalResponseItem accepts an approvalRequestId, but ResponseItem.CreateMcpApprovalRequestItem does not. It ends up creating an McpToolCallApprovalRequestItem with a null Id and no way that I can find to set it or an approval ID that could be correlated with the one for the response.

Metadata

Metadata

Assignees

Labels

area: responsesThis item is related to ResponsesquestionCategory: The issue is seeking information about the library or its usage.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions