Skip to content

fix: wait for mcp doctor responses#177

Open
0xpolarzero wants to merge 1 commit into
wevm:mainfrom
0xpolarzero:fix/mcp-doctor-race
Open

fix: wait for mcp doctor responses#177
0xpolarzero wants to merge 1 commit into
wevm:mainfrom
0xpolarzero:fix/mcp-doctor-race

Conversation

@0xpolarzero

Copy link
Copy Markdown
Contributor

`mcp doctor` drives the in-process MCP server over `PassThrough` streams and closes input after a hardcoded 20ms. Under CI load the server hadn't flushed `tools/list` by then, so the smoke test intermittently failed with a missing `tools/list` response.

Wait for both responses (by request id) before closing input, instead of the fixed delay. The stream-end and serve-failure paths keep the negative cases terminating deterministically.

@pkg-pr-new

pkg-pr-new Bot commented Jun 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/incur@177

commit: dbe3565

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@4de8518). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #177   +/-   ##
=======================================
  Coverage        ?   94.57%           
=======================================
  Files           ?       27           
  Lines           ?     3612           
  Branches        ?     1435           
=======================================
  Hits            ?     3416           
  Misses          ?      162           
  Partials        ?       34           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@0xpolarzero 0xpolarzero force-pushed the fix/mcp-doctor-race branch from 8d7c562 to dbe3565 Compare June 30, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant