
jsonschema gen
Generate Effect Schemas from JSON Schema
Repository Info
About This Server
Generate Effect Schemas from JSON Schema
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
jsonschema-gen
Generate Effect Schemas from JSON Schema
Usage
pnpm add -D @jpowersdev/jsonschema-gen
# Basic usage
pnpm jsonschema-gen --spec ./schema.json --output ./schema.ts
# Advanced usage, with a prefix for reserved words and a "satisfies" file
pnpm jsonschema-gen --spec ./schema.json --output ./schema.ts --reservedPrefix Mcp --satisfies mcp.ts
Options
--spec: The path to the JSON Schema file to generate the Effect Schema from.--output: The path to the output file to write the generated Effect Schema to.--prefix: The prefix to apply to the generated Effect Schema.--reservedPrefix: The prefix to use for reserved words (defaults toSchema).--satisfies: The path to a typescript file containing interfaces against which to validate the generated code.
About
This library is a work in progress, and is primarily designed to help me generate Effect Schemas for Model Context Protocol
Credit due to @tim-smart for the openapi-gen library, from which I took inspiration.
Quick Start
Clone the repository
git clone https://github.com/jpowersdev/jsonschema-genInstall dependencies
cd jsonschema-gen
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.