feat: add Chmod tool supporting a+x and a-x#200
Closed
ezyang wants to merge 2 commits into
Closed
Conversation
ezyang
added a commit
that referenced
this pull request
Mar 24, 2025
Add a tool Chmod which runs chmod on a file. Unlike standard chmod, we will only support a+x and a-x, because these are the only bits that git knows how to track. ```git-revs f5bdd1b (Base revision) 2a4c46d Create chmod.py tool implementation aecccaf Add chmod to __init__.py exports 978c820 Add Chmod tool to system prompt in init_project.py c980c91 Add Chmod to the Summary section in init_project.py ce2bed8 Add mode parameter to the Summary section in init_project.py c2247ea Create end-to-end test for the Chmod tool b2c432e Add chmod import to main.py 7c7b51e Add mode parameter to codemcp function signature 860272d Add Chmod to expected_params dictionary 9a359e1 Add mode to provided_params dictionary 45aa5cc Add Chmod subtool handler implementation d5de573 Auto-commit format changes 90b87ba Auto-commit lint changes 10e36c2 Add init_git_repo helper function to testing.py 630cf2b Add __all__ list with init_git_repo in testing.py b9445c4 Add pytest_asyncio import to test_chmod.py 4d1f672 Add pytest.mark.asyncio decorator to first test function b726f97 Add pytest.mark.asyncio decorator to second test function f40366f Remove pytest_asyncio import HEAD Convert chmod test to use MCPEndToEndTestCase ``` codemcp-id: 208-feat-add-chmod-tool-supporting-a-x-and-a-x ghstack-source-id: 63e7b6b Pull-Request-resolved: #200
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):
Add a tool Chmod which runs chmod on a file. Unlike standard chmod, we will only support a+x and a-x, because these are the only bits that git knows how to track.
codemcp-id: 208-feat-add-chmod-tool-supporting-a-x-and-a-x