Repository navigation
fix(mcp): say which backends enforce requester pays - #67
Merged
Merged
Conversation
The request payment tools described what requester pays does as if every storage backend did it. Checked against the backends' sources, only AWS S3 does: - RustFS (1.0.7 and its main branch) stores the setting and never reads it: no request is charged to a caller, and anonymous access stays as the bucket's policy and ACL allow. The note that "anonymous access to the bucket is disabled while requester pays is set" let the setting pass for a restriction of access there - MinIO does not implement the configuration at all and answers NotImplemented - The notes of both tools now name AWS S3 as the backend that enforces requester pays, say that RustFS only stores the setting, and point at put_bucket_policy and put_bucket_acl for restricting access; the tool descriptions, the payer parameter, the README, and the CHANGELOG say the same - The failure hints name the missing implementation as a cause - get_bucket_request_payment reports a payer it does not know as an error naming the value, instead of reporting the default BucketOwner for it; an absent payer element still is the S3 default - BucketPayer::as_str replaces serializing the payer to strip the quotes off it - The tools run against the in-process endpoint with the backends' answers: both payers, an absent element, an unknown payer, a backend without the implementation, a missing bucket, and the document the setter sends
zhi22915
force-pushed
the
fix/request-payment-backend-notes
branch
from
November 27, 2026 16:28
ba6118e to
55ca11f
Compare
houseme
approved these changes
Nov 27, 2026
zhi22915
added a commit
to zhi22915/mcp
that referenced
this pull request
Nov 27, 2026
houseme
pushed a commit
that referenced
this pull request
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #62. Stacked on #65 and #66: this branch contains their commits, so its diff shrinks to the request payment changes once they merge.
What was wrong in #62
The tools described what requester pays does as if every storage backend did it: "callers must authenticate and cover the request and data-transfer costs; anonymous access to the bucket is disabled while requester pays is set". Checked against the backends' sources, only AWS S3 does that:
main)NotImplementedOn RustFS the note let the setting pass for a restriction of access.
What changes
get_bucket_request_paymentandput_bucket_request_paymentname AWS S3 as the backend that enforces requester pays, say that RustFS only stores the setting, and point atput_bucket_policyandput_bucket_aclfor restricting access. The tool descriptions, thepayerparameter, the README, and the CHANGELOG say the same.get_bucket_request_paymentreports a payer it does not know as an error that names the value, instead of reporting the defaultBucketOwnerfor it. An absent payer element still is the S3 default. (An empty response body never reaches this code: the SDK rejects it as unparsable.)BucketPayer::as_strreplaces serializing the payer to strip the quotes off it.Verification
cargo fmt --all -- --check,cargo clippy --all-targets --locked -- -D warnings(default and--features io-uring),cargo test --locked --all-targets— 313 passed with the tests of fix(mcp): confirm a bucket's Object Lock state instead of matching error messages #65 and fix(mcp): align the replication tools with what the backends answer #66 included.