feat(mcp): Phase 1 — tool spec + src/mcp skeleton (Refs #292)#346
Merged
Conversation
- docs/mcp/spec.md: full MCP tool catalogue with JSON schemas for
10 tools: worktree_list/start/status/ship, smartlog, ci_status,
pr_status, health_check, reviews, sync
- src/mcp/mod.rs: McpContext struct, ToolDef, TOOLS registry constant
- src/mcp/tools/{worktree,smartlog,ci,pr,health,reviews,sync}.rs:
Phase 1 stubs with #[allow(dead_code)] pending Phase 2 dispatcher
- 5 unit tests: registry non-empty, snake_case+unique names,
descriptions non-empty, McpContext construction
- #[allow(dead_code)] scoped to mcp module (Phase 1 intentional)
No new external dependencies. No CLI surface changes.
Phase 2 (#293): parsec mcp serve stdio JSON-RPC echo server.
Co-Authored-By: Claude Sonnet 4.6 <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.
무엇
v1.0 MCP 서버의 첫 번째 Phase: tool catalogue spec 문서 +
src/mcp/모듈 skeleton.변경 내용
docs/mcp/spec.md: 10개 MCP 도구의 완전한 JSON Schema 설계 문서worktree_list,worktree_start,worktree_status,worktree_shipsmartlog,ci_status,pr_status,health_check,reviews,syncsrc/mcp/mod.rs:McpContext,ToolDef,TOOLS상수 registrysrc/mcp/tools/: 7개 stub 모듈 (worktree, smartlog, ci, pr, health, reviews, sync)왜
Refs #292 (v1.0 MCP tool spec), Refs #241 (MCP server meta-issue)
v1.0 MCP 서버 구현의 가장 중요한 사전 작업: Phase 2 (stdio JSON-RPC) 시작 전에 어떤 도구를 어떤 스키마로 노출할지 확정 필요. 이 스펙 문서가 Phase 2~6의 설계 기준점 역할을 함.
변경 파일 요약
docs/mcp/spec.mdsrc/mcp/mod.rssrc/mcp/tools/*.rssrc/main.rsmod mcp;추가 (알파벳 순 위치)다음 Phase 힌트
parsec mcp serve서브커맨드 추가 + stdio JSON-RPC echo 서버 (입력 파싱 →tools/list응답)worktree_list+worktree_status실제 구현 연결리스크
#[allow(dead_code)]은src/mcp모듈 전체에만 적용 (Phase 2에서 제거)롤백
이 PR을 revert하면
src/mcp/디렉터리와docs/mcp/가 완전히 제거되어 깔끔하게 롤백됨.Test plan
@erishforG 검토 부탁드립니다 🙏