Adding MCP commands: "rename", "move", "moveTo", "delete", "delete.namespace" #6081
+638
−2
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.
Overview
Implements
rename,move,delete, anddelete.namespaceMCP commands. Discussed briefly on Discord.Implementation approach and notes
I have not written Haskell in 5 years and I was never good. This was AI assisted. I've reviewed and tested thoroughly.
Interesting/controversial decisions
I found the asymmetry in move/rename namespace vs delete namespace confusing, but I tried to respect the primitive behavior of UCM. If there is something interesting or controversial I have done something wrong. If anything, maybe someone can verify the
toolDescriptionare all accurate?Test coverage
The MCP transcript has been updated, and I have compiled this version of UCM locally and verified an agent can successfully use the tools:
Loose ends
moveTo