@ai-sdk/xai@3.0.154 Now Preserves MCP Call Arguments in mcpServer Tool Calls
The latest patch for @ai-sdk/xai ensures that MCP call arguments are preserved in the input of mcpServer tool calls, rather than returning an empty object.
What changed?
With the release of @ai-sdk/xai version 3.0.154, the input property of mcpServer tool calls now retains the MCP call arguments. Previously, this input was returned as an empty object. This change is detailed in the official release notes.
Why does it matter to an everyday developer?
By preserving the original call arguments in the input, developers can now access critical data needed for debugging, auditing, and processing requests within custom tools built on top of mcpServer. This allows for more transparency and flexibility when handling or transforming input parameters during tool execution.
What can the developer do now?
Developers using @ai-sdk/xai for implementing or extending mcpServer tools should review how they handle the input property in their tool call handlers. Since the input now contains the full MCP call arguments, they can utilize this data for enhanced processing logic. No code changes are required for backward compatibility, but developers may want to update their logic to take advantage of the available arguments.

