pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/modelcontextprotocol/python-sdk/pull/2365

78641c0a1f3e0.css" /> fix: make Windows stdio pywin32 optional by raashish1601 · Pull Request #2365 · modelcontextprotocol/python-sdk · GitHub
Skip to content

fix: make Windows stdio pywin32 optional#2365

Open
raashish1601 wants to merge 2 commits intomodelcontextprotocol:mainfrom
raashish1601:contributor-15/python-sdk-2233
Open

fix: make Windows stdio pywin32 optional#2365
raashish1601 wants to merge 2 commits intomodelcontextprotocol:mainfrom
raashish1601:contributor-15/python-sdk-2233

Conversation

@raashish1601
Copy link
Copy Markdown

Summary

  • stop importing client stdio modules eagerly from mcp.init
  • make pywin32 optional via a new stdio extra while keeping the dev/test dependency group on that extra
  • add import regressions plus installation notes for Windows server-only installs

Fixes #2233.

Testing

  • python -m uv run pytest tests/issues/test_2233_windows_stdio_imports.py tests/server/test_stdio.py tests/issues/test_1027_win_unreachable_cleanup.py tests/client/test_session_group.py -q
  • fresh base install in a throwaway Windows venv: python -m uv pip install -e . followed by rom mcp.server.stdio import stdio_server, with pywin32 absent from that environment

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.

pywin32 installation fails on Windows — hard dep only needed for client stdio, but pulled in for all users via eager import in __init__.py

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy