Skip to content

fix(tests): skip proxy for localhost in Windows environments#1857

Closed
cxhello wants to merge 1 commit intomodelcontextprotocol:mainfrom
cxhello:fix/windows-proxy-tests
Closed

fix(tests): skip proxy for localhost in Windows environments#1857
cxhello wants to merge 1 commit intomodelcontextprotocol:mainfrom
cxhello:fix/windows-proxy-tests

Conversation

@cxhello
Copy link

@cxhello cxhello commented Jan 15, 2026

Summary

  • Set NO_PROXY environment variable to 127.0.0.1 in tests/conftest.py
  • Prevents tests from failing on Windows systems with a proxy enabled

Test plan

  • Verified the fix matches the suggestion in the issue
  • Run uv run pytest on Windows with proxy enabled

Closes #1477

Set NO_PROXY environment variable to 127.0.0.1 to prevent tests from
failing on Windows systems with a proxy enabled.

Closes modelcontextprotocol#1477

Signed-off-by: cxhello <caixiaohuichn@gmail.com>
@Kludex
Copy link
Member

Kludex commented Jan 18, 2026

I don't think we need to pollute the test suite for this. You can enable the env var on your local environment.

@Kludex Kludex closed this Jan 18, 2026
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.

Test fails in a Windows system with a proxy enabled

2 participants