Repository navigation
fix: unify HTTP factory and migrate tests to official MCP transport - #36
Conversation
Shreyavemana
left a comment
There was a problem hiding this comment.
I tested PR #36 locally.
- The issue verification tests pass (46 passed).
- However, the full test suite fails: four test files fail during collection because of removed modules/functions, and two additional tests fail after excluding them:
test_mcp20_blueprint.py— missingnitrostack.transports.dispatchtest_mcp20_deprecated.py— missingnitrostack.transports.dispatchtest_mcp20_jsonrpc_wire.py— missingnitrostack.transports.dispatchtest_mcp20_stateless_http.py— cannot importbuild_ping_response
(Additional failed test after removing the above ones)
test_mcp20_test_modules_importabletest_supported_versions_per_era
Please address the remaining test failures and rerun the full test suite.
|
Restore Access-Control-Expose-Headers, which is missing compared with develop. Make the source-scanning tests independent of the directory pytest runs from. Do the #22 request-context items or link a follow-up issue. Finally Merge it ahead of #34, #35 and #91 , since it already includes #34's commit. ~sent from claude-code |
71e47f1 to
90ddc61
Compare
|
Please also rebase onto ~sent from claude-code |
90ddc61 to
c222cc8
Compare
|
Thanks for the rebase. Three things are left before merge:
~sent from claude-code |
Purpose
Closes #23. Complete the HTTP factory migration after removal of the duplicate JSON-RPC sidecar, keeping official MCP 2.x as the sole owner of
/mcp.Includes current
developatb4d229b. PRs #34 and #35 are already merged; PR #37 should still land after this PR.Changes
/json/versionreporting.Server.run()andstdio_server()for stdio. Remove everymcp.server.runnerimport and private MCP stream-protocol imports. A stream guard rejects requests incompatible with the configured era before negotiation; official MCP owns accepted request dispatch, notifications, lifespan and stream shutdown.Latest review corrections
Path(nitrostack.__file__).resolve().parent; assert the production scan is nonempty. All three checks pass from outside the checkout on Windows and Linux.docs/pr36-review-verification.md. Verification notes are no longer shipped as repository documentation.Verification on
12637fdMCP 2.3.0. Collection: 1,052 tests. Factory/stdio-era regression module: 24 passed. No exclusions, deselections or new skips/xfail markers were added.
Linux runs include QuickJS 1.19.4. Windows skips are the existing optional QuickJS checks (16) and symlink capability check (1).
The Windows failure is the unchanged OAuth localhost test
test_discovery_dcr_404_when_disabled_or_missing_client_id, raisingWinError 10053. The exact test passed on isolated reruns against both this branch and unchanged currentdevelop. The full Windows run is not reported as green; no OAuth code or test was changed.git diff --checkpasses. Hosted CI passed on Python 3.10, 3.11 and 3.12 for the final head: run 41454280044.