Skip to content

Conversation

@domdomegg
Copy link
Member

Summary

  • Update SDK from ^1.19.1 to ^1.23.0 in all TypeScript reference servers (everything, filesystem, memory, sequentialthinking)
  • Update everything server for SDK breaking changes: zod v4 compatibility, ToolInput/ToolOutput type fixes, result.content array handling

Update the SDK from ^1.19.1 to ^1.23.0 in all TypeScript reference servers:
- everything
- filesystem
- memory
- sequentialthinking

Also update everything server for SDK breaking changes:
- Update zod to ^3.25.0 (zod v4 compatibility)
- Fix ToolInput/ToolOutput types to use Tool["inputSchema"] instead of
  inferring from zod schemas
- Fix result.content handling to support array format
return {
content: [
{ type: "text", text: `LLM sampling result: ${result.content.text}` },
{ type: "text", text: `LLM sampling result: ${Array.isArray(result.content) ? result.content.map(c => c.type === "text" ? c.text : JSON.stringify(c)).join("") : (result.content.type === "text" ? result.content.text : JSON.stringify(result.content))}` },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is necessary because of breaking changes in the MCP specification around sampling, see modelcontextprotocol/modelcontextprotocol#1577

@domdomegg domdomegg merged commit 3154518 into main Nov 26, 2025
23 checks passed
@domdomegg domdomegg deleted the adamj/update-typescript-sdk branch November 26, 2025 12:32
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.

3 participants