Skip to content
Discussion options

You must be logged in to vote

Thanks for the report. I spent a few hours investigating this issue since I use the same MCP server internally. This is a bug in the official filesystem MCP server, not LibreChat.

Root Cause

The filesystem MCP server's latest versions install zod-to-json-schema without locked dependencies. At runtime, this pulls in Zod v4, while the MCP SDK uses Zod v3, causing schema validation errors where the type: "object" field is missing from tool definitions.

Solution

I've patched the issue in a fork by explicitly pinning zod: "^3.23.3" as a dependency, forcing all packages to use compatible Zod v3 versions.

Patched fork: https://github.com/danny-avila/server-filesystem

How to Use

Add this to your …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@danny-avila
Comment options

@WillCodeForCash
Comment options

Answer selected by WillCodeForCash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #10578 on November 19, 2025 15:13.