Skip to content

Add zod v3 as peer dependency #122

@PaulRBerg

Description

@PaulRBerg

MCP Framework is incompatible with zod v4. It leads to number types parsed as string types. For example:

schema = {
  limit: {
    description: "Maximum number of results to return (default: no limit)",
    type: z.number().optional(),
  },
};

This schema gets interpreted like so:

{
  type: 'object',
  properties: {
    limit: {
      type: 'string',
      description: 'Maximum number of results to return (default: no limit)'
    }
  },
  required: [ 'limit' ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions