You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP: a client request cannot be signed with AWS SigV4 because its body is a transient entity #1777
An MCP client request cannot be signed with AWS Signature Version 4 for a service other than S3: HttpAwsSigV4Helper fails with AWS SigV4 signing for the 'execute-api' service needs an entity that can be read again, and for S3 it silently signs UNSIGNED-PAYLOAD instead of the body's hash.
The client transports (McpModernHttpTransport.request and RestletMcpClientTransport) send their JSON-RPC message as a ByteArrayRepresentation, which is an InputRepresentation: it is transient, and HttpAwsSigV4Helper.getPayloadHash returns null for a transient entity.
Reproduction
Start an McpClientAdapter on a Client and a ChallengeResponse with ChallengeScheme.HTTP_AWS_SIGV4 (service execute-api) through setRequestCustomizer/setCallCustomizer: server/discover fails with McpResponseLostException, caused by IllegalArgumentException: AWS SigV4 signing for the 'execute-api' service needs an entity that can be read again.
Found while moving Ikanos's consumed MCP servers to the Restlet client (naftiko/ikanos#1256), which signs them with HttpAwsSigV4Helper since naftiko/ikanos#959.
Proposed fix
Send the message as a repeatable entity (a StringRepresentation of the encoded JSON) so the signer can hash it, and add a test that signs a request of both transports.
Activity
Log the #1777 fix under milestone 4 in changes.md
Send MCP client requests as an entity that can be read again (#1777)
Log the #1777 fix under milestone 4 in changes.md
jlouvel commentedon Dec 1, 2026
Fixed by #1778, merged into 3.0.