@ezmcpz/cli
v0.1.1
Published
CLI tools for EZMCPZ
Maintainers
Readme
@ezmcpz/cli
Command-line tools for EZMCPZ development.
Installation
npm install -g @ezmcpz/cli
# or
pnpm add -g @ezmcpz/cliCommands
create
Create a new MCP server project.
ezmcpz create my-server
ezmcpz create my-server --template apiOptions:
-t, --template <template>- Template to use (basic, api, full)
Templates:
basic- Simple server with one toolapi- Server with OpenAPI integrationfull- Complete server with all features
generate
Generate code from templates.
ezmcpz generate openapi ./openapi.yaml
ezmcpz generate openapi https://api.example.com/openapi.jsonTypes:
openapi- Generate tools from OpenAPI specification
dev
Start development server with hot reload.
ezmcpz dev
ezmcpz dev --file src/server.tsOptions:
-f, --file <file>- Entry file (default: src/index.ts)
build
Build for production.
ezmcpz build
ezmcpz build --outDir distOptions:
-o, --outDir <dir>- Output directory (default: dist)
Quick Start
# Create a new project
ezmcpz create my-server
# Navigate to project
cd my-server
# Install dependencies
npm install
# Start development server
ezmcpz dev
# Build for production
ezmcpz build
# Start production server
npm startProject Templates
Basic Template
Simple server with:
- One example tool
- Stdio transport
- Basic configuration
API Template
API-focused server with:
- OpenAPI integration
- HTTP transport
- Example API tools
Full Template
Production-ready server with:
- Multiple transports (stdio, HTTP, SSE)
- Security middleware
- Example tools and resources
- Complete configuration
Examples
Create with Interactive Prompts
ezmcpz create
# Follow the prompts to configure your projectCreate API Server
ezmcpz create my-api --template api
cd my-api
npm install
ezmcpz devGenerate from OpenAPI
ezmcpz generate openapi https://petstore3.swagger.io/api/v3/openapi.jsonDevelopment Workflow
# 1. Create project
ezmcpz create my-server --template full
# 2. Install dependencies
cd my-server
npm install
# 3. Develop with hot reload
ezmcpz dev
# 4. Build for production
ezmcpz build
# 5. Deploy
npm startLicense
MIT
