Skip to content

feat(mcp): Phase 11 — stdio shutdown lifecycle - #381

Merged
erishforG merged 1 commit into
release/1.0from
feat/auto-mcp-phase11-lifecycle-fixtures
Jul 8, 2026
Merged

feat(mcp): Phase 11 — stdio shutdown lifecycle#381
erishforG merged 1 commit into
release/1.0from
feat/auto-mcp-phase11-lifecycle-fixtures

Conversation

@erishforG

Copy link
Copy Markdown
Owner

무엇

parsec mcp serve의 stdio JSON-RPC lifecycle에 shutdown 요청을 추가했습니다.

Refs #293. Claude Desktop/Cursor 계열 MCP 클라이언트는 세션 종료 시 표준 shutdown 요청을 보낼 수 있어, 현재 smoke contract에 이 경계를 고정해 두는 편이 v1.0 등록 안정성에 도움이 됩니다.

변경

  • shutdown JSON-RPC 요청에 result: null 응답 추가
  • stdio smoke fixture에 shutdown recording 추가
  • fixture README와 client registration 문서의 smoke test 계약 갱신

다음 Phase 힌트

  • 클라이언트별 실제 종료 시퀀스 recording을 추가해 notification-only 종료 흐름까지 확인
  • installer hook 구현 전 dry-run config validation fixture 추가

리스크

Low. MCP 전용 dispatcher와 MCP 문서/fixture만 변경했고 기존 CLI surface는 유지했습니다.

롤백

해당 커밋을 revert하면 shutdown은 기존 unknown-method 응답으로 돌아갑니다.

Test plan

  • cargo fmt --check
  • cargo build --quiet
  • cargo clippy --all-targets -- -D warnings
  • cargo test --quiet

@erishforG

Refs #293

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@erishforG erishforG added the auto-improvement Daily auto-generated improvement PR/issue label Jul 8, 2026
@erishforG

Copy link
Copy Markdown
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.

@erishforG
erishforG merged commit 791a685 into release/1.0 Jul 8, 2026
12 checks passed
@erishforG
erishforG deleted the feat/auto-mcp-phase11-lifecycle-fixtures branch July 8, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-improvement Daily auto-generated improvement PR/issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant