Always require a directory

This commit is contained in:
Justin Spahr-Summers 2024-11-18 15:06:40 +00:00
commit b9fd2fb444
No known key found for this signature in database
3 changed files with 3 additions and 6 deletions

View file

@ -5,10 +5,7 @@ A command line tool for quickly scaffolding new MCP (Model Context Protocol) ser
## Getting Started
```bash
# Create a new server in the current directory
npx @modelcontextprotocol/create-server
# Or specify a directory
# Create a new server in the directory `my-server`
npx @modelcontextprotocol/create-server my-server
# With options

View file

@ -1,6 +1,6 @@
{
"name": "@modelcontextprotocol/create-server",
"version": "0.1.0",
"version": "0.1.1",
"description": "CLI tool to create new MCP servers",
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",

View file

@ -181,7 +181,7 @@ async function createServer(directory: string, options: any = {}) {
const program = new Command()
.name("create-mcp-server")
.description("Create a new MCP server")
.argument("[directory]", "Directory to create the server in", process.cwd())
.argument("<directory>", "Directory to create the server in")
.option("-n, --name <name>", "Name of the server")
.option("-d, --description <description>", "Description of the server")
.action(createServer);