Skip to content

Commit

Permalink
Always require a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Nov 18, 2024
1 parent 3805ee9 commit b9fd2fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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)",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b9fd2fb

Please sign in to comment.