Skip to content

Commit 483311c

Browse files
committed
add appkit template
and convert appkit template to bundle init
1 parent 6987cc0 commit 483311c

File tree

95 files changed

+42
-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

+42
-157
lines changed

.wsignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ internal/genkit/tagging.py
3232
bundle/docsgen/output/resources.md
3333
bundle/docsgen/output/reference.md
3434
bundle/docsgen/testdata/anchors.md
35+
36+
# MCP
37+
experimental/apps-mcp/lib/templates/appkit/**/*

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

0 commit comments

Comments
 (0)