Skip to content

Conversation

@jonathanhefner
Copy link
Member

Replace Zod schema's internal _def.value access with a direct string literal. The previous approach failed due to multiple Zod instances being bundled, causing schema.shape.method._def.value to return undefined.

The fix uses a typed string constant that provides compile-time safety via McpUiSandboxProxyReadyNotification["method"] while avoiding runtime dependency on Zod internals.

🤖 Generated with Claude Code

Replace Zod schema's internal _def.value access with a direct string
literal. The previous approach failed due to multiple Zod instances
being bundled, causing schema.shape.method._def.value to return
undefined.

The fix uses a typed string constant that provides compile-time safety
via McpUiSandboxProxyReadyNotification["method"] while avoiding runtime
dependency on Zod internals.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ochafik ochafik merged commit 484768c into modelcontextprotocol:main Dec 1, 2025
1 check passed
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.

2 participants