Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion experimental/apps-mcp/lib/prompts/apps.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DATABRICKS APPS DEVELOPMENT

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

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}}"}''
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}}"}''

# Validation

Expand Down
5 changes: 0 additions & 5 deletions experimental/apps-mcp/lib/templates/appkit/.env.tmpl

This file was deleted.

49 changes: 0 additions & 49 deletions experimental/apps-mcp/lib/templates/appkit/databricks.yml

This file was deleted.

18 changes: 0 additions & 18 deletions experimental/apps-mcp/lib/templates/embed.go

This file was deleted.

75 changes: 0 additions & 75 deletions experimental/apps-mcp/lib/templates/template.go

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"properties": {
"project_name": {
"type": "string",
"description": "Project Name",
"order": 1,
"pattern": "^[A-Za-z0-9_-]+$",
"pattern_match_failure_message": "Name must consist of letters, numbers, underscores, or hyphens."
},
"sql_warehouse_id": {
"type": "string",
"description": "SQL Warehouse ID",
"order": 2
},
"app_description": {
"type": "string",
"description": "App Description (Optional)",
"default": "A Databricks App powered by Databricks AppKit",
"order": 3
}

},
"success_message": "\nYour new project has been created in the '{{.project_name}}' directory!"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DATABRICKS_HOST={{workspace_host}}
DATABRICKS_WAREHOUSE_ID={{.sql_warehouse_id}}
DATABRICKS_APP_PORT=8000
DATABRICKS_APP_NAME=minimal
FLASK_RUN_HOST=0.0.0.0
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bundle:
name: {{.AppName}}
name: {{.project_name}}

variables:
warehouse_id:
Expand All @@ -9,9 +9,9 @@ variables:

resources:
apps:
{{.AppName}}:
name: ${bundle.target}-{{.AppName}}
description: {{.AppDescription}}
app:
name: ${bundle.target}-{{.project_name}}
description: {{.app_description}}
source_code_path: ./

# Uncomment to enable on behalf of user API scopes. Available scopes: sql, dashboards.genie, files.files
Expand All @@ -30,10 +30,10 @@ targets:
mode: development
default: true
workspace:
host: {{.WorkspaceURL}}
host: {{workspace_host}}

variables:
warehouse_id: {{.WarehouseID}}
warehouse_id: {{.sql_warehouse_id}}

prod:
mode: production
Expand All @@ -43,5 +43,5 @@ targets:
# warehouse_id: ...
resources:
apps:
{{.AppName}}:
name: {{.AppName}}
app:
name: {{.project_name}}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"start": "NODE_ENV=production node --env-file-if-exists=./.env ./dist/server/server.js",
"dev": "NODE_ENV=development tsx watch --include config/**/* --tsconfig ./tsconfig.server.json --env-file-if-exists=./.env ./server/server.ts",
"dev": "NODE_ENV=development tsx watch --tsconfig ./tsconfig.server.json --env-file-if-exists=./.env ./server/server.ts",
"build:client": "tsc -b tsconfig.client.json && vite build --config client/vite.config.ts",
"build:server": "tsc -b tsconfig.server.json",
"build": "npm run build:server && npm run build:client",
Expand Down