Add new Apps Deployment skill — full lifecycle via MCP tools and CLI#223
Open
CheeYuTan wants to merge 1 commit intodatabricks-solutions:mainfrom
Open
Add new Apps Deployment skill — full lifecycle via MCP tools and CLI#223CheeYuTan wants to merge 1 commit intodatabricks-solutions:mainfrom
CheeYuTan wants to merge 1 commit intodatabricks-solutions:mainfrom
Conversation
New skill documenting the Databricks Apps deployment lifecycle: list → create → upload → deploy → verify → logs → debug → delete Tested end-to-end against a live workspace with 10 iterations of test-and-fix. Key findings from testing: - Response shapes use nested objects (compute_status.state, not flat enum strings) — verified against real API responses - 3 MCP tool bugs discovered and documented with CLI workarounds: create_app (SDK param mismatch), deploy_app (same), get_app_logs (import error) - list_apps, get_app, delete_app work correctly via MCP - Documented STARTING/DELETING transient states, 300-app workspace limit, cannot-delete-while-STARTING behavior - CLI fallback commands verified with correct positional syntax - Log format [SYSTEM]/[APP] prefixes verified from real app logs
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
New skill documenting the Databricks Apps deployment lifecycle: list → create → upload → deploy → verify → logs → debug → delete.
Why this is needed: Existing skills (
databricks-app-python,databricks-app-apx) cover building apps but not the deployment operations. There are 6 MCP tools for app management (list_apps,get_app,get_app_logs,create_app,deploy_app,delete_app) with zero skill documentation.What's in the skill (310 lines)
compute_status,app_status, anddeployment.statusTest evidence — 10 iterations of test-and-fix
This skill was tested through 10 iterations against a live Databricks workspace. Each iteration tested a claim, and if it failed, the skill was fixed and retested.
Full E2E lifecycle test
list_apps{limit: 5}create_app(MCP){name: "skill-test-app"}create_app(CLI)databricks apps create skill-verify-testcompute_status.state=STARTINGget_app{name: "skill-test-app"}ACTIVE, noactive_deploymentupload_folderdeploy_app(MCP){app_name: ..., source_code_path: ...}source_code_pathdeploy_app(CLI)databricks apps deploy ... --source-code-path ...get_app(poll){name: "skill-test-app"}deployment.status.state=SUCCEEDEDget_app_logs(MCP){app_name: "skill-test-app"}get_api_clientget_app_logs(CLI)databricks apps logs skill-test-app[SYSTEM]/[APP]prefixesdelete_app{name: "skill-test-app"}DELETINGstateget_app(verify){name: "skill-test-app"}DELETING→does not exist or is deletedWhat the 10 iterations found and fixed
ComputeState.ACTIVE) — real API uses nested objects (compute_status.state: "ACTIVE")createuses positional NAME, not--name{"message": "deleted"}— real API returns full app object withDELETINGstateSTARTING— undocumentedAppDeploymentMode.SNAPSHOT— real value is"SNAPSHOT"app_statusfield only inget_app, notlist_apps3 MCP tool bugs discovered and documented
create_appAppobject, not kwargsdatabricks apps create <name>deploy_appAppDeploymentobject, not flat paramsdatabricks apps deploy <name> --source-code-path <path>get_app_logscannot import name 'get_api_client'databricks apps logs <name>Test plan
validate_skills.py— 27 skills)install_skills.sh(DATABRICKS_SKILLS + description)