Skip to content

Conversation

@davidfirst
Copy link
Member

@davidfirst davidfirst commented Nov 17, 2025

Fixes

  • Resolved workspace.jsonc conflict around classnames package version
  • Fixed MCP SDK breaking changes from v1.12.0 to v1.22.0:
    • Fixed content type validation to check type before accessing text property (handles new multi-type content system: text, image, audio, etc)
    • Updated test expectations: SDK now returns error results with isError flag instead of throwing exceptions
@davidfirst davidfirst enabled auto-merge (squash) November 17, 2025 18:27
The @modelcontextprotocol/sdk package introduced multiple content types (text, image, audio, etc). Updated code to validate content type is text before accessing text property, throwing descriptive error for unexpected types.
- Changed schema definition from Record<string, any> to z.object() which is required by new SDK
- SDK now handles zod validation automatically and returns errors with isError flag instead of throwing
- Removed manual validation code since SDK validates automatically
- Updated test to check for error result with isError flag instead of expecting thrown exception
- Fixed content type validation to throw descriptive error for non-text content
The server.tool() method expects ZodRawShape (Record<string, any> with zod schemas) not a compiled ZodObject from z.object(). This fixes the TypeScript compilation error while maintaining automatic validation.
@davidfirst davidfirst merged commit cd1f0f3 into master Nov 17, 2025
11 checks passed
@davidfirst davidfirst deleted the fix-workspace-jsonc-conflict-classnames branch November 17, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants