docs(mcp): Phase 3 — align error schema#366
Open
erishforG wants to merge 1 commit into
Open
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 tool spec의 Error Schema를 현재 Phase 3 stdio/tool dispatch 계약과 맞췄습니다.
왜
Refs #292
tools/call은 이미 MCP content envelope 안에 structured error body를 반환하고 있고, auth/sandbox 문서는 별도 error code를 정의합니다. spec 문서의 공통 Error Schema도 이 계약을 한곳에서 볼 수 있어야 합니다.변경
docs/mcp/spec.md날짜 갱신tool_error예시 추가tool_error, auth, scope, sandbox, dry-run policy 코드를 추가다음 Phase 힌트
AUTH_REQUIREDfixture를 stdio smoke contract에 추가리스크
Low. 문서 전용 변경이며 CLI, MCP transport, worktree 로직을 변경하지 않습니다.
롤백
이 PR revert만으로 문서 변경 전 상태로 돌아갈 수 있습니다.
Test plan
cargo build --quietcargo fmt --checkcargo clippy --all-targets -- -D warnings@erishforG