Skip to content

Feature/bench tools#194

Closed
rachana-promantia wants to merge 2 commits into
buildswithpaul:mainfrom
promantia-ai:feature/bench-tools
Closed

Feature/bench tools#194
rachana-promantia wants to merge 2 commits into
buildswithpaul:mainfrom
promantia-ai:feature/bench-tools

Conversation

@rachana-promantia
Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants