mcp-cli-generator
v1.0.0
Published
CLI tool for generating MCP (Model Context Protocol) project structures
Maintainers
Readme
MCP CLI Generator
A command-line tool for generating MCP (Managed Control Panel) project structures. This tool helps developers quickly create the scaffolding for new MCP projects, following best practices and ensuring all necessary files are in place.
Installation
# Install globally
npm install -g mcp-cli-generator
# Or use with npx
npx mcp-cli-generator my-mcpUsage
To create a new MCP project:
# Using the global installation
create-mcp my-mcp-project
# Or with npx
npx mcp-cli-generator my-mcp-projectThe CLI will guide you through a series of prompts to configure your MCP:
- Project name (if not provided as an argument)
- Description
- Version
- Supported AI tools (Claude, Cursor, and custom tools)
- Configuration options
Features
- Interactive project creation with prompts for all necessary information
- Support for JavaScript or TypeScript projects (use
--typescriptflag) - Configurable AI tool integration
- Customizable configuration schema
- Generates complete project structure:
- manifest.json
- package.json
- MCP server implementation
- README.md
- .gitignore
- Environment variable templates
Options
--typescript- Create a TypeScript project--verbose- Show more detailed logs during project creation--help- Show help information--version- Show version information
Project Structure
The generated project will have the following structure:
my-mcp-project/
├── bin/
│ └── mcp-server.js # Main MCP server (JavaScript)
├── manifest.json # MCP manifest
├── package.json # npm package configuration
├── .gitignore # Git ignore file
├── README.md # Project documentation
└── .env # Environment variables templateFor TypeScript projects:
my-mcp-project/
├── src/
│ └── index.ts # Main MCP server source (TypeScript)
├── dist/ # Compiled output (generated after build)
├── manifest.json # MCP manifest
├── package.json # npm package configuration
├── tsconfig.json # TypeScript configuration
├── .gitignore # Git ignore file
├── README.md # Project documentation
└── .env # Environment variables templateLicense
MIT
Publishing to npm
To publish your package to npm, you'll need to:
Create an npm account if you don't have one:
npm adduserLog in to your account:
npm loginPublish the package:
npm publish
If you want to publish your package as a scoped package (e.g., @yourname/mcp-cli-generator), update the package.json first:
{
"name": "@yourname/mcp-cli-generator",
...
}And then publish with:
npm publish --access publicThe package is now ready for publishing. After publishing, users will be able to install it with:
npm install -g mcp-cli-generator