Skip to content

Conversation

@kesku
Copy link
Collaborator

@kesku kesku commented Nov 9, 2025

Fixes #42 and addresses #43

Summary

Added web proxy support to enable the MCP server to work behind corporate firewalls and proxies. Routes all API requests through the configured proxy when set via an environment variable.

Changes

  • Added undici (^6.20.0) for proxy support
  • getProxyUrl() helper function that checks PERPLEXITY_PROXY, HTTPS_PROXY, and HTTP_PROXY environment variables in priority order
  • proxyAwareFetch() function that uses undici's ProxyAgent when a proxy is configured, otherwise falls back to native fetch
  • Added proxy support tests

Misc

Will be revisited once the HTTP transport migration is complete. (Should not affect end users or existing integrations)

@kesku kesku merged commit c0ba8d7 into main Nov 9, 2025
1 check passed
@kesku kesku deleted the kesku/proxy branch November 9, 2025 01:21
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.

Support for web proxy

2 participants