Feature/bench tools#194
Closed
rachana-promantia wants to merge 2 commits into
Closed
Conversation
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.
Summary
This PR adds two new MCP tools to the Developer Tools plugin for managing Frappe bench operations and exporting fixtures.
New Tools
bench_help
Returns all available bench operations with descriptions and required parameters
No input parameters needed
Acts as a discovery tool — call this first before bench_execute
bench_execute
Executes bench operations via a single action parameter. Supported actions:
list_apps — lists bench apps and site-installed apps separately
list_sites — lists all available sites on the bench
create_app — creates a new custom Frappe app on bench
install_app — installs a bench app onto the current site
uninstall_app — removes app from site only, keeps files on bench
remove_app — permanently removes app from bench (uninstalls from site + pip uninstall + deletes directory)
export_fixtures — exports DocType customizations as fixture JSON into a custom app
Key Design Decisions
remove_app handles complete cleanup — no ghost apps left behind
export_fixtures requires all three params (app_name, doctype, filters) — fails fast if missing
create_app and install_app are separate actions — follows standard bench behavior
list_apps returns bench_apps and site_apps separately — clear distinction
New Skill File
Added docs/skills/bench_tools.md — instruction manual for Claude on how to use these tools correctly.
Testing
All actions tested via MCP inspector and Claude Desktop including edge cases and error scenarios.