Skip to content

test: add proxy server conformance coverage - #464

Merged
jancurn merged 1 commit into
apify:mainfrom
leninworld:test-proxy-conformance-issue-334
Oct 21, 2026
Merged

jancurn merged 1 commit into
apify:mainfrom
leninworld:test-proxy-conformance-issue-334

Conversation

@leninworld

Copy link
Copy Markdown
Contributor

This PR addresses part of issue #334.

Adds the suggested first server conformance scenario for mcpc connect --proxy, checking invalid Host/Origin rejection and valid localhost acceptance through an isolated local chain.

The default reusable conformance workflow includes this lane, so it also gates releases. It follows the existing unpinned npx -y convention; local validation pinned conformance 0.1.16.

Docker Linux ARM64 / Node 24: build, lint (24 existing warnings), 1,345 unit tests, five consecutive conformance runs (2/2 each), and the existing proxy E2E suite pass. A direct-server negative control fails as expected; failure cleanup also passes.
Remaining server scenarios and macOS/Windows/Bun checks are not covered.

Recorded Docker validation

Refs #334.

@jancurn
jancurn merged commit 3446ab7 into apify:main Oct 21, 2026
7 checks passed
@jancurn

jancurn commented Oct 21, 2026

Copy link
Copy Markdown
Member

Looks good, thanks for the addition

jancurn added a commit that referenced this pull request Oct 26, 2026
Small follow-up to #464 covering the nits from its review. Test-only, no
runtime change.

- List `dns-rebinding-protection` in the conformance coverage table in
`test/conformance/README.md`
- Make the proxy lane honour the workflow's `verbose` input, like the
client lane
- Spawn `npx` through a shell on Windows, where it is a `.cmd` shim that
Node refuses to spawn directly (EINVAL)

Verified locally: the lane still passes 2/2 with `--verbose
--output-dir` passed through, lint, build and unit tests are green.

Refs #334

---
_Generated by [Claude
Code](https://claude.ai/code/session_01BbA1fNDr3b1HbZc7Q6qFvo)_

Co-authored-by: Claude <noreply@anthropic.com>
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.

3 participants