Skip to content

Fix condition check for mocks in stdio server init and close mswServer - #55

Closed
nielthiart wants to merge 1 commit into
getsentry:mainfrom
nielthiart:close-mswserver
Closed

nielthiart wants to merge 1 commit into
getsentry:mainfrom
nielthiart:close-mswserver

Conversation

@nielthiart

Copy link
Copy Markdown
Contributor

Fixes #54

@dcramer dcramer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏 im working on breaking up the repo so we can release a stdio adapter as well (mostly so this will work with self-hosted)

didnt want to do it with the way this package exists today given it would bundle all the cloudflare code with it

@codecov

codecov Bot commented Apr 18, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 68.69%. Comparing base (c8f0f01) to head (4cae85b).
Report is 15 commits behind head on main.

Files with missing lines Patch % Lines
src/mcp/start-stdio.ts 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #55      +/-   ##
==========================================
- Coverage   68.88%   68.69%   -0.20%     
==========================================
  Files          23       23              
  Lines        2883     2891       +8     
  Branches      174      174              
==========================================
  Hits         1986     1986              
- Misses        897      905       +8     
Flag Coverage Δ
unittests 68.69% <0.00%> (-0.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dcramer

dcramer commented Apr 18, 2025 •

Copy link
Copy Markdown
Member

Actually just realized this patch is wrong. Cant close the mock server until after the process is ready to clean up.

I'll move it, but is there a reason we need to clean up the msw?

Edit: Nevermind, its late and I misread the patch. Debugging the failures rn

@dcramer

dcramer commented Apr 18, 2025

Copy link
Copy Markdown
Member

Related bug: npm run [cmd] -- [args]

Always forget the delta between npm and pnpm

@dcramer

dcramer commented Apr 18, 2025

Copy link
Copy Markdown
Member

Merged in #63

@dcramer dcramer closed this Apr 18, 2025

This branch was previously deployed

1 inactive deployment
Actions — 4cae85b4 Deployed Apr 18, 2025 by nielthiart
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.

Mock server intercepts all requests when using stdio transport

2 participants