Skip to content

Batch payment example, implementation, and tests#75

Merged
badjer merged 10 commits intomainfrom
bdj/batch-payments
Sep 26, 2025
Merged

Batch payment example, implementation, and tests#75
badjer merged 10 commits intomainfrom
bdj/batch-payments

Conversation

@badjer
Copy link
Copy Markdown
Contributor

@badjer badjer commented Sep 26, 2025

Adds support for batch payments - payments that are more than the price of a single tool call. This allows the server to effectively request pre-payment for multiple tool calls in advance.

This is implemented via a new minimumPayment field on atxpExpress, which is the smallest payment that will be asked of callers. If not provided, the caller will always be asked to pay exactly the amount in requirePayment. If minimumPayment is larger, the user will be asked to pay that instead. To prevent footguns, this is limited to $1 at a maximum.

A new /examples/batch-payment example is included.

@badjer badjer marked this pull request as ready for review September 26, 2025 22:48
@badjer badjer merged commit d1efdc5 into main Sep 26, 2025
1 check passed
@badjer badjer deleted the bdj/batch-payments branch September 26, 2025 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant