Skip to content

Added support for HTTPS_PROXY / HTTP_PROXY / NO_PROXY env vars#10

Merged
jancurn merged 6 commits intomainfrom
feat/http-proxy
Mar 1, 2026
Merged

Added support for HTTPS_PROXY / HTTP_PROXY / NO_PROXY env vars#10
jancurn merged 6 commits intomainfrom
feat/http-proxy

Conversation

@jancurn
Copy link
Copy Markdown
Member

@jancurn jancurn commented Feb 27, 2026

Inspired by #5, but fewer code changes.

Also includes fixes of tests and other small changes.

@jancurn jancurn changed the title Added support for HTTPS_PROXY / https_proxy / HTTP_PROXY / http_proxy env vars Added support for HTTPS_PROXY / HTTP_PROXY / NO_PROXY env vars Feb 28, 2026
@jancurn jancurn merged commit 8400ca3 into main Mar 1, 2026
4 of 5 checks passed
MQ37 added a commit that referenced this pull request Mar 3, 2026
commit 1e35f2f
Author: Dušan Vystrčil <vystrcil.dusan@gmail.com>
Date:   Tue Mar 3 10:25:50 2026 +0100

    fix: flush stdout before process.exit() to prevent pipe truncation (#17)

    When mcpc output exceeds 64KB and stdout is piped (e.g. `mcpc ... --json | jq`),
    the output was silently truncated at exactly 65,536 bytes (the kernel pipe buffer
    size), producing broken JSON.

    Root cause: when stdout is a pipe, Node.js uses async I/O. `process.exit(0)`
    terminates the process before buffered data is fully written to the pipe. When
    stdout is a file or TTY, Node.js uses sync I/O, so data is written before exit.

    The fix waits for stdout to drain before calling process.exit(0).

    Reproduction:
      mcpc @apify tools-call get-actor-output datasetId:="..." --json | wc -c

    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

commit c7ea6f2
Author: Jan Curn <jan.curn@gmail.com>
Date:   Mon Mar 2 13:15:22 2026 +0100

    Updated CHANGELOG.md, improved release process

commit 3861f51
Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Date:   Mon Mar 2 11:19:49 2026 +0100

    Add renovate.json (#13)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

commit ba193b8
Author: Jan Curn <jan.curn@gmail.com>
Date:   Sun Mar 1 23:36:16 2026 +0100

    v0.1.10

commit 8400ca3
Author: Jan Curn <jan.curn@gmail.com>
Date:   Sun Mar 1 23:21:57 2026 +0100

    Added support for `HTTPS_PROXY` / `HTTP_PROXY` / `NO_PROXY` env vars (#10)

    * Added support for `HTTPS_PROXY` / `https_proxy` / `HTTP_PROXY` / `http_proxy` env vars

    * Improvements

    * Improvements

    * Fixes

    * Fixes

    * Nits
@jancurn jancurn deleted the feat/http-proxy branch March 12, 2026 14:18
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.

2 participants