Skip to content

[EXPERIMENTAL] Decompose McpSchema nested types into top-level feature packages#857

Draft
tzolov wants to merge 2 commits intomodelcontextprotocol:mainfrom
tzolov:mcp-schema-refactor
Draft

[EXPERIMENTAL] Decompose McpSchema nested types into top-level feature packages#857
tzolov wants to merge 2 commits intomodelcontextprotocol:mainfrom
tzolov:mcp-schema-refactor

Conversation

@tzolov
Copy link
Contributor

@tzolov tzolov commented Mar 6, 2026

  • Extracts most domain types from the McpSchema god-class into dedicated top-level classes under spec.schema.resource/prompt/ tool/sample/elicit.
  • Extracts the JSON-RPC types from the McpSchema god-class into dedicated top-level classes under spec.jsonrpc
  • Moves JSONRPC_VERSION and deserializeJsonRpcMessage to a new JSONRPC utility class. Request, Result, and Notification are no longer sealed.
  • Adds mcp-migrate module with OpenRewrite recipes for automated user-side migration, and MIGRATION-1.1.md documenting every breaking change.

tzolov added 2 commits March 6, 2026 14:29
- Extracts most domain types from the McpSchema god-class into
  dedicated top-level classes under spec.schema.resource/prompt/
  tool/sample/elicit.

- Extracts the JSON-RPC types from the McpSchema god-class into
  dedicated top-level classes under spec.jsonrpc

- Moves JSONRPC_VERSION and deserializeJsonRpcMessage to a
  new JSONRPC utility class. Request, Result, and Notification are no longer
  sealed.

- Adds mcp-migrate module with OpenRewrite recipes for automated user-side
  migration, and MIGRATION-1.1.md documenting every breaking change.

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
…records

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
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