test(mcp): Phase 14 — scoped auth fixture replay - #384
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
무엇
MCP stdio recording fixture harness가 redacted delegated GitHub auth context를 재생할 수 있게 했습니다.
왜
Refs #293. v1.0 MCP stdio 계약에서 scoped delegated auth preflight가 fixture 기반으로 회귀 검증되도록 Phase 14를 추가합니다. @erishforG
변경
context.github.token/context.github.scopesfixture metadata를 테스트 harness에서McpContext로 변환ci_status호출이pull_request:read만 받은 경우INSUFFICIENT_SCOPE+checks:read를 반환하는 smoke fixture 추가다음 Phase 힌트
리스크
Low. 테스트 harness와 MCP fixture/docs만 변경하며 런타임 CLI 또는 worktree 로직은 건드리지 않습니다.
롤백
해당 커밋을 revert하면 fixture context 재생 지원과 추가 smoke fixture가 제거됩니다.
Test plan
cargo build --quietcargo fmt --checkcargo clippy --all-targets -- -D warningscargo test --quiet