Skip to content

Commit 09225c3

Browse files
authored
Mcp/apps guidance (#4058)
## Changes Re inject guidance after scaffold initialization ## Why Push important commands back to the conversation head such that coding agents keep paying attention to them. ## 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 ed2e6d4 commit 09225c3

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

experimental/apps-mcp/cmd/init_template.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212

1313
"github.com/databricks/cli/cmd/root"
1414
"github.com/databricks/cli/experimental/apps-mcp/lib/common"
15+
"github.com/databricks/cli/experimental/apps-mcp/lib/prompts"
1516
"github.com/databricks/cli/libs/cmdio"
1617
"github.com/databricks/cli/libs/template"
1718
"github.com/spf13/cobra"
@@ -338,6 +339,10 @@ After initialization:
338339
// Try to read and display CLAUDE.md if present
339340
readClaudeMd(ctx, configFile)
340341

342+
// Re-inject app-specific guidance
343+
appsContent := prompts.MustExecuteTemplate("apps.tmpl", map[string]any{})
344+
cmdio.LogString(ctx, appsContent)
345+
341346
return nil
342347
}
343348
return cmd

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ invoke_databricks_cli 'experimental apps-mcp tools validate ./your-app-location'
4040

4141
# Deployment
4242

43-
⚠️ Use the deploy command which validates, deploys, and runs the app:
43+
⚠️ (ONLY when user explicitly requested) Use the deploy command which validates, deploys, and runs the app:
4444

4545
invoke_databricks_cli 'experimental apps-mcp tools deploy'
4646

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,4 @@ BEST PRACTICES
117117
✅ DO test SQL with query tool before implementing in code
118118
(Verify syntax and results interactively)
119119

120-
✅ DO validate bundles before deploying:
121-
invoke_databricks_cli 'bundle validate'
122-
123-
✅ DO use bundle templates for new projects:
124-
invoke_databricks_cli 'bundle init'
125-
126120
✅ DO call explore during planning to get workspace context

0 commit comments

Comments
 (0)