Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add --switch flag to project:add command for automatic project switching #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
butschster merged 1 commit into main from feature/278
Oct 9, 2025

Conversation

@butschster
Copy link
Collaborator

@butschster butschster commented Oct 9, 2025
edited
Loading

Currently, adding a new project and switching to it requires two separate commands:

ctx project:add . --name=my-backend
ctx project my-backend

This creates unnecessary friction in a common workflow, especially for users who frequently add new projects and immediately want to start working with them.

Solution

Added an optional --switch (or -s) flag to the project:add command that automatically switches to the newly added project after successful registration.

Usage Examples

Add and switch to project:

ctx project:add . --name=my-backend --switch
# or short form
ctx project:add . --name=my-backend -s

Traditional behavior (no switch):

ctx project:add . --name=my-backend

...y added
project, eliminating the need for a separate 'ctx project' command in
common workflows.
@butschster butschster added this to the 1.33 milestone Oct 9, 2025
@butschster butschster self-assigned this Oct 9, 2025
@butschster butschster added the mcp:projects MCP projects label Oct 9, 2025
@butschster butschster linked an issue Oct 9, 2025 that may be closed by this pull request
Copy link

codecov bot commented Oct 9, 2025

Codecov Report

❌ Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...c/McpServer/Projects/Console/ProjectAddCommand.php 0.00% 9 Missing ⚠️

📢 Thoughts on this report? Let us know!

@butschster butschster merged commit 1688f6e into main Oct 9, 2025
8 of 9 checks passed
@butschster butschster deleted the feature/278 branch October 9, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Labels

mcp:projects MCP projects

Projects

Status: Done

Milestone

1.33

Development

Successfully merging this pull request may close these issues.

Add Auto-Switch Option to project:add Command

2 participants

AltStyle によって変換されたページ (->オリジナル) /