feat(mcp): Phase 11 — stdio shutdown lifecycle - #381
Merged
Conversation
Refs #293 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Owner
Author
|
Reviewed in heartbeat: low-risk MCP stdio lifecycle change. The dispatcher returns JSON-RPC result null for shutdown, and the unit test plus stdio fixture/docs pin the contract. CI is green and merge state is CLEAN. |
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.
무엇
parsec mcp serve의 stdio JSON-RPC lifecycle에shutdown요청을 추가했습니다.왜
Refs #293. Claude Desktop/Cursor 계열 MCP 클라이언트는 세션 종료 시 표준
shutdown요청을 보낼 수 있어, 현재 smoke contract에 이 경계를 고정해 두는 편이 v1.0 등록 안정성에 도움이 됩니다.변경
shutdownJSON-RPC 요청에result: null응답 추가shutdownrecording 추가다음 Phase 힌트
리스크
Low. MCP 전용 dispatcher와 MCP 문서/fixture만 변경했고 기존 CLI surface는 유지했습니다.
롤백
해당 커밋을 revert하면
shutdown은 기존 unknown-method 응답으로 돌아갑니다.Test plan
cargo fmt --checkcargo build --quietcargo clippy --all-targets -- -D warningscargo test --quiet@erishforG