Skip to content

Commit 060df9e

Browse files
authored
MCP: Convert AppKit template into a DAB template (#4018)
## Changes Convert AppKit template into a DAB template and use `bundle init` for initialization. ## Why <!-- Why are these changes needed? Provide the context that the reviewer might be missing. For example, were there any decisions behind the change that are not reflected in the code itself? --> ## Tests <!-- How have you tested the changes? --> <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
1 parent 6987cc0 commit 060df9e

File tree

95 files changed

+40
-157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+40
-157
lines changed

experimental/apps-mcp/lib/prompts/apps.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ DATABRICKS APPS DEVELOPMENT
1313

1414
⚠️ ALWAYS start by scaffolding a new Databricks app using command:
1515

16-
invoke_databricks_cli 'experimental apps-mcp tools init-template https://github.com/databricks/cli --template-dir experimental/apps-mcp/templates/appkit --branch mcp/appkit-bundle --config-json '{"project_name":"my-app-name","app_description":"my-app-description","sql_warehouse_id":"{{if .WarehouseID}}{{.WarehouseID}}{{end}}"}''
16+
invoke_databricks_cli 'experimental apps-mcp tools init-template https://github.com/databricks/cli --template-dir experimental/apps-mcp/templates/appkit --branch main --config-json '{"project_name":"my-app-name","app_description":"my-app-description","sql_warehouse_id":"{{if .WarehouseID}}{{.WarehouseID}}{{end}}"}''
1717

1818
# Validation
1919

experimental/apps-mcp/lib/templates/appkit/.env.tmpl

Lines changed: 0 additions & 5 deletions
This file was deleted.

experimental/apps-mcp/lib/templates/appkit/databricks.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

experimental/apps-mcp/lib/templates/embed.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

experimental/apps-mcp/lib/templates/template.go

Lines changed: 0 additions & 75 deletions
This file was deleted.
File renamed without changes.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"properties": {
3+
"project_name": {
4+
"type": "string",
5+
"description": "Project Name",
6+
"order": 1,
7+
"pattern": "^[A-Za-z0-9_-]+$",
8+
"pattern_match_failure_message": "Name must consist of letters, numbers, underscores, or hyphens."
9+
},
10+
"sql_warehouse_id": {
11+
"type": "string",
12+
"description": "SQL Warehouse ID",
13+
"order": 2
14+
},
15+
"app_description": {
16+
"type": "string",
17+
"description": "App Description (Optional)",
18+
"default": "A Databricks App powered by Databricks AppKit",
19+
"order": 3
20+
}
21+
22+
},
23+
"success_message": "\nYour new project has been created in the '{{.project_name}}' directory!"
24+
}

experimental/apps-mcp/lib/templates/appkit/.env.example renamed to experimental/apps-mcp/templates/appkit/template/{{.project_name}}/.env.example

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
DATABRICKS_HOST={{workspace_host}}
2+
DATABRICKS_WAREHOUSE_ID={{.sql_warehouse_id}}
3+
DATABRICKS_APP_PORT=8000
4+
DATABRICKS_APP_NAME=minimal
5+
FLASK_RUN_HOST=0.0.0.0

experimental/apps-mcp/lib/templates/appkit/.gitignore.tmpl renamed to experimental/apps-mcp/templates/appkit/template/{{.project_name}}/.gitignore.tmpl

File renamed without changes.

0 commit comments

Comments
 (0)