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

feat: default to servers directory for new projects #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/create_mcp_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,13 @@ def main(
)
return 1

project_path = (Path.cwd() / name) if path is None else path
# Default to 'servers' directory if path not specified
if path is None:
servers_dir = Path.cwd() / "servers"
servers_dir.mkdir(exist_ok=True) # Create servers directory if it doesn't exist
project_path = servers_dir / name
else:
project_path = path

# Ask the user if the path is correct if not specified on command line
if path is None:
Expand Down