Skip to content

fix(mcp): explicit JSONResponse on Windows reconnect (#4533)#5381

Open
Elshayib wants to merge 1 commit into
odysseus-dev:devfrom
Elshayib:fix/mcp-reconnect-json-response-4533
Open

fix(mcp): explicit JSONResponse on Windows reconnect (#4533)#5381
Elshayib wants to merge 1 commit into
odysseus-dev:devfrom
Elshayib:fix/mcp-reconnect-json-response-4533

Conversation

@Elshayib

@Elshayib Elshayib commented Jul 9, 2026

Copy link
Copy Markdown

Summary

Return JSONResponse from MCP server reconnect so h11 Content-Length matches the body on native Windows installs.

Target branch

  • This PR targets dev, not main. All PRs land in dev; main is curated by the maintainer at each release. If your PR is on main by accident, click "Edit" on this PR and change the base.

Linked Issue

Fixes #4533

Type of Change

  • Bug fix (non-breaking — fixes a confirmed issue)

Checklist

  • I searched open issues and open PRs — this is not a duplicate.
  • This PR targets dev
  • My changes are limited to the scope described above — no unrelated refactors or whitespace changes mixed in.
  • Verified with targeted pytest / syntax checks.

How to Test

  1. On Windows native Odysseus add a stdio MCP server. 2. Click Reconnect in Settings. 3. No h11 LocalProtocolError in server log; status JSON returns.

@github-actions github-actions Bot added the ready for review Description complete — ready for maintainer review label Jul 9, 2026
@alteixeira20 alteixeira20 added the bug Something isn't working label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready for review Description complete — ready for maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: MCP Server connection fails on Windows with "Too little data for declared Content-Length"

2 participants