feat(mcp): Phase 3 — auth preflight#362
Open
erishforG wants to merge 1 commit into
Open
Conversation
Refs #294 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
tools/calldispatch boundary에 GitHub 필수 도구용 auth preflight를 추가했습니다.왜
Refs #294. v1.0 MCP auth/sandbox 트랙의 다음 Phase로, GitHub-backed tool이 토큰 없이 실제 handler로 넘어가기 전에 표준 MCP error envelope를 반환하도록 계약을 고정합니다.
변경
requires_github도구가 delegated GitHub token 없이 호출되면AUTH_REQUIREDMCP tool error 반환다음 Phase 힌트
INSUFFICIENT_SCOPEpreflight를 구현tools/callarguments parsing 직후에 추가리스크
Low. 변경은
src/mcp/와tests/mcp/fixture에만 제한되며, 기존 CLI surface와 git/worktree 로직은 건드리지 않았습니다.롤백
이 PR 커밋을 revert하면 기존
tools/calldispatch behavior로 돌아갑니다.Test plan
cargo build --quietcargo test --quietcargo fmt --checkcargo clippy --all-targets -- -D warnings@erishforG