You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description : "Generates a comprehensive overview of this ColdBox application",
133
-
handler : () => {
134
-
var ctrl = application.cbController
135
-
var appName = ctrl.getSetting( "appName" )
136
-
var modules = ctrl.getSetting( "modules" ).keyArray().sort( "text", "asc" )
137
-
return "Provide a comprehensive overview of this ColdBox application. Here is what I know so far:
138
-
App Name : #appName#
139
-
Modules : #modules.toList()#
140
-
141
-
Use the available MCP tools (get_coldbox_settings, get_application_structure, get_router_settings, get_interceptors, etc.) to gather additional details, then summarise the architecture, key modules, routing strategy, and any notable configuration."
142
-
}
143
-
)
144
-
.registerPrompt(
145
-
name : "debug_handler",
146
-
description : "Diagnoses issues with a specific ColdBox event handler",
147
-
args : [
148
-
{ name: "handlerName", description: "The handler to investigate (e.g. 'Main' or 'api:Users')", required: true }
149
-
],
150
-
handler : ( handlerName = "" ) => {
151
-
return "Diagnose the ColdBox handler '#handlerName#'. Use the get_handler_metadata and get_registered_handlers MCP tools to gather details, then identify any potential issues with routing, dependency injection, or event execution lifecycle."
152
-
}
153
-
)
154
-
.registerPrompt(
155
-
name : "cache_health_report",
156
-
description : "Produces a CacheBox health report for all cache providers",
157
-
handler : () => {
158
-
return "Generate a CacheBox health report for this ColdBox application. Use the get_caches and get_cache_stats MCP tools to collect data on each cache provider, then summarise hit rates, eviction counts, object counts, and identify any providers showing signs of memory pressure or degraded performance."
159
-
}
160
-
)
161
-
.registerPrompt(
162
-
name : "interceptor_audit",
163
-
description : "Audits all registered ColdBox interceptors and their interception points",
164
-
handler : () => {
165
-
return "Audit the ColdBox interceptors for this application. Use the get_interceptors MCP tool to list all registered interceptors and their interception points. Identify interceptors listening on the same points that might conflict, flag any with unusual names or patterns, and suggest ordering improvements where applicable."
* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
3
+
* www.ortussolutions.com
4
+
* ---
5
+
* MCP prompts for ColdBox application overview workflows.
6
+
*/
7
+
class extends="BasePrompt" {
8
+
public void function register( required any mcpServer ) {
9
+
arguments.mcpServer.registerPrompt(
10
+
name : "coldbox_app_overview",
11
+
description : "Generates a comprehensive overview of this ColdBox application",
12
+
handler : function( struct args = {} ) {
13
+
var ctrl = application.cbController
14
+
var appName = ctrl.getSetting( "appName" )
15
+
var modules = ctrl.getSetting( "modules" ).keyArray().sort( "text", "asc" )
16
+
return "Provide a comprehensive overview of this ColdBox application. Here is what I know so far:\nApp Name : #appName#\nModules : #modules.toList()#\n\nUse the available MCP tools (get_coldbox_settings, get_application_structure, get_router_settings, get_interceptors, etc.) to gather additional details, then summarise the architecture, key modules, routing strategy, and any notable configuration."
0 commit comments