Always require a directory
This commit is contained in:
parent
3805ee9d72
commit
b9fd2fb444
3 changed files with 3 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue