MCP Server Configuration
About
Fixed configuration for Model Context Protocol server with proper dependencies
Details
- Author
- rvjwhite
- Downloads
- 178
- Categories
- Developer Tools
Jump to
- Resolves ERR_MODULE_NOT_FOUND for zod-to-json-schema
- Provides a ready-to-use fixed configuration
- Includes proper dependency declarations
- Offers an alternative quick-fix approach
What error does this configuration fix?
It fixes the ERR_MODULE_NOT_FOUND error that occurs when the zod-to-json-schema module cannot be resolved, preventing the MCP server from starting.
What dependencies are required?
The repository requires @modelcontextprotocol/server-filesystem, zod, and zod-to-json-schema as explicit dependencies, plus "type": "module" in package.json.
How do I run the server after installing?
After following the installation steps, run npm start to start the MCP server.
Can I fix the error without this repository?
Yes. The README describes an alternative manual fix: create a new Node.js project, install the three required packages, enable ES modules, and create a minimal entry file.
MCP Server Configuration
This repository contains a fixed configuration for the Model Context Protocol (MCP) server with proper dependencies to resolve the ERR_MODULE_NOT_FOUND error related to zod-to-json-schema.
Installation
1. Clone this repository:
git clone https://github.com/rvjwhite/mcp-server-config.git
cd mcp-server-config
2. Install dependencies:
npm install
3. Start the server:
npm start
Alternative Quick Fix
If you prefer not to use this repository, you can also fix the issue with these steps:
1. Create a new directory and initialize a Node.js project:
mkdir mcp-server
cd mcp-server
npm init -y
2. Install the required dependencies explicitly:
npm install @modelcontextprotocol/server-filesystem zod zod-to-json-schema
3. Add "type": "module" to your package.json
4. Create a simple index.js file:
import { createServer } from '@modelcontextprotocol/server-filesystem';
const server = createServer();
5. Run with: node index.js
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





