@hypermodel/cli
v0.0.16
Published
Generate a Type Safe mcp server from any OpenApi spec
Readme
Hypermodel CLI

Generate an MCP (Model Context Protocol) server from an OpenAPI specification.
This package allows you to generate and run an MCP server from your OpenAPI specification. It provides CLI tools for server generation, configuration management, and server execution.
If you would like to use an external configuration for a server with your MCP client, you can also use the CLI to add it to your IDE / Client with a single command.
More here
Installation
npx -y -p @hypermodel/cli@latestUsage
Generate MCP Server Code
Generate the MCP server code from your OpenAPI specification:
npx -y -p @hypermodel/cli@latest cli generate <ABSOLUTE_PATH_TO_SPEC_YAML_OR_JSON>This will create the mcp server files in a
.hypermodeldirectory.
Run server with npx
npx -y -p @hypermodel/cli@latest serverThis spins up a local mcp server at http://localhost:3001/sse
Dependencies
- @modelcontextprotocol/sdk: For MCP implementation
- express: For the server framework
- openapi-typescript: For TypeScript type generation
- zod: For runtime type validation
Contributing
This project is hosted on GitHub at https://github.com/hypermodel-labs/cli.git.
Feel free to open issues or submit pull requests.
License
MIT
Package Information
Current version: 0.0.1
