Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit b9fd2fb

Browse files
committed
Always require a directory
1 parent 3805ee9 commit b9fd2fb

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ A command line tool for quickly scaffolding new MCP (Model Context Protocol) ser
55
## Getting Started
66

77
```bash
8-
# Create a new server in the current directory
9-
npx @modelcontextprotocol/create-server
10-
11-
# Or specify a directory
8+
# Create a new server in the directory `my-server`
129
npx @modelcontextprotocol/create-server my-server
1310

1411
# With options

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@modelcontextprotocol/create-server",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "CLI tool to create new MCP servers",
55
"license": "MIT",
66
"author": "Anthropic, PBC (https://anthropic.com)",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ async function createServer(directory: string, options: any = {}) {
181181
const program = new Command()
182182
.name("create-mcp-server")
183183
.description("Create a new MCP server")
184-
.argument("[directory]", "Directory to create the server in", process.cwd())
184+
.argument("<directory>", "Directory to create the server in")
185185
.option("-n, --name <name>", "Name of the server")
186186
.option("-d, --description <description>", "Description of the server")
187187
.action(createServer);

0 commit comments

Comments
 (0)