Skip to content

refactor: split mcp_types.ml into 3 sub-modules (949 -> 605 lines)#37

Merged
jeong-sik merged 1 commit intomainfrom
refactor/split-mcp-types
Mar 21, 2026
Merged

refactor: split mcp_types.ml into 3 sub-modules (949 -> 605 lines)#37
jeong-sik merged 1 commit intomainfrom
refactor/split-mcp-types

Conversation

@jeong-sik
Copy link
Owner

Summary

  • mcp_types.ml 949줄에서 독립적인 3개 섹션을 별도 모듈로 추출
  • mcp_types_completion.ml (83줄): Completion 타입
  • mcp_types_elicitation.ml (117줄): Elicitation 타입
  • mcp_types_tasks.ml (150줄): Tasks 타입 (experimental)
  • include re-export로 하위 호환성 유지 — Mcp_types.* 접근 동일

변경 전/후

파일 Before After
mcp_types.ml 949줄 605줄
mcp_types.mli 442줄 331줄
새 파일 - 6개 (.ml + .mli x 3)

Test plan

  • dune build 성공
  • dune runtest 전 테스트 통과 (변경 없음)
  • CI green 확인

Generated with Claude Code

Extract self-contained sections from mcp_types.ml:

- mcp_types_completion.ml (83 lines): completion_reference,
  completion_argument, completion_result, completion_context
- mcp_types_elicitation.ml (117 lines): elicitation_schema,
  elicitation_params, elicitation_action, elicitation_result
- mcp_types_tasks.ml (150 lines): task_status, task, task_params,
  create_task_result, task_execution_support

All three sections have zero cross-dependencies with core types.
Backward compatibility maintained via include re-exports in
mcp_types.ml — all types remain accessible as Mcp_types.*.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jeong-sik jeong-sik marked this pull request as ready for review March 21, 2026 12:34
@jeong-sik jeong-sik merged commit 76b268d into main Mar 21, 2026
11 of 12 checks passed
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant