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
SHOULD Send with 'application/json' content-type in notifications responses #1356
In notifications responses, there is only the status code 202, but without content-type application/json. It would make my java client requests error, because the java client checks EVERY response with application/json content-type
Reopening this since it should be fixed on the Java client. I don't play with Java too much but it seems like it may have been fixed in. modelcontextprotocol/java-sdk#589
the fix should be on the java client side, which looks like it's been addressed in modelcontextprotocol/java-sdk#589. can you confirm if that fixes things for you?
Activity
YifengWong commentedon Jan 4, 2026
Java client codes in io.modelcontextprotocol.client.transport.HttpClientStreamableHttpTransport
mattzcarey commentedon Jan 15, 2026
Reopening this since it should be fixed on the Java client. I don't play with Java too much but it seems like it may have been fixed in. modelcontextprotocol/java-sdk#589
Or there is a similar issue open here modelcontextprotocol/java-sdk#396
felixweinberger commentedon Jan 28, 2026
this is actually expected behavior per the spec — the server MUST return HTTP status code 202 Accepted with no body for notifications, so setting
Content-Type: application/jsonwould be semantically wrong.the fix should be on the java client side, which looks like it's been addressed in modelcontextprotocol/java-sdk#589. can you confirm if that fixes things for you?