v0.1.1
What's Changed
Bug Fixes
- Fix TypeScript variance error when passing tool arrays to
createMcpServer - Add
AnyToolDefinitiontype alias for proper type compatibility
Details
The generic ToolDefinition<TParams> type caused variance issues when used in arrays because the params argument in execute is in a contravariant position. This release introduces AnyToolDefinition (ToolDefinition<any>) to allow tools with different Zod schemas to be passed together.
Full Changelog: v0.1.0...v0.1.1