Skip to content

feat(mcp): Phase 3 — tools/call dispatch boundary#359

Merged
erishforG merged 1 commit into
release/1.0from
feat/auto-mcp-tools-dispatch
Jun 16, 2026
Merged

feat(mcp): Phase 3 — tools/call dispatch boundary#359
erishforG merged 1 commit into
release/1.0from
feat/auto-mcp-tools-dispatch

Conversation

@erishforG

Copy link
Copy Markdown
Owner

무엇

Wire MCP tools/call through a src/mcp handler dispatch boundary and convert placeholder todo!() stubs into structured MCP error envelopes.

Refs #293. The stdio server already accepts tools/call; this phase makes the call path exercise real module handlers without panicking, preparing later PRs to replace stubs one tool at a time.

변경

  • Added src/mcp/tools::dispatch and per-tool handler lookup.
  • Passed McpContext from the stdio serve loop into JSON-RPC dispatch.
  • Returned MCP content envelopes for both tool success and handler errors.
  • Replaced todo!() handler stubs with explicit not-implemented errors.

다음 Phase 힌트

Implement the first read-only handler, likely worktree_status or health_check, behind the new dispatch boundary.

리스크

Low. Scoped to src/mcp/; existing CLI command signatures and core git/worktree logic are unchanged.

롤백

Revert this PR to return tools/call to its previous always-not-implemented response.

Test plan

  • cargo build --quiet
  • cargo fmt --check
  • 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 Jun 16, 2026
@erishforG erishforG merged commit 89f41c0 into release/1.0 Jun 16, 2026
12 checks passed
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