feat: add Click CLI with init subcommand#203
Closed
ezyang wants to merge 2 commits intogh/ezyang/153/basefrom
Closed
feat: add Click CLI with init subcommand#203ezyang wants to merge 2 commits intogh/ezyang/153/basefrom
ezyang wants to merge 2 commits intogh/ezyang/153/basefrom
Conversation
ezyang
added a commit
that referenced
this pull request
Mar 25, 2025
Let's use click to make codemcp a generic command line tool as well as MCP. For BC it should still launch the MCP server with no arguments but we will also add an 'init' subcommand that creates an empty codemcp.toml, init's a git repository, and makes an initial commit with these files. ```git-revs 5c3e88d (Base revision) 1d06d21 Add Click import and other imports needed for CLI 1155f1a Add init_codemcp_project function and Click CLI 670b226 Export CLI function from __init__.py 1842a58 Update __main__.py to use Click CLI 14d2d2c Snapshot before codemcp change f70e670 Update pyproject.toml to use cli function af997d8 Add end-to-end test for init command 8302b2b Snapshot before auto-format 1d91f4e Auto-commit format changes 11bc401 Auto-commit lint changes HEAD Move subprocess import to the top of the init_codemcp_project function ``` codemcp-id: 209-feat-add-click-cli-with-init-subcommand ghstack-source-id: a8c3a95 Pull-Request-resolved: #203
This was referenced Mar 25, 2025
This was referenced Mar 25, 2025
lion1991
pushed a commit
to lion1991/codemcp
that referenced
this pull request
Mar 25, 2025
Let's use click to make codemcp a generic command line tool as well as MCP. For BC it should still launch the MCP server with no arguments but we will also add an 'init' subcommand that creates an empty codemcp.toml, init's a git repository, and makes an initial commit with these files. ```git-revs 5c3e88d (Base revision) 1d06d21 Add Click import and other imports needed for CLI 1155f1a Add init_codemcp_project function and Click CLI 670b226 Export CLI function from __init__.py 1842a58 Update __main__.py to use Click CLI 14d2d2c Snapshot before codemcp change f70e670 Update pyproject.toml to use cli function af997d8 Add end-to-end test for init command 8302b2b Snapshot before auto-format 1d91f4e Auto-commit format changes 11bc401 Auto-commit lint changes HEAD Move subprocess import to the top of the init_codemcp_project function ``` codemcp-id: 209-feat-add-click-cli-with-init-subcommand ghstack-source-id: d75f5b7 Pull-Request-resolved: ezyang#203
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
Let's use click to make codemcp a generic command line tool as well as MCP. For BC it should still launch the MCP server with no arguments but we will also add an 'init' subcommand that creates an empty codemcp.toml, init's a git repository, and makes an initial commit with these files.
codemcp-id: 209-feat-add-click-cli-with-init-subcommand