GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpx: bind authz-stdio-use-environment (server) with an end-to-end env test (#1950) by dezren39 · Pull Request #12869 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

What

Binds the last server-side authorization gap on #1950 — authz-stdio-use-environment — with the end-to-end test the gap text named as missing.

The spec row: "Implementations using an STDIO transport SHOULD NOT follow this specification, and instead retrieve credentials from the environment." mcpauth's env auth type performs that retrieval, but no test traced it into a stdio child.

The test

pool.TestStdioChildReceivesEnvCredential (in internal/pool/auth_test.go, next to the #240 HTTP companion TestAuthReachesTheUpstream):

  • Expansion subtest: the credential exists only in the daemon's environment; the server's env auth block expands ${VAR} from it; the pool carries the resolved value into the spawned stdio child; the child itself reports the value back through an echo call, under a variable name set nowhere but the auth block — so plain environment inheritance cannot produce it.
  • Unset subtest: an auth entry naming an unset variable fails the call before any child spawns, naming the variable.

Matrix move

coverage_authz.go binds the row instead of registering a gap; the override's why records the binding. Regenerated matrix: server side of the row is tested in all four revisions — per-revision server SHOULD NOT goes 3 tested / 1 gap → 4 tested / 0 gap. The client side keeps the #1950 gap per the recorded client-OAuth deferral (2026-10-30 decision on #1950), untouched.

Verification

  • go test ./internal/pool/ -count=1 — full package passes, including both new subtests.
  • go test ./internal/conformance/ -run 'TestMatrix|TestAuthSplit|TestCatalogue|TestCoverage' -count=1 — passes (split counts unchanged: the split already carried this side's permissive verdict).
  • go run ./internal/conformance/cmd/covering -n now selects TestStdioChildReceivesEnvCredential in the pool pattern.
  • go build ./..., gofmt, go vet clean.

#1950 stays open: its remaining scope is the client-side OAuth rows, deferred by the recorded decision.


Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
mcpx: bind authz-stdio-use-environment (server) with an end-to-end en…
2ba8209
…v test (#1950)

The last server-side authorization gap on #1950 was
authz-stdio-use-environment: the spec says stdio implementations
retrieve credentials from the environment instead of following the
OAuth flow, and mcpauth's `env` auth type does that retrieval, but
no test traced it into a stdio child end to end.

pool.TestStdioChildReceivesEnvCredential is that trace: the
credential exists only in the daemon's environment, the server's
`env` auth block expands ${VAR} from it, the pool carries the
resolved value into the spawned child, and the child itself reports
what it received under a name set nowhere but the auth block (so
plain environment inheritance cannot produce it). A second subtest
pins that an unset variable fails the call before any child spawns.

coverage_authz.go now binds the row to that test instead of
registering it as a gap; the override's why records the binding.
The regenerated matrix moves the server side of the row to "tested"
in all four revisions (server SHOULD NOT per revision: 3 tested /
1 gap -> 4 tested / 0 gap). The client side keeps the #1950 gap per
the recorded client-OAuth deferral.

Verified: go test ./internal/pool -count=1 (full package, incl. the
new test); go test ./internal/conformance -run
TestMatrix|TestAuthSplit|TestCatalogue|TestCoverage; the covering
tool now selects the new test in its pool pattern.
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 04:07
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f4da2f94-b5f6-485f-b3e0-1c40106b28c6
Commits

Reviewing files that changed from the base of the PR and between bf322f9 and 2ba8209.

Files selected for processing: 4

  • pkgs/mcpx/docs/spec/conformance-matrix.md
  • pkgs/mcpx/internal/conformance/coverage_authz.go
  • pkgs/mcpx/internal/conformance/overrides/authorization.json
  • pkgs/mcpx/internal/pool/auth_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 23, 2026
mcpx: OAuth authorization for remote servers and for /mcp (61 conformance rows) #1950
Open
@dezren39
dezren39 merged commit 813c0bc into main Nov 23, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the lane-dt/1950-mcpx-authz branch November 23, 2026 04:08
@dezren39 dezren39 mentioned this pull request Nov 23, 2026
mcpx: the permissive auth interface authorizes everyone — real validation for the conformance rows that require refusal #1972
Closed
@developing-today-fleet developing-today-fleet Bot added the audit:partial PR partially implemented; gap filed label Nov 27, 2026
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:partial PR partially implemented; gap filed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.