Package com.ssgllc.fish.config.mcp
Class McpDeveloperToolsConfig
java.lang.Object
com.ssgllc.fish.config.mcp.McpDeveloperToolsConfig
MCP tool configuration for developer productivity: report testing, SpEL expression
evaluation, Groovy script execution, and per-request debug logging.
Provides fifteen tools across four groups:
Report tools
validate-report— parse SQL template, extract parameters and output columnstest-report-output— execute with supplied parameter values (max 25 rows)test-full-report— smoke-test with auto-generated dummy valuesvalidate-sql— validate raw SQL against the application data model
SpEL expression tools
test-spel-expression— evaluate against a real entity instancetest-match-expression— score a deduplication match between two instancestest-merge-expression— evaluate a merge survivorship expressiontest-attribute-expression— test a boolean security expression, with optional user impersonation viaConfigTestService.testAttributeExpression(java.lang.String, java.lang.String, java.lang.String, java.lang.String)list-spel-functions— list all registered#function()signatures
Groovy script tools
execute-groovy-script— run a Groovy script with optional bound variablesexecute-text-template— execute a named TextTemplate scripttest-entity-lifecycle-script— run with lifecycle-event-bound variablestest-process-script— run in the context of a running process instance
Debug logging tools
set-debug-logging— create a per-request debug token for specified packagesget-debug-logs— retrieve captured log lines for a debug token
Also registers three MCP prompts (report-development-guide,
spel-expression-guide, groovy-script-guide) and one resource
(file://spel-functions.json).
Active only when spring.ai.mcp.server.enabled=true.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTool implementations for developer productivity. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<io.modelcontextprotocol.server.McpStatelessServerFeatures.SyncPromptSpecification> List<io.modelcontextprotocol.server.McpStatelessServerFeatures.SyncResourceSpecification> developerResources(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Constructor Details
-
McpDeveloperToolsConfig
public McpDeveloperToolsConfig()
-
-
Method Details
-
developerPrompts
@Bean public List<io.modelcontextprotocol.server.McpStatelessServerFeatures.SyncPromptSpecification> developerPrompts() -
developerResources
@Bean public List<io.modelcontextprotocol.server.McpStatelessServerFeatures.SyncResourceSpecification> developerResources(com.fasterxml.jackson.databind.ObjectMapper mapper)
-