Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/atxp-common/src/paymentRequiredError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export function paymentRequiredError(server: AuthorizationServerUrl, paymentRequ
const paymentRequestUrl = `${server}/payment-request/${paymentRequestId}`;
const data = { paymentRequestId, paymentRequestUrl, chargeAmount };
const amountText = chargeAmount ? ` You will be charged ${chargeAmount.toString()}.` : '';
return new McpError(PAYMENT_REQUIRED_ERROR_CODE, `${PAYMENT_REQUIRED_PREAMBLE}${amountText} Please pay at: ${paymentRequestUrl}`, data);
return new McpError(PAYMENT_REQUIRED_ERROR_CODE, `${PAYMENT_REQUIRED_PREAMBLE}${amountText} Please pay at: ${paymentRequestUrl} and then try again.`, data);
}