From c6340bd756c9fd07c234ca84ca4df823feb16a42 Mon Sep 17 00:00:00 2001 From: Patrick Baumgartner Date: Fri, 9 Oct 2026 20:12:30 +0200 Subject: [PATCH 1/2] GH-2032: Cover MCP tools with skills and plugin evaluations Fixes gh-2032 Signed-off-by: Patrick Baumgartner --- .github/workflows/claude-plugin-check.yml | 153 ++ CLAUDE.md | 7 +- .../spring-tools/agents/spring-reviewer.md | 24 + .../graders/describes-stereotypes.md | 8 + .../graders/lists-the-components.md | 4 + .../graders/skill-fired.md | 5 + .../graders/used-stereotypes-tool.md | 4 + .../prompt.md | 8 + .../graders/describes-wiring.md | 8 + .../graders/names-the-bean-type.md | 4 + .../graders/skill-fired.md | 5 + .../graders/used-bean-usage-tool.md | 5 + .../evals/beans-explains-wiring/prompt.md | 8 + .../graders/skill-fired.md | 5 + .../create-project-routes-to-skill/prompt.md | 9 + .../graders/lists-greeting-endpoint.md | 4 + .../graders/names-the-controller.md | 4 + .../graders/skill-fired.md | 5 + .../graders/used-request-mappings-tool.md | 4 + .../prompt.md | 8 + .../graders/answers-the-question.md | 5 + .../graders/no-project-lookup.md | 7 + .../graders/no-skill-invoked.md | 7 + .../evals/ignores-unrelated-request/prompt.md | 8 + .../capture-logical-structure-baseline.md | 4 + .../clear-logical-structure-baseline.md | 4 + .../mcp-tools-covered/graders/file-changed.md | 4 + .../mcp-tools-covered/graders/file-deleted.md | 4 + .../graders/find-beans-by-type.md | 4 + .../graders/find-components-by-stereotype.md | 4 + .../find-request-mappings-by-method.md | 4 + .../graders/get-bean-details.md | 4 + .../graders/get-generations.md | 4 + .../graders/get-latest-boot-versions.md | 4 + .../get-list-components-and-stereotypes.md | 4 + .../get-logical-structure-baseline-history.md | 4 + .../graders/get-logical-structure-changes.md | 4 + .../graders/get-logical-structure.md | 4 + .../graders/get-project-list.md | 4 + .../mcp-tools-covered/graders/get-releases.md | 4 + .../graders/get-resolved-project-classpath.md | 4 + .../graders/get-spring-boot-version.md | 4 + .../graders/get-stereotypes-list.md | 4 + .../graders/get-structure-dependencies.md | 4 + .../graders/get-upcoming-releases.md | 4 + .../evals/mcp-tools-covered/prompt.md | 14 + .../evals/mocks/spring-tools-mcp/_tools.json | 500 ++++ .../captureLogicalStructureBaseline.md | 5 + .../clearLogicalStructureBaseline.md | 5 + .../mocks/spring-tools-mcp/fileChanged.md | 5 + .../mocks/spring-tools-mcp/fileDeleted.md | 5 + .../mocks/spring-tools-mcp/findBeansByType.md | 23 + .../findComponentsByStereotype.md | 13 + .../findRequestMappingsByMethod.md | 24 + .../mocks/spring-tools-mcp/getBeanDetails.md | 515 ++++ .../spring-tools-mcp/getBeanUsageInfo.md | 28 + .../mocks/spring-tools-mcp/getGenerations.md | 114 + .../mocks/spring-tools-mcp/getJavaVersion.md | 5 + .../getLatestBootVersionsFromMavenRepo.md | 10 + .../getLatestReleaseInformation.md | 10 + .../getListOfComponentsAndTheirStereotypes.md | 30 + .../spring-tools-mcp/getLogicalStructure.md | 183 ++ .../getLogicalStructureBaselineHistory.md | 12 + .../getLogicalStructureChanges.md | 5 + .../spring-tools-mcp/getProjectDiagnostics.md | 28 + .../mocks/spring-tools-mcp/getProjectList.md | 8 + .../mocks/spring-tools-mcp/getReleases.md | 41 + .../spring-tools-mcp/getRequestMappings.md | 23 + .../getResolvedProjectClasspath.md | 334 +++ .../spring-tools-mcp/getSpringBootVersion.md | 16 + .../spring-tools-mcp/getStereotypesList.md | 405 +++ .../getStructureDependencies.md | 536 ++++ .../spring-tools-mcp/getUpcomingReleases.md | 2186 +++++++++++++++++ .../spring-tools-mcp/refreshWorkspace.md | 1 + .../graders/reports-project-and-versions.md | 4 + .../graders/skill-fired.md | 5 + .../graders/used-java-version-tool.md | 4 + .../project-info-reports-versions/prompt.md | 8 + .../graders/explains-and-fixes.md | 9 + .../graders/read-the-playbook.md | 5 + .../graders/skill-fired.md | 5 + .../prompt.md | 8 + .../graders/confirms-refresh.md | 5 + .../graders/skill-fired.md | 5 + .../graders/used-refresh-tool.md | 4 + .../refresh-reindexes-workspace/prompt.md | 8 + .../graders/delegated-to-reviewer.md | 5 + .../graders/names-the-finding.md | 5 + .../graders/relays-findings.md | 9 + .../spring-tools-mcp/getProjectDiagnostics.md | 39 + .../reviewer-agent-reviews-project/prompt.md | 9 + .../graders/skill-fired.md | 5 + .../evals/spring-review-skill/prompt.md | 9 + .../graders/gives-oss-support-end.md | 4 + .../graders/names-both-versions.md | 4 + .../graders/skill-fired.md | 5 + .../graders/used-release-information-tool.md | 4 + .../spring-versions-checks-support/prompt.md | 8 + .../graders/names-the-diagnostic.md | 5 + .../graders/reports-diagnostics.md | 9 + .../graders/skill-fired.md | 5 + .../graders/used-diagnostics-tool.md | 4 + .../spring-tools-mcp/getProjectDiagnostics.md | 39 + .../validate-finds-spring-problems/prompt.md | 8 + .../spring-tools/skills/architecture/SKILL.md | 30 + .../spring-tools/skills/beans/SKILL.md | 22 + .../spring-tools/skills/endpoints/SKILL.md | 20 + .../spring-tools/skills/project-info/SKILL.md | 18 + .../skills/spring-review/SKILL.md | 23 + .../skills/spring-versions/SKILL.md | 26 + claude-plugins/tools/check-plugin-config.mjs | 151 ++ claude-plugins/tools/evals/record-mocks.mjs | 214 ++ claude-plugins/tools/lib/plugin-config.mjs | 14 +- claude-plugins/tools/smoke/mcp-smoke.mjs | 292 +++ .../tools/test/fixtures/bad-agent.md | 9 + .../tools/test/plugin-config.test.mjs | 15 +- 116 files changed, 6549 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/claude-plugin-check.yml create mode 100644 claude-plugins/spring-tools/agents/spring-reviewer.md create mode 100644 claude-plugins/spring-tools/evals/architecture-describes-components/graders/describes-stereotypes.md create mode 100644 claude-plugins/spring-tools/evals/architecture-describes-components/graders/lists-the-components.md create mode 100644 claude-plugins/spring-tools/evals/architecture-describes-components/graders/skill-fired.md create mode 100644 claude-plugins/spring-tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md create mode 100644 claude-plugins/spring-tools/evals/architecture-describes-components/prompt.md create mode 100644 claude-plugins/spring-tools/evals/beans-explains-wiring/graders/describes-wiring.md create mode 100644 claude-plugins/spring-tools/evals/beans-explains-wiring/graders/names-the-bean-type.md create mode 100644 claude-plugins/spring-tools/evals/beans-explains-wiring/graders/skill-fired.md create mode 100644 claude-plugins/spring-tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md create mode 100644 claude-plugins/spring-tools/evals/beans-explains-wiring/prompt.md create mode 100644 claude-plugins/spring-tools/evals/create-project-routes-to-skill/graders/skill-fired.md create mode 100644 claude-plugins/spring-tools/evals/create-project-routes-to-skill/prompt.md create mode 100644 claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md create mode 100644 claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md create mode 100644 claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md create mode 100644 claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md create mode 100644 claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/prompt.md create mode 100644 claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/answers-the-question.md create mode 100644 claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-project-lookup.md create mode 100644 claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md create mode 100644 claude-plugins/spring-tools/evals/ignores-unrelated-request/prompt.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-changed.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-deleted.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-beans-by-type.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-bean-details.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-generations.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-project-list.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-releases.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md create mode 100644 claude-plugins/spring-tools/evals/mcp-tools-covered/prompt.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/_tools.json create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileChanged.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileDeleted.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findBeansByType.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanDetails.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getGenerations.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getJavaVersion.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectList.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getReleases.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getRequestMappings.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStereotypesList.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md create mode 100644 claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md create mode 100644 claude-plugins/spring-tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md create mode 100644 claude-plugins/spring-tools/evals/project-info-reports-versions/graders/skill-fired.md create mode 100644 claude-plugins/spring-tools/evals/project-info-reports-versions/graders/used-java-version-tool.md create mode 100644 claude-plugins/spring-tools/evals/project-info-reports-versions/prompt.md create mode 100644 claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md create mode 100644 claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md create mode 100644 claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md create mode 100644 claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/prompt.md create mode 100644 claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md create mode 100644 claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/skill-fired.md create mode 100644 claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md create mode 100644 claude-plugins/spring-tools/evals/refresh-reindexes-workspace/prompt.md create mode 100644 claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md create mode 100644 claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md create mode 100644 claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md create mode 100644 claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md create mode 100644 claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/prompt.md create mode 100644 claude-plugins/spring-tools/evals/spring-review-skill/graders/skill-fired.md create mode 100644 claude-plugins/spring-tools/evals/spring-review-skill/prompt.md create mode 100644 claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md create mode 100644 claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/names-both-versions.md create mode 100644 claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/skill-fired.md create mode 100644 claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md create mode 100644 claude-plugins/spring-tools/evals/spring-versions-checks-support/prompt.md create mode 100644 claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md create mode 100644 claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md create mode 100644 claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/skill-fired.md create mode 100644 claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md create mode 100644 claude-plugins/spring-tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md create mode 100644 claude-plugins/spring-tools/evals/validate-finds-spring-problems/prompt.md create mode 100644 claude-plugins/spring-tools/skills/architecture/SKILL.md create mode 100644 claude-plugins/spring-tools/skills/beans/SKILL.md create mode 100644 claude-plugins/spring-tools/skills/endpoints/SKILL.md create mode 100644 claude-plugins/spring-tools/skills/project-info/SKILL.md create mode 100644 claude-plugins/spring-tools/skills/spring-review/SKILL.md create mode 100644 claude-plugins/spring-tools/skills/spring-versions/SKILL.md create mode 100644 claude-plugins/tools/check-plugin-config.mjs create mode 100644 claude-plugins/tools/evals/record-mocks.mjs create mode 100644 claude-plugins/tools/smoke/mcp-smoke.mjs create mode 100644 claude-plugins/tools/test/fixtures/bad-agent.md diff --git a/.github/workflows/claude-plugin-check.yml b/.github/workflows/claude-plugin-check.yml new file mode 100644 index 0000000000..531422bc0a --- /dev/null +++ b/.github/workflows/claude-plugin-check.yml @@ -0,0 +1,153 @@ +name: Claude Plugin Check + +# Keeps the Claude Code plugin under claude-plugins/spring-tools consistent with the +# language server: every diagnostic code has an explanation playbook, playbooks are +# well-formed, hooks, skills and agents only reference MCP tools that exist (and every +# tool is reachable through one of them), the plugin manifest validates, and the +# launcher/language server (including its file watcher) work end to end over MCP stdio. + +on: + push: + branches: + - main + paths: + - 'claude-plugins/**' + - 'headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/**/*ProblemType.java' + - 'headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/validation/generations/AbstractDiagnosticValidator.java' + - 'headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/yaml/reconcile/ApplicationYamlASTReconciler.java' + - 'headless-services/commons/commons-yaml/src/main/java/org/springframework/ide/vscode/commons/yaml/reconcile/YamlSchemaProblems.java' + - 'headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/mcp/**' + - 'headless-services/spring-boot-language-server-standalone/src/main/java/**' + - '.github/workflows/claude-plugin-check.yml' + pull_request: + paths: + - 'claude-plugins/**' + - 'headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/**/*ProblemType.java' + - 'headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/validation/generations/AbstractDiagnosticValidator.java' + - 'headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/yaml/reconcile/ApplicationYamlASTReconciler.java' + - 'headless-services/commons/commons-yaml/src/main/java/org/springframework/ide/vscode/commons/yaml/reconcile/YamlSchemaProblems.java' + - 'headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/mcp/**' + - 'headless-services/spring-boot-language-server-standalone/src/main/java/**' + - '.github/workflows/claude-plugin-check.yml' + workflow_dispatch: + inputs: + run-evals: + description: 'Also run the behavioral eval suite (claude plugin eval; needs the ANTHROPIC_API_KEY secret and costs model calls)' + type: boolean + default: false + +permissions: + contents: read + +concurrency: + group: claude-plugin-check-${{ github.ref }} + cancel-in-progress: true + +jobs: + explanations-and-config: + name: Explanation playbooks and plugin configuration + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # 7.0.0 + with: + node-version: 22 + - name: Check explanation playbooks (coverage, structure, cross-references, coverage table) + run: node claude-plugins/tools/check-explanations.mjs --require-all --todo + - name: Check plugin configuration (hooks, skills, agents against the MCP tool inventory) + run: node claude-plugins/tools/check-plugin-config.mjs + - name: Run plugin tooling tests + run: node --test --test-reporter=spec 'claude-plugins/tools/test/*.test.mjs' + + documentation-links: + name: Documentation links resolve + runs-on: ubuntu-latest + # Only on the main branch: external link checks depend on docs.spring.io availability. + if: github.event_name != 'pull_request' + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # 7.0.0 + with: + node-version: 22 + - name: Check that every documentation link in the playbooks returns HTTP 200 + run: node claude-plugins/tools/check-explanations.mjs --require-all --links + + plugin-manifest: + name: Plugin manifest validates with the Claude Code CLI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # 7.0.0 + with: + node-version: 22 + - name: Install the Claude Code CLI into a temporary prefix + run: npm install --no-audit --no-fund --prefix "$RUNNER_TEMP/claude-code" @anthropic-ai/claude-code@latest + - name: Validate the plugin manifest (no login required) + run: | + "$RUNNER_TEMP/claude-code/node_modules/.bin/claude" --version + "$RUNNER_TEMP/claude-code/node_modules/.bin/claude" plugin validate ./claude-plugins/spring-tools --strict + + mcp-smoke: + name: End-to-end MCP smoke test against a freshly built language server + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # 7.0.0 + with: + node-version: 22 + - uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # 5.6.0 + with: + java-version: '25' + distribution: 'temurin' + cache: maven + cache-dependency-path: 'headless-services/**/pom.xml' + - name: Build the standalone language server and copy the JAR into the plugin + run: ./claude-plugins/update-local-jars.sh + - name: Start launcher.js over MCP stdio, index a sample project and exercise the tools the hooks and skills rely on + run: node claude-plugins/tools/smoke/mcp-smoke.mjs --keep + - name: Upload the language server log on failure + if: failure() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # 7.0.1 + with: + name: boot-ls-log + path: /tmp/spring-tools-smoke-*/data/boot-ls.log + if-no-files-found: ignore + + plugin-evals: + name: Behavioral evals (claude plugin eval, on demand) + runs-on: ubuntu-latest + if: github.event_name == 'workflow_dispatch' && inputs.run-evals + timeout-minutes: 60 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # 7.0.0 + with: + node-version: 22 + - name: Install the Claude Code CLI into a temporary prefix + run: npm install --no-audit --no-fund --prefix "$RUNNER_TEMP/claude-code" @anthropic-ai/claude-code@latest + - name: Run the eval suite against the recorded MCP mocks (the language server is not started) + working-directory: claude-plugins/spring-tools + env: + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + run: | + if [ -z "$ANTHROPIC_API_KEY" ]; then + echo '::error::the ANTHROPIC_API_KEY secret is not set; the eval suite needs model access' + exit 1 + fi + "$RUNNER_TEMP/claude-code/node_modules/.bin/claude" plugin eval . \ + --trust-plugin \ + --json "$RUNNER_TEMP/eval-results.json" \ + --threshold 0.8 \ + --judge-model claude-haiku-4-5 \ + --no-publish \ + --max-cost-usd 15 + - name: Upload the eval results and report + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # 7.0.1 + with: + name: plugin-eval-results + path: | + ${{ runner.temp }}/eval-results.json + claude-plugins/spring-tools/evals/results/**/report.html + if-no-files-found: ignore diff --git a/CLAUDE.md b/CLAUDE.md index eedcd1fb54..16971c0c89 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -31,8 +31,8 @@ sts4/ │ └── boot-dev-pack/ # Extension pack bundling Spring Boot extensions ├── nodejs-packages/ # Shared Node.js utilities └── claude-plugins/ # Claude Code plugin (standalone LS + MCP server) - ├── spring-tools/ # Plugin source (skills, hooks, explanations/.md playbooks) - ├── tools/ # Node.js checker + tests keeping the playbooks in sync with the LS + ├── spring-tools/ # Plugin source (skills, agents, hooks, evals, explanations/.md playbooks) + ├── tools/ # Node.js checkers + tests keeping playbooks/skills/agents in sync with the LS ├── research-notes/ # TODO_quickfixes.md: problem code → quick fix → playbook coverage table └── update-local-jars.sh # Rebuilds the standalone LS JAR for the plugin ``` @@ -94,10 +94,11 @@ cd claude-plugins ./update-local-jars.sh # Rebuild and copy the standalone LS JAR into the plugin ``` -Every diagnostic code needs a playbook `claude-plugins/spring-tools/explanations/.md` and a row in `claude-plugins/research-notes/TODO_quickfixes.md`. When adding or renaming a problem type, run from the repository root (details in `claude-plugins/spring-tools/README.md`): +Every diagnostic code needs a playbook `claude-plugins/spring-tools/explanations/.md` and a row in `claude-plugins/research-notes/TODO_quickfixes.md`. Every MCP tool (`boot/mcp/*Tools.java`) must be reachable through a skill or hook and have a behavioral eval with a mock. When adding or renaming a problem type or an MCP tool, run from the repository root (details in `claude-plugins/spring-tools/README.md`): ```bash node claude-plugins/tools/check-explanations.mjs --require-all --todo --links +node claude-plugins/tools/check-plugin-config.mjs npm --prefix claude-plugins/tools test ``` diff --git a/claude-plugins/spring-tools/agents/spring-reviewer.md b/claude-plugins/spring-tools/agents/spring-reviewer.md new file mode 100644 index 0000000000..9fcc4ddcd5 --- /dev/null +++ b/claude-plugins/spring-tools/agents/spring-reviewer.md @@ -0,0 +1,24 @@ +--- +name: spring-reviewer +description: Reviews Spring Boot code changes with the Spring Tools language server - diagnostics, bean wiring, endpoints and logical structure. Use after editing a Spring Boot project or when asked for a Spring-aware review; read-only, never edits files. +tools: Read, Grep, Glob, mcp__plugin_spring-tools_spring-tools-mcp__* +model: inherit +--- +You are a Spring Boot reviewer. You review the current state of the Spring Boot projects in the workspace with the `spring-tools` MCP server and report findings; you never modify files. + +Work through these steps and keep tool output out of the report - summarize. + +1. `getProjectList` - note every project (`projectName`, `location`, `isSpringBootProject`, `javaVersion`). Retry a few times if the list is empty right after startup. Skip projects that are not Spring Boot projects unless the user asked about them. +2. `getProjectDiagnostics` per project. For each Spring diagnostic code read the fix playbook for that code - the `.md` files in the plugin's `explanations` directory, at `${CLAUDE_PLUGIN_ROOT}/explanations/.md` in Claude Code and at the absolute path named in the spring-tools MCP server instructions otherwise - and describe the fix precisely (file, range, what to change) instead of pasting the playbook. +3. Bean wiring: `getBeanDetails` for an overview, then `findBeansByType` for every interface with several implementations (missing `@Primary`/`@Qualifier`) and `getBeanUsageInfo` for beans that are defined but never injected (dead configuration) or injected but not defined. +4. Endpoints: `getRequestMappings` - flag duplicate paths, handler methods without an HTTP method, controllers that mix API versions inconsistently, and endpoints without a matching stereotype (`@RestController`/`@Controller`). +5. Structure: `getLogicalStructureChanges` (a git-backed project has a baseline automatically) to see what the change under review added, removed or moved; `findComponentsByStereotype` to check layering rules the project follows (e.g. controllers calling repositories directly). +6. Versions: `getSpringBootVersion` plus `getLatestReleaseInformation` with slug `spring-boot` - mention when the project runs on a generation whose OSS support has ended. + +Report format: + +- **Blocking**: problems that break the application context, the build or security (each with file:line and the fix). +- **Should fix**: Spring diagnostics with a playbook, wiring ambiguities, structural regressions. +- **Notes**: version/support status, observations, things you could not verify (e.g. the language server was still indexing). + +Use file:line references from the tool output. Read source files only to confirm a finding. When the language server reports nothing for a project, say so explicitly rather than inventing findings. diff --git a/claude-plugins/spring-tools/evals/architecture-describes-components/graders/describes-stereotypes.md b/claude-plugins/spring-tools/evals/architecture-describes-components/graders/describes-stereotypes.md new file mode 100644 index 0000000000..415e9193f4 --- /dev/null +++ b/claude-plugins/spring-tools/evals/architecture-describes-components/graders/describes-stereotypes.md @@ -0,0 +1,8 @@ +--- +type: llm +--- + +The user asked for an architecture overview of the Spring Boot project `sf7-validation`: its components and their stereotypes. + +PASS if the response names `TestController` as a REST controller (stereotype `@RestController`/`Controller`), names `Config` and `WebConfig` as configuration classes (`@Configuration`), names `Sf7ValidationApplication` as the `@SpringBootApplication` entry point, and does not invent components, repositories or services that do not exist in the project. +FAIL if any of these four components is missing, if invented components are listed, or if the response only describes generic Spring architecture without referring to this project's classes. diff --git a/claude-plugins/spring-tools/evals/architecture-describes-components/graders/lists-the-components.md b/claude-plugins/spring-tools/evals/architecture-describes-components/graders/lists-the-components.md new file mode 100644 index 0000000000..e1678460e0 --- /dev/null +++ b/claude-plugins/spring-tools/evals/architecture-describes-components/graders/lists-the-components.md @@ -0,0 +1,4 @@ +--- +type: regex +pattern: TestController[\s\S]*WebConfig|WebConfig[\s\S]*TestController +--- diff --git a/claude-plugins/spring-tools/evals/architecture-describes-components/graders/skill-fired.md b/claude-plugins/spring-tools/evals/architecture-describes-components/graders/skill-fired.md new file mode 100644 index 0000000000..8906863770 --- /dev/null +++ b/claude-plugins/spring-tools/evals/architecture-describes-components/graders/skill-fired.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Skill +input_match: '"skill"\s*:\s*"(?:[\w-]+:)?architecture"' +--- diff --git a/claude-plugins/spring-tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md b/claude-plugins/spring-tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md new file mode 100644 index 0000000000..c1c984d795 --- /dev/null +++ b/claude-plugins/spring-tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getLogicalStructure +--- diff --git a/claude-plugins/spring-tools/evals/architecture-describes-components/prompt.md b/claude-plugins/spring-tools/evals/architecture-describes-components/prompt.md new file mode 100644 index 0000000000..84d0014d74 --- /dev/null +++ b/claude-plugins/spring-tools/evals/architecture-describes-components/prompt.md @@ -0,0 +1,8 @@ +--- +max_turns: 12 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [smoke, architecture] +expected_outcome: Claude describes the project's components from the language server's logical structure - the Sf7ValidationApplication entry point, the Config and WebConfig configuration classes and the TestController REST controller - with their stereotypes. +--- + +Give me an architecture overview of this project: which Spring components exist and what role (stereotype) does each one play? diff --git a/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/describes-wiring.md b/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/describes-wiring.md new file mode 100644 index 0000000000..d5721f07bc --- /dev/null +++ b/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/describes-wiring.md @@ -0,0 +1,8 @@ +--- +type: llm +--- + +The question asked where the Spring bean `testController` is defined, what its type is, and whether it is injected anywhere. + +PASS if the response says the bean is of type `com.example.demo.apiversioning.TestController`, is defined by the `@RestController` (or `@Controller`) annotated class in `TestController.java`, and states that no other bean injects or uses it (no injection points / usages found). +FAIL if the response claims the bean is injected somewhere, gives a different type, or says the information is unavailable. diff --git a/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/names-the-bean-type.md b/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/names-the-bean-type.md new file mode 100644 index 0000000000..85305aee99 --- /dev/null +++ b/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/names-the-bean-type.md @@ -0,0 +1,4 @@ +--- +type: regex +pattern: com\.example\.demo\.apiversioning\.TestController +--- diff --git a/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/skill-fired.md b/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/skill-fired.md new file mode 100644 index 0000000000..20841b1934 --- /dev/null +++ b/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/skill-fired.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Skill +input_match: '"skill"\s*:\s*"(?:[\w-]+:)?beans"' +--- diff --git a/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md b/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md new file mode 100644 index 0000000000..b78d5459ce --- /dev/null +++ b/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getBeanUsageInfo +input_match: testController +--- diff --git a/claude-plugins/spring-tools/evals/beans-explains-wiring/prompt.md b/claude-plugins/spring-tools/evals/beans-explains-wiring/prompt.md new file mode 100644 index 0000000000..fb9c6996e5 --- /dev/null +++ b/claude-plugins/spring-tools/evals/beans-explains-wiring/prompt.md @@ -0,0 +1,8 @@ +--- +max_turns: 12 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [smoke, beans] +expected_outcome: Claude answers from the language server's bean index - the bean testController of type com.example.demo.apiversioning.TestController is a @RestController defined in TestController.java and is not injected anywhere else in the project. +--- + +Where is the bean testController defined in this project, what is its type, and is it injected anywhere? diff --git a/claude-plugins/spring-tools/evals/create-project-routes-to-skill/graders/skill-fired.md b/claude-plugins/spring-tools/evals/create-project-routes-to-skill/graders/skill-fired.md new file mode 100644 index 0000000000..9d47dfa211 --- /dev/null +++ b/claude-plugins/spring-tools/evals/create-project-routes-to-skill/graders/skill-fired.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Skill +input_match: '"skill"\s*:\s*"(?:[\w-]+:)?create-spring-boot-project"' +--- diff --git a/claude-plugins/spring-tools/evals/create-project-routes-to-skill/prompt.md b/claude-plugins/spring-tools/evals/create-project-routes-to-skill/prompt.md new file mode 100644 index 0000000000..25467020b8 --- /dev/null +++ b/claude-plugins/spring-tools/evals/create-project-routes-to-skill/prompt.md @@ -0,0 +1,9 @@ +--- +max_turns: 8 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [routing] +description: Routing only - Bash is not granted in eval runs, so the skill cannot download from start.spring.io here; this case checks that a scaffolding request reaches the create-spring-boot-project skill at all. +expected_outcome: Claude invokes the create-spring-boot-project skill for the request (it may then report that it cannot run curl in this session). +--- + +Create a new Spring Boot project called inventory-service with Spring Web and Spring Data JPA, using Maven and Java 21, in a folder named inventory-service. diff --git a/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md b/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md new file mode 100644 index 0000000000..c9968393db --- /dev/null +++ b/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md @@ -0,0 +1,4 @@ +--- +type: regex +pattern: GET[^\n]{0,40}/greeting|/greeting[^\n]{0,40}GET +--- diff --git a/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md b/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md new file mode 100644 index 0000000000..99bb3a17c6 --- /dev/null +++ b/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md @@ -0,0 +1,4 @@ +--- +type: regex +pattern: TestController +--- diff --git a/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md b/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md new file mode 100644 index 0000000000..5bcbceff5e --- /dev/null +++ b/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Skill +input_match: '"skill"\s*:\s*"(?:[\w-]+:)?endpoints"' +--- diff --git a/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md b/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md new file mode 100644 index 0000000000..4e50dc35d5 --- /dev/null +++ b/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getRequestMappings +--- diff --git a/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/prompt.md b/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/prompt.md new file mode 100644 index 0000000000..96def9f9fa --- /dev/null +++ b/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/prompt.md @@ -0,0 +1,8 @@ +--- +max_turns: 12 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [smoke, endpoints] +expected_outcome: Claude lists the single endpoint of the workspace project, GET /greeting (API version 1) handled by TestController.sayHello(), from the language server's request mappings. +--- + +Which HTTP endpoints does this project expose, and which controller methods handle them? diff --git a/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/answers-the-question.md b/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/answers-the-question.md new file mode 100644 index 0000000000..1fca23e95f --- /dev/null +++ b/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/answers-the-question.md @@ -0,0 +1,5 @@ +--- +type: regex +pattern: tuple +flags: i +--- diff --git a/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-project-lookup.md b/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-project-lookup.md new file mode 100644 index 0000000000..b12b709973 --- /dev/null +++ b/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-project-lookup.md @@ -0,0 +1,7 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getProjectList +min: 0 +max: 0 +arm: both +--- diff --git a/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md b/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md new file mode 100644 index 0000000000..a01eeac9f7 --- /dev/null +++ b/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md @@ -0,0 +1,7 @@ +--- +type: tool_used +tool: Skill +min: 0 +max: 0 +arm: both +--- diff --git a/claude-plugins/spring-tools/evals/ignores-unrelated-request/prompt.md b/claude-plugins/spring-tools/evals/ignores-unrelated-request/prompt.md new file mode 100644 index 0000000000..93655f0fae --- /dev/null +++ b/claude-plugins/spring-tools/evals/ignores-unrelated-request/prompt.md @@ -0,0 +1,8 @@ +--- +max_turns: 5 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [smoke, negative-control] +expected_outcome: Claude answers the question directly without invoking any Spring Tools skill or MCP tool. +--- + +Explain the difference between a Python list and a tuple in two sentences. diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md new file mode 100644 index 0000000000..d2dcab6358 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__captureLogicalStructureBaseline +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md new file mode 100644 index 0000000000..170dd5ccb6 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__clearLogicalStructureBaseline +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-changed.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-changed.md new file mode 100644 index 0000000000..6618d1afa7 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-changed.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__fileChanged +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-deleted.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-deleted.md new file mode 100644 index 0000000000..29ea0fa0f8 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-deleted.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__fileDeleted +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-beans-by-type.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-beans-by-type.md new file mode 100644 index 0000000000..0347b762ab --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-beans-by-type.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__findBeansByType +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md new file mode 100644 index 0000000000..a66c7bf3ad --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__findComponentsByStereotype +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md new file mode 100644 index 0000000000..136a64d818 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__findRequestMappingsByMethod +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-bean-details.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-bean-details.md new file mode 100644 index 0000000000..f9fcc6c85a --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-bean-details.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getBeanDetails +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-generations.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-generations.md new file mode 100644 index 0000000000..45872f1f99 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-generations.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getGenerations +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md new file mode 100644 index 0000000000..322d78f92a --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getLatestBootVersionsFromMavenRepo +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md new file mode 100644 index 0000000000..3f69a0ed31 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getListOfComponentsAndTheirStereotypes +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md new file mode 100644 index 0000000000..9ba5d2348b --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getLogicalStructureBaselineHistory +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md new file mode 100644 index 0000000000..966f78af48 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getLogicalStructureChanges +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure.md new file mode 100644 index 0000000000..c1c984d795 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getLogicalStructure +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-project-list.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-project-list.md new file mode 100644 index 0000000000..36a7ae4b7b --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-project-list.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getProjectList +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-releases.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-releases.md new file mode 100644 index 0000000000..7b076b677b --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-releases.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getReleases +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md new file mode 100644 index 0000000000..d28e8430a7 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getResolvedProjectClasspath +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md new file mode 100644 index 0000000000..e65867a865 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getSpringBootVersion +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md new file mode 100644 index 0000000000..ba53b0d7cf --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getStereotypesList +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md new file mode 100644 index 0000000000..bd93ef5c1c --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getStructureDependencies +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md new file mode 100644 index 0000000000..06d5446aca --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getUpcomingReleases +--- diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/prompt.md b/claude-plugins/spring-tools/evals/mcp-tools-covered/prompt.md new file mode 100644 index 0000000000..86ca10aaac --- /dev/null +++ b/claude-plugins/spring-tools/evals/mcp-tools-covered/prompt.md @@ -0,0 +1,14 @@ +--- +max_turns: 40 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [smoke, mcp-coverage] +expected_outcome: The agent calls every listed Spring Tools MCP tool at least once and summarizes the checked areas without editing files. +--- + +This eval runs against an isolated mock Spring Tools server. Call every MCP tool listed below at least once, using `sf7-validation` as the IDE project name and `spring-boot` as the Spring IO project slug where those parameters apply. For required type, bean, HTTP method, stereotype, and file-path arguments, use `org.example.Service`, `service`, `GET`, `Controller`, and `/tmp/spring-tools-eval/Probe.java` as appropriate. Use each tool's schema for any optional arguments. + +Call the project discovery, diagnostics, information, component, endpoint, structure, Spring release, workspace refresh, and file-notification tools, including the tools that capture or clear a logical-structure baseline. The mocked calls are isolated and are safe for this eval. Do not edit project files. After the calls, briefly summarize which categories you checked. + +The required tool calls are: + +`getProjectList`, `getProjectDiagnostics`, `getSpringBootVersion`, `getJavaVersion`, `getResolvedProjectClasspath`, `getBeanDetails`, `getBeanUsageInfo`, `findBeansByType`, `getRequestMappings`, `findRequestMappingsByMethod`, `getStereotypesList`, `getListOfComponentsAndTheirStereotypes`, `findComponentsByStereotype`, `getLogicalStructure`, `getStructureDependencies`, `captureLogicalStructureBaseline`, `clearLogicalStructureBaseline`, `getLogicalStructureChanges`, `getLogicalStructureBaselineHistory`, `getReleases`, `getGenerations`, `getUpcomingReleases`, `getLatestReleaseInformation`, `getLatestBootVersionsFromMavenRepo`, `fileChanged`, `fileDeleted`, and `refreshWorkspace`. diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/_tools.json b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/_tools.json new file mode 100644 index 0000000000..d439ec1e0e --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/_tools.json @@ -0,0 +1,500 @@ +{ + "tools": [ + { + "name": "getLogicalStructure", + "description": "Returns the logical structure of the given project as a tree, the same structure that the Spring Tools\nlogical structure view renders in VSCode and Eclipse.\nThe tree groups the components of the project by their stereotypes (and by application modules for Spring Modulith projects),\nso it shows how the application is organized logically instead of by files and folders.\nEach node carries a display label, an icon identifier, a stable node id, the source location of the element it\nrepresents, and its child nodes, which is everything a client needs to render the tree itself.\nOptionally, dependencies of the project (ids from getStructureDependencies) can be included: their components\nthen appear in the tree as if they were the project's own.\nUse getProjectList to obtain valid project names. Use getStereotypesList or getListOfComponentsAndTheirStereotypes\nif you need the flat stereotype information instead of the tree.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + }, + "dependencies": { + "type": "array", + "items": { + "type": "string" + }, + "description": "ids of dependencies to include, from getStructureDependencies().id - none when omitted" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "getStereotypesList", + "description": "This function provides information about all the stereotype definitions that are defined and available in the given project\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "getJavaVersion", + "description": "Returns the Java/JRE version configured for the project's classpath.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "findBeansByType", + "description": "Find all beans that match a specific type.\nThis is useful for finding all implementations of an interface or all beans of a certain class.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + }, + "typeName": { + "type": "string", + "description": "the fully qualified type name to search for" + } + }, + "required": [ + "projectName", + "typeName" + ] + } + }, + { + "name": "getResolvedProjectClasspath", + "description": "Returns non-system binary classpath entries for the project (resolved JARs) with versions from build tooling.\nEach Library.name is the classpath entry path (often a local .m2 or Gradle cache path), not necessarily a Maven coordinate; use it to see exact resolved artifacts.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "getBeanUsageInfo", + "description": "Get detailed information about a specific bean, including where it's defined and all places where it's injected.\nThis helps understand bean usage and dependencies across the application.\nReturns information for all beans with the given name (there may be multiple beans with the same name in different contexts).\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + }, + "beanName": { + "type": "string", + "description": "the name of the bean to analyze" + } + }, + "required": [ + "projectName", + "beanName" + ] + } + }, + { + "name": "getRequestMappings", + "description": "Get all REST endpoints/request mappings defined in the project.\nThis includes endpoints from @RequestMapping, @GetMapping, @PostMapping, @PutMapping, @DeleteMapping, @PatchMapping annotations,\nas well as HttpExchange interfaces.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "refreshWorkspace", + "description": "Notifies the MCP Server to refresh the entire workspace (e.g., after a git checkout or pull).", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": {}, + "required": [] + } + }, + { + "name": "getGenerations", + "description": "Get support generation windows (OSS and commercial end dates) for a Spring project from the live Spring IO API.\nFor the current GA line's support dates tied to the latest release only, prefer getLatestReleaseInformation instead.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Spring IO API project slug, e.g. \"spring-boot\", \"spring-framework\". Same semantics as getReleases project parameter.\n" + } + }, + "required": [ + "project" + ] + } + }, + { + "name": "getStructureDependencies", + "description": "Lists the dependencies of the given project that can be included in its logical structure (see getLogicalStructure):\nother projects of the workspace it depends on, and its libraries, identified by group and artifact id where known.\nThe components of an included library show up in the logical structure if they sit within the project's main\napplication package, as for an included workspace project.\nUse getProjectList to obtain valid project names.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "findComponentsByStereotype", + "description": "Find all Spring components by stereotype (Controller, Service, Repository, Component, Entity, etc.).\nReturns all components that have the specified stereotype.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + }, + "stereotypeName": { + "type": "string", + "description": "the stereotype name to filter by (e.g., 'Controller', 'Service', 'Repository', 'Entity')" + } + }, + "required": [ + "projectName", + "stereotypeName" + ] + } + }, + { + "name": "getListOfComponentsAndTheirStereotypes", + "description": "This function returns a list of classes or components from the given project and lists the stereotypes that each class or component has.\nThis way you can identify, for example, all components from a specific stereotype (e.g. all data repositories, all services, all entities, and so on)\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "fileChanged", + "description": "Notifies the MCP Server that a file has been created or modified on disk so it can update its internal index and diagnostics.", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "filePath": { + "type": "string", + "description": "Absolute path to the file" + } + }, + "required": [ + "filePath" + ] + } + }, + { + "name": "getBeanDetails", + "description": "Returns indexed Spring beans for one workspace Java project, including injection points where the index exposes them.\nUse getProjectList to obtain valid project names. For a single named bean or type-scoped queries, prefer getBeanUsageInfo or findBeansByType.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "getUpcomingReleases", + "description": "Get upcoming Spring ecosystem releases from the Spring release calendar API (date range from today for calendar.window.days).\nNeither getReleases nor getLatestReleaseInformation provide this calendar view; use this for forward-looking dates.\nCalendar base URL is workspace setting boot-java.io.calendar-api.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": {}, + "required": [] + } + }, + { + "name": "findRequestMappingsByMethod", + "description": "Find request mappings by HTTP method (GET, POST, PUT, DELETE, PATCH, etc.).\nReturns all endpoints that handle the specified HTTP method.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + }, + "httpMethod": { + "type": "string", + "description": "the HTTP method to filter by (e.g., 'GET', 'POST', 'PUT', 'DELETE', 'PATCH')" + } + }, + "required": [ + "projectName", + "httpMethod" + ] + } + }, + { + "name": "getProjectDiagnostics", + "description": "Returns all current Spring Tools diagnostics or problems or validations (errors, warnings, infos, hints) for a specific project.\nDiagnostics are produced by the Spring Tools language server during indexing and validation and cover Java sources,\nSpring Boot configuration files (application*.properties, application*.yml, META-INF/spring.factories) and the Spring Boot version in the build file.\nEach entry identifies the source file, the exact source location, the severity, and the message.\nOnly diagnostics known to Spring Tools are included; general Java compiler errors are not.\nUse getProjectList to obtain valid project names.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "getLatestBootVersionsFromMavenRepo", + "description": "Returns the latest available Spring Boot versions from the Maven repositories configured in the project's build file (pom.xml).\nUnlike getLatestReleaseInformation (which queries the Spring IO API), this reflects what is actually resolvable from the project's own configured Maven repositories, including private or enterprise repos.\nlatestPatchVersion, latestMinorVersion, and latestMajorVersion are the newest available versions newer than currentVersion for each respective level (null means already up-to-date at that level).\nOnly works for Maven (pom.xml) projects; returns null for Gradle projects or when Maven metadata cannot be fetched.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "getLogicalStructureBaselineHistory", + "description": "Lists the retained logical structure baseline snapshots for the given project, most recent first, each\nwith the git commit it was captured at (sha and message) and when it was captured. The most recent entry\nis always the one getLogicalStructureChanges compares against; how many are retained is controlled by\nthe boot-java.structure.baseline-history-size setting (10 by default). Useful to see recent history or\nto recognize which commit a highlighted diff is being compared against.\nUse getProjectList to obtain valid project names.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "fileDeleted", + "description": "Notifies the MCP Server that a file has been deleted on disk so it can update its internal index and diagnostics.", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "filePath": { + "type": "string", + "description": "Absolute path to the file" + } + }, + "required": [ + "filePath" + ] + } + }, + { + "name": "captureLogicalStructureBaseline", + "description": "Captures the current logical structure of the given project as a baseline snapshot, so that a later\ncall to getLogicalStructureChanges can show what changed in the logical structure of the project since\nthis point in time (e.g. after a refactoring or a series of edits).\nCapturing a new baseline replaces any previously captured baseline for the same project. Usually not\nneeded for git-backed projects: those get a baseline automatically on every commit, so that changes\nare always shown against the last commit - call this only to pin a baseline mid-branch, on top of\nuncommitted changes. Note such a manual baseline is replaced automatically by the next commit's.\nUse getProjectList to obtain valid project names.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "getProjectList", + "description": "Lists all Java projects in the workspace with Boot flag, JRE level and root directory.\nUse each Project.projectName when calling other tools; those tools match this name case-insensitively.\nProject.location is the absolute path of the project root (the directory holding pom.xml or build.gradle),\nso a source file belongs to the project whose location is the longest prefix of the file's path.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": {}, + "required": [] + } + }, + { + "name": "getLatestReleaseInformation", + "description": "Returns the latest general-availability (current) release for a Spring portfolio project plus OSS and commercial support end dates for that generation.\nData is resolved from the language server's Spring projects metadata (same source used for validations), not a live per-call HAL dump.\nUse getReleases when you need every release record; use getGenerations when you need all generation windows from the live Spring IO API; use getUpcomingReleases for scheduled upcoming releases from the calendar API.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "Spring project technical id, e.g. \"spring-boot\", \"spring-framework\", \"spring-data-jpa\" (not the IDE workspace project name).\n" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "getSpringBootVersion", + "description": "Returns the Spring Boot version for a workspace Java project (from the resolved classpath / BOM).\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "clearLogicalStructureBaseline", + "description": "Removes the captured logical structure baseline for the given project, if any, so getLogicalStructureChanges\nreports \"no baseline\" again until a new one is captured. Purely a manual undo: for a git-backed project\nwith automatic baseline capture enabled, a fresh baseline is captured again as soon as no source changes\nare pending, and otherwise at its next commit.\nUse getProjectList to obtain valid project names.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + } + }, + "required": [ + "projectName" + ] + } + }, + { + "name": "getReleases", + "description": "Get the full list of releases for a Spring project from the live Spring IO API (HAL).\nFor only the current GA release plus OSS/commercial support end dates for that line, prefer getLatestReleaseInformation instead.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Spring IO API project slug (path segment under /projects), e.g. \"spring-boot\", \"spring-framework\", \"spring-data-jpa\".\nThis is not the IDE workspace project name from getProjectList; it is the Spring portfolio project id from Spring IO.\nBase URL is configured as workspace setting boot-java.io.api (projects list URL; API base is derived from it).\n" + } + }, + "required": [ + "project" + ] + } + }, + { + "name": "getLogicalStructureChanges", + "description": "Shows what changed in the logical structure of the given project since the baseline captured via\ncaptureLogicalStructureBaseline (or automatically from the project's git history, if it's git-backed -\nsee the note on captureLogicalStructureBaseline), rendered as an ascii-art tree with +/-/~ markers for\nadded, removed and modified nodes.\nReturns a plain message instead of a tree when no baseline exists yet for the project, or when nothing\nchanged since it.\nUse getProjectList to obtain valid project names.\n", + "inputSchema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "type": "object", + "properties": { + "projectName": { + "type": "string", + "description": "IDE project name from getProjectList().projectName (case-insensitive match)" + }, + "includeUnchanged": { + "type": "boolean", + "description": "whether to also show the unchanged parts of the tree instead of collapsing them, defaults to false" + } + }, + "required": [ + "projectName" + ] + } + } + ] +} diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md new file mode 100644 index 0000000000..2356f25d03 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md @@ -0,0 +1,5 @@ +--- +expect: + projectName: sf7-validation +--- +"captured logical structure baseline for project 'sf7-validation' with 6 element(s) at 2026-10-09T17:06:31.957977932Z" diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md new file mode 100644 index 0000000000..12d2b6387b --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md @@ -0,0 +1,5 @@ +--- +expect: + projectName: sf7-validation +--- +"cleared the logical structure baseline for project 'sf7-validation'" diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileChanged.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileChanged.md new file mode 100644 index 0000000000..4c8a430739 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileChanged.md @@ -0,0 +1,5 @@ +--- +expect: + filePath: string +--- +"Done" diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileDeleted.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileDeleted.md new file mode 100644 index 0000000000..4c8a430739 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileDeleted.md @@ -0,0 +1,5 @@ +--- +expect: + filePath: string +--- +"Done" diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findBeansByType.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findBeansByType.md new file mode 100644 index 0000000000..4f9b78e0e9 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findBeansByType.md @@ -0,0 +1,23 @@ +--- +expect: + projectName: sf7-validation + typeName: string +--- +[ + { + "name": "testController", + "type": "com.example.demo.apiversioning.TestController", + "annotations": [ + "org.springframework.web.bind.annotation.RestController", + "org.springframework.stereotype.Controller", + "org.springframework.web.bind.annotation.ResponseBody", + "org.springframework.stereotype.Component", + "org.springframework.stereotype.Indexed" + ], + "sourceFile": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java", + "startLine": 7, + "startColumn": 13, + "endLine": 7, + "endColumn": 27 + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md new file mode 100644 index 0000000000..ec059ba4b4 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md @@ -0,0 +1,13 @@ +--- +expect: + projectName: sf7-validation + stereotypeName: string +--- +[ + { + "name": "com.example.demo.apiversioning.TestController", + "stereotypes": [ + "Controller" + ] + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md new file mode 100644 index 0000000000..5fd88124e1 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md @@ -0,0 +1,24 @@ +--- +expect: + projectName: sf7-validation + httpMethod: string +--- +[ + { + "path": "/greeting", + "httpMethods": [ + "GET" + ], + "contentTypes": [], + "acceptTypes": [], + "version": "1", + "controllerName": "testController", + "controllerType": "com.example.demo.apiversioning.TestController", + "methodSignature": "com.example.demo.apiversioning.TestController.sayHello() : java.lang.String", + "sourceFile": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java", + "startLine": 7, + "startColumn": 13, + "endLine": 7, + "endColumn": 27 + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanDetails.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanDetails.md new file mode 100644 index 0000000000..37adba4ac5 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanDetails.md @@ -0,0 +1,515 @@ +--- +expect: + projectName: sf7-validation +--- +[ + { + "name": "testController", + "type": "com.example.demo.apiversioning.TestController", + "location": { + "range": { + "end": { + "character": 27, + "line": 7 + }, + "start": { + "character": 13, + "line": 7 + } + }, + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java" + }, + "injectionPoints": [], + "supertypes": [ + "java.lang.Object" + ], + "annotations": [ + { + "annotationName": "RestController", + "annotationType": "org.springframework.web.bind.annotation.RestController", + "attributes": {}, + "location": { + "range": { + "end": { + "character": 15, + "line": 6 + }, + "start": { + "character": 0, + "line": 6 + } + }, + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java" + }, + "metaAnnotation": false + }, + { + "annotationName": "Controller", + "annotationType": "org.springframework.stereotype.Controller", + "attributes": {}, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "ResponseBody", + "annotationType": "org.springframework.web.bind.annotation.ResponseBody", + "attributes": {}, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "Component", + "annotationType": "org.springframework.stereotype.Component", + "attributes": {}, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "Indexed", + "annotationType": "org.springframework.stereotype.Indexed", + "attributes": {}, + "location": null, + "metaAnnotation": true + } + ], + "symbolLabel": "@+ 'testController' (@RestController <: @Controller, @Component) TestController", + "children": [ + { + "path": "/greeting", + "httpMethods": [ + "GET" + ], + "contentTypes": null, + "acceptTypes": null, + "version": "1", + "methodSignature": "com.example.demo.apiversioning.TestController.sayHello() : java.lang.String", + "contentHash": "42a21e32ee2e", + "children": [], + "documentSymbol": { + "children": null, + "deprecated": null, + "detail": null, + "kind": "Method", + "name": "@/greeting -- GET - Version: 1", + "range": { + "end": { + "character": 47, + "line": 9 + }, + "start": { + "character": 1, + "line": 9 + } + }, + "selectionRange": { + "end": { + "character": 47, + "line": 9 + }, + "start": { + "character": 1, + "line": 9 + } + }, + "tags": null + } + } + ], + "configuration": false, + "contentHash": null, + "documentSymbol": { + "children": null, + "deprecated": null, + "detail": null, + "kind": "Class", + "name": "@+ 'testController' (@RestController <: @Controller, @Component) TestController", + "range": { + "end": { + "character": 27, + "line": 7 + }, + "start": { + "character": 13, + "line": 7 + } + }, + "selectionRange": { + "end": { + "character": 27, + "line": 7 + }, + "start": { + "character": 13, + "line": 7 + } + }, + "tags": null + } + }, + { + "name": "sf7ValidationApplication", + "type": "com.example.demo.Sf7ValidationApplication", + "location": { + "range": { + "end": { + "character": 37, + "line": 6 + }, + "start": { + "character": 13, + "line": 6 + } + }, + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/Sf7ValidationApplication.java" + }, + "injectionPoints": [], + "supertypes": [ + "java.lang.Object" + ], + "annotations": [ + { + "annotationName": "SpringBootApplication", + "annotationType": "org.springframework.boot.autoconfigure.SpringBootApplication", + "attributes": {}, + "location": { + "range": { + "end": { + "character": 22, + "line": 5 + }, + "start": { + "character": 0, + "line": 5 + } + }, + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/Sf7ValidationApplication.java" + }, + "metaAnnotation": false + }, + { + "annotationName": "SpringBootConfiguration", + "annotationType": "org.springframework.boot.SpringBootConfiguration", + "attributes": {}, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "EnableAutoConfiguration", + "annotationType": "org.springframework.boot.autoconfigure.EnableAutoConfiguration", + "attributes": {}, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "ComponentScan", + "annotationType": "org.springframework.context.annotation.ComponentScan", + "attributes": { + "excludeFilters": [ + { + "name": "@Filter(type = public static final [unresolved] org.springframework.context.annotation.FilterType CUSTOM, classes = {TypeExcludeFilter.class})", + "location": null + }, + { + "name": "@Filter(type = public static final [unresolved] org.springframework.context.annotation.FilterType CUSTOM, classes = {AutoConfigurationExcludeFilter.class})", + "location": null + } + ] + }, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "Configuration", + "annotationType": "org.springframework.context.annotation.Configuration", + "attributes": {}, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "Indexed", + "annotationType": "org.springframework.stereotype.Indexed", + "attributes": {}, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "AutoConfigurationPackage", + "annotationType": "org.springframework.boot.autoconfigure.AutoConfigurationPackage", + "attributes": {}, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "Import", + "annotationType": "org.springframework.context.annotation.Import", + "attributes": { + "value": [ + { + "name": "org.springframework.boot.autoconfigure.AutoConfigurationImportSelector", + "location": null + } + ] + }, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "Component", + "annotationType": "org.springframework.stereotype.Component", + "attributes": {}, + "location": null, + "metaAnnotation": true + } + ], + "symbolLabel": "@+ 'sf7ValidationApplication' (@SpringBootApplication <: @SpringBootConfiguration, @Configuration, @Component) Sf7ValidationApplication", + "children": [], + "configuration": true, + "contentHash": null, + "documentSymbol": { + "children": null, + "deprecated": null, + "detail": null, + "kind": "Class", + "name": "@+ 'sf7ValidationApplication' (@SpringBootApplication <: @SpringBootConfiguration, @Configuration, @Component) Sf7ValidationApplication", + "range": { + "end": { + "character": 37, + "line": 6 + }, + "start": { + "character": 13, + "line": 6 + } + }, + "selectionRange": { + "end": { + "character": 37, + "line": 6 + }, + "start": { + "character": 13, + "line": 6 + } + }, + "tags": null + } + }, + { + "name": "webConfig", + "type": "com.example.demo.apiversioning.WebConfig", + "location": { + "range": { + "end": { + "character": 22, + "line": 7 + }, + "start": { + "character": 13, + "line": 7 + } + }, + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/WebConfig.java" + }, + "injectionPoints": [], + "supertypes": [ + "org.springframework.web.servlet.config.annotation.WebMvcConfigurer", + "java.lang.Object" + ], + "annotations": [ + { + "annotationName": "Configuration", + "annotationType": "org.springframework.context.annotation.Configuration", + "attributes": {}, + "location": { + "range": { + "end": { + "character": 14, + "line": 6 + }, + "start": { + "character": 0, + "line": 6 + } + }, + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/WebConfig.java" + }, + "metaAnnotation": false + }, + { + "annotationName": "Component", + "annotationType": "org.springframework.stereotype.Component", + "attributes": {}, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "Indexed", + "annotationType": "org.springframework.stereotype.Indexed", + "attributes": {}, + "location": null, + "metaAnnotation": true + } + ], + "symbolLabel": "@+ 'webConfig' (@Configuration <: @Component) WebConfig", + "children": [ + { + "configType": "WEB_CONFIG", + "pathPrefix": null, + "pathPrefixPredicate": null, + "versionSupportStrategies": [ + "Request Header: X-API-Version" + ], + "supportedVersions": [], + "versionParser": "org.springframework.web.accept.SemanticApiVersionParser", + "location": { + "range": { + "end": { + "character": 22, + "line": 7 + }, + "start": { + "character": 13, + "line": 7 + } + }, + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/WebConfig.java" + }, + "children": [], + "empty": false, + "versionSupportStrategiesWithRanges": [ + { + "versioningStrategy": "Request Header: X-API-Version", + "range": { + "end": { + "character": 46, + "line": 11 + }, + "start": { + "character": 2, + "line": 11 + } + } + } + ] + } + ], + "configuration": true, + "contentHash": null, + "documentSymbol": { + "children": null, + "deprecated": null, + "detail": null, + "kind": "Class", + "name": "@+ 'webConfig' (@Configuration <: @Component) WebConfig", + "range": { + "end": { + "character": 22, + "line": 7 + }, + "start": { + "character": 13, + "line": 7 + } + }, + "selectionRange": { + "end": { + "character": 22, + "line": 7 + }, + "start": { + "character": 13, + "line": 7 + } + }, + "tags": null + } + }, + { + "name": "config", + "type": "com.example.demo.Config", + "location": { + "range": { + "end": { + "character": 19, + "line": 5 + }, + "start": { + "character": 13, + "line": 5 + } + }, + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/Config.java" + }, + "injectionPoints": [], + "supertypes": [ + "java.lang.Object" + ], + "annotations": [ + { + "annotationName": "Configuration", + "annotationType": "org.springframework.context.annotation.Configuration", + "attributes": {}, + "location": { + "range": { + "end": { + "character": 14, + "line": 4 + }, + "start": { + "character": 0, + "line": 4 + } + }, + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/Config.java" + }, + "metaAnnotation": false + }, + { + "annotationName": "Component", + "annotationType": "org.springframework.stereotype.Component", + "attributes": {}, + "location": null, + "metaAnnotation": true + }, + { + "annotationName": "Indexed", + "annotationType": "org.springframework.stereotype.Indexed", + "attributes": {}, + "location": null, + "metaAnnotation": true + } + ], + "symbolLabel": "@+ 'config' (@Configuration <: @Component) Config", + "children": [], + "configuration": true, + "contentHash": null, + "documentSymbol": { + "children": null, + "deprecated": null, + "detail": null, + "kind": "Class", + "name": "@+ 'config' (@Configuration <: @Component) Config", + "range": { + "end": { + "character": 19, + "line": 5 + }, + "start": { + "character": 13, + "line": 5 + } + }, + "selectionRange": { + "end": { + "character": 19, + "line": 5 + }, + "start": { + "character": 13, + "line": 5 + } + }, + "tags": null + } + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md new file mode 100644 index 0000000000..1f11ed17ee --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md @@ -0,0 +1,28 @@ +--- +expect: + projectName: sf7-validation + beanName: string +--- +[ + { + "beanName": "testController", + "beanType": "com.example.demo.apiversioning.TestController", + "definition": { + "name": "testController", + "type": "com.example.demo.apiversioning.TestController", + "annotations": [ + "org.springframework.web.bind.annotation.RestController", + "org.springframework.stereotype.Controller", + "org.springframework.web.bind.annotation.ResponseBody", + "org.springframework.stereotype.Component", + "org.springframework.stereotype.Indexed" + ], + "sourceFile": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java", + "startLine": 7, + "startColumn": 13, + "endLine": 7, + "endColumn": 27 + }, + "injectionPoints": [] + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getGenerations.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getGenerations.md new file mode 100644 index 0000000000..cbfa8d3549 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getGenerations.md @@ -0,0 +1,114 @@ +--- +expect: + project: string +--- +[ + { + "name": "1.5.x", + "initialReleaseDate": "2017-01-31", + "ossSupportEndDate": "2019-08-31", + "commercialSupportEndDate": "2020-11-30" + }, + { + "name": "2.0.x", + "initialReleaseDate": "2018-03-31", + "ossSupportEndDate": "2019-03-31", + "commercialSupportEndDate": "2020-06-30" + }, + { + "name": "2.1.x", + "initialReleaseDate": "2018-10-31", + "ossSupportEndDate": "2019-10-31", + "commercialSupportEndDate": "2021-01-31" + }, + { + "name": "2.2.x", + "initialReleaseDate": "2019-10-31", + "ossSupportEndDate": "2020-10-31", + "commercialSupportEndDate": "2022-01-31" + }, + { + "name": "2.3.x", + "initialReleaseDate": "2020-05-31", + "ossSupportEndDate": "2021-05-31", + "commercialSupportEndDate": "2022-08-31" + }, + { + "name": "2.4.x", + "initialReleaseDate": "2020-11-30", + "ossSupportEndDate": "2021-11-30", + "commercialSupportEndDate": "2023-02-28" + }, + { + "name": "2.5.x", + "initialReleaseDate": "2021-05-31", + "ossSupportEndDate": "2022-05-31", + "commercialSupportEndDate": "2023-08-31" + }, + { + "name": "2.6.x", + "initialReleaseDate": "2021-11-30", + "ossSupportEndDate": "2022-11-30", + "commercialSupportEndDate": "2024-02-29" + }, + { + "name": "2.7.x", + "initialReleaseDate": "2022-05-31", + "ossSupportEndDate": "2023-06-30", + "commercialSupportEndDate": "2029-06-30" + }, + { + "name": "3.0.x", + "initialReleaseDate": "2022-11-30", + "ossSupportEndDate": "2023-12-31", + "commercialSupportEndDate": "2024-12-31" + }, + { + "name": "3.1.x", + "initialReleaseDate": "2023-05-31", + "ossSupportEndDate": "2024-06-30", + "commercialSupportEndDate": "2025-06-30" + }, + { + "name": "3.2.x", + "initialReleaseDate": "2023-11-30", + "ossSupportEndDate": "2024-12-31", + "commercialSupportEndDate": "2025-12-31" + }, + { + "name": "3.3.x", + "initialReleaseDate": "2024-05-31", + "ossSupportEndDate": "2025-06-30", + "commercialSupportEndDate": "2026-06-30" + }, + { + "name": "3.4.x", + "initialReleaseDate": "2024-11-30", + "ossSupportEndDate": "2025-12-31", + "commercialSupportEndDate": "2026-12-31" + }, + { + "name": "3.5.x", + "initialReleaseDate": "2025-05-31", + "ossSupportEndDate": "2026-06-30", + "commercialSupportEndDate": "2032-06-30" + }, + { + "name": "4.0.x", + "initialReleaseDate": "2025-11-30", + "ossSupportEndDate": "2026-12-31", + "commercialSupportEndDate": "2027-12-31" + }, + { + "name": "4.1.x", + "initialReleaseDate": "2026-06-30", + "ossSupportEndDate": "2027-07-31", + "commercialSupportEndDate": "2028-07-31" + }, + { + "name": "4.2.x", + "initialReleaseDate": "2026-11-30", + "ossSupportEndDate": "2027-12-31", + "commercialSupportEndDate": "2028-12-31" + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getJavaVersion.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getJavaVersion.md new file mode 100644 index 0000000000..9ae121a641 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getJavaVersion.md @@ -0,0 +1,5 @@ +--- +expect: + projectName: sf7-validation +--- +"25.0.3+9-LTS" diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md new file mode 100644 index 0000000000..a10deed2cc --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md @@ -0,0 +1,10 @@ +--- +expect: + projectName: sf7-validation +--- +{ + "currentVersion": "4.0.0", + "latestPatchVersion": "4.0.8", + "latestMinorVersion": "4.1.1", + "latestMajorVersion": null +} diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md new file mode 100644 index 0000000000..5c81bfea17 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md @@ -0,0 +1,10 @@ +--- +expect: + projectName: [spring-boot, spring-framework, spring-security, spring-data-jpa, spring-cloud] +--- +{ + "projectName": "spring-boot", + "version": "4.1.1", + "endOfOssSupport": "2027-07-31", + "endOfCommercialSupport": "2028-07-31" +} diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md new file mode 100644 index 0000000000..c80fd16ade --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md @@ -0,0 +1,30 @@ +--- +expect: + projectName: sf7-validation +--- +[ + { + "name": "com.example.demo.apiversioning.TestController", + "stereotypes": [ + "Controller" + ] + }, + { + "name": "com.example.demo.Sf7ValidationApplication", + "stereotypes": [ + "Configuration class" + ] + }, + { + "name": "com.example.demo.apiversioning.WebConfig", + "stereotypes": [ + "Configuration class" + ] + }, + { + "name": "com.example.demo.Config", + "stereotypes": [ + "Configuration class" + ] + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md new file mode 100644 index 0000000000..456d33c65a --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md @@ -0,0 +1,183 @@ +--- +expect: + projectName: sf7-validation +--- +{ + "nodeId": "sf7-validation", + "text": "sf7-validation", + "icon": "project", + "kind": "application", + "hover": null, + "contentHash": null, + "location": null, + "reference": null, + "javaElement": null, + "children": [ + { + "nodeId": "sf7-validation/Request Mappings (Spring Web)||jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json", + "text": "Request Mappings (Spring Web)", + "icon": "globe", + "kind": "stereotype", + "hover": "defined in: [jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json]", + "contentHash": null, + "location": null, + "reference": { + "uri": "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json", + "startLine": 76, + "startColumn": 2, + "endLine": 80, + "endColumn": 3 + }, + "javaElement": null, + "children": [ + { + "nodeId": "sf7-validation/Request Mappings (Spring Web)||jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json/@/greeting -- GET - Version: 1|file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java:10:15", + "text": "@/greeting -- GET - Version: 1", + "icon": "symbol-method", + "kind": "method", + "hover": null, + "contentHash": "42a21e32ee2e", + "location": { + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java", + "startLine": 10, + "startColumn": 15, + "endLine": 10, + "endColumn": 23 + }, + "reference": null, + "javaElement": null, + "children": [] + } + ] + }, + { + "nodeId": "sf7-validation/Configuration classes (Spring)||jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json", + "text": "Configuration classes (Spring)", + "icon": "gear", + "kind": "stereotype", + "hover": "defined in: [jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json]", + "contentHash": null, + "location": null, + "reference": { + "uri": "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json", + "startLine": 11, + "startColumn": 2, + "endLine": 15, + "endColumn": 3 + }, + "javaElement": null, + "children": [ + { + "nodeId": "sf7-validation/Configuration classes (Spring)||jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json/c.e.d.Sf7ValidationApplication|file:///workspace/sf7-validation/src/main/java/com/example/demo/Sf7ValidationApplication.java:6:13", + "text": "c.e.d.Sf7ValidationApplication", + "icon": "symbol-class", + "kind": "type", + "hover": null, + "contentHash": "4649b9d66720", + "location": { + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/Sf7ValidationApplication.java", + "startLine": 6, + "startColumn": 13, + "endLine": 6, + "endColumn": 37 + }, + "reference": null, + "javaElement": null, + "children": [] + }, + { + "nodeId": "sf7-validation/Configuration classes (Spring)||jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json/c.e.d.apiversioning.WebConfig|file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/WebConfig.java:7:13", + "text": "c.e.d.apiversioning.WebConfig", + "icon": "symbol-class", + "kind": "type", + "hover": null, + "contentHash": "ff4e3d3b9360", + "location": { + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/WebConfig.java", + "startLine": 7, + "startColumn": 13, + "endLine": 7, + "endColumn": 22 + }, + "reference": null, + "javaElement": null, + "children": [] + }, + { + "nodeId": "sf7-validation/Configuration classes (Spring)||jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json/c.e.d.Config|file:///workspace/sf7-validation/src/main/java/com/example/demo/Config.java:5:13", + "text": "c.e.d.Config", + "icon": "symbol-class", + "kind": "type", + "hover": null, + "contentHash": "43a82cd2187c", + "location": { + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/Config.java", + "startLine": 5, + "startColumn": 13, + "endLine": 5, + "endColumn": 19 + }, + "reference": null, + "javaElement": null, + "children": [] + } + ] + }, + { + "nodeId": "sf7-validation/Controllers (Spring Web)||jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json", + "text": "Controllers (Spring Web)", + "icon": "globe", + "kind": "stereotype", + "hover": "defined in: [jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json]", + "contentHash": null, + "location": null, + "reference": { + "uri": "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json", + "startLine": 68, + "startColumn": 2, + "endLine": 75, + "endColumn": 3 + }, + "javaElement": null, + "children": [ + { + "nodeId": "sf7-validation/Controllers (Spring Web)||jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json/c.e.d.apiversioning.TestController|file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java:7:13", + "text": "c.e.d.apiversioning.TestController", + "icon": "symbol-class", + "kind": "type", + "hover": null, + "contentHash": "f4e7620b2f6c", + "location": { + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java", + "startLine": 7, + "startColumn": 13, + "endLine": 7, + "endColumn": 27 + }, + "reference": null, + "javaElement": null, + "children": [ + { + "nodeId": "@/greeting -- GET - Version: 1|file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java:9:1", + "text": "@/greeting -- GET - Version: 1", + "icon": "symbol-method", + "kind": "member", + "hover": null, + "contentHash": "42a21e32ee2e", + "location": { + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java", + "startLine": 9, + "startColumn": 1, + "endLine": 9, + "endColumn": 47 + }, + "reference": null, + "javaElement": null, + "children": [] + } + ] + } + ] + } + ] +} diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md new file mode 100644 index 0000000000..6eb3a0840d --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md @@ -0,0 +1,12 @@ +--- +expect: + projectName: sf7-validation +--- +[ + { + "commitSha": null, + "commitMessage": null, + "capturedAt": "2026-10-09T17:06:31.957977932Z", + "elementCount": 6 + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md new file mode 100644 index 0000000000..36537636e9 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md @@ -0,0 +1,5 @@ +--- +expect: + projectName: sf7-validation +--- +"no changes detected in the logical structure of project 'sf7-validation' since the baseline snapshot" diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md new file mode 100644 index 0000000000..b400d6464b --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md @@ -0,0 +1,28 @@ +--- +expect: + projectName: sf7-validation +--- +[ + { + "uri": "file:/workspace/sf7-validation/pom.xml", + "startLine": 0, + "startColumn": 0, + "endLine": 0, + "endColumn": 1, + "severity": "info", + "message": "Newer minor version of Spring Boot available: 4.1.1", + "code": "BOOT_VERSION_VALIDATION_CODE", + "source": null + }, + { + "uri": "file:/workspace/sf7-validation/pom.xml", + "startLine": 0, + "startColumn": 0, + "endLine": 0, + "endColumn": 1, + "severity": "warning", + "message": "Newer patch version of Spring Boot available: 4.0.8", + "code": "BOOT_VERSION_VALIDATION_CODE", + "source": null + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectList.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectList.md new file mode 100644 index 0000000000..08d73a93b3 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectList.md @@ -0,0 +1,8 @@ +[ + { + "projectName": "sf7-validation", + "isSpringBootProject": true, + "javaVersion": "25.0.3+9-LTS", + "location": "/workspace/sf7-validation" + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getReleases.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getReleases.md new file mode 100644 index 0000000000..f7c8429f79 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getReleases.md @@ -0,0 +1,41 @@ +--- +expect: + project: string +--- +[ + { + "version": "3.5.16", + "status": "GENERAL_AVAILABILITY", + "current": false + }, + { + "version": "4.0.8", + "status": "GENERAL_AVAILABILITY", + "current": false + }, + { + "version": "4.0.9-SNAPSHOT", + "status": "SNAPSHOT", + "current": false + }, + { + "version": "4.1.1", + "status": "GENERAL_AVAILABILITY", + "current": true + }, + { + "version": "4.1.2-SNAPSHOT", + "status": "SNAPSHOT", + "current": false + }, + { + "version": "4.2.0-M2", + "status": "PRERELEASE", + "current": false + }, + { + "version": "4.2.0-SNAPSHOT", + "status": "SNAPSHOT", + "current": false + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getRequestMappings.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getRequestMappings.md new file mode 100644 index 0000000000..e2248e9a2f --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getRequestMappings.md @@ -0,0 +1,23 @@ +--- +expect: + projectName: sf7-validation +--- +[ + { + "path": "/greeting", + "httpMethods": [ + "GET" + ], + "contentTypes": [], + "acceptTypes": [], + "version": "1", + "controllerName": "testController", + "controllerType": "com.example.demo.apiversioning.TestController", + "methodSignature": "com.example.demo.apiversioning.TestController.sayHello() : java.lang.String", + "sourceFile": "file:///workspace/sf7-validation/src/main/java/com/example/demo/apiversioning/TestController.java", + "startLine": 7, + "startColumn": 13, + "endLine": 7, + "endColumn": 27 + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md new file mode 100644 index 0000000000..694efb1e65 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md @@ -0,0 +1,334 @@ +--- +expect: + projectName: sf7-validation +--- +[ + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-starter-actuator/4.0.0/spring-boot-starter-actuator-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-starter/4.0.0/spring-boot-starter-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-starter-logging/4.0.0/spring-boot-starter-logging-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/ch/qos/logback/logback-classic/1.5.21/logback-classic-1.5.21.jar", + "version": "1.5.21" + }, + { + "name": "~/.m2/repository/ch/qos/logback/logback-core/1.5.21/logback-core-1.5.21.jar", + "version": "1.5.21" + }, + { + "name": "~/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.25.2/log4j-to-slf4j-2.25.2.jar", + "version": "2.25.2" + }, + { + "name": "~/.m2/repository/org/apache/logging/log4j/log4j-api/2.25.2/log4j-api-2.25.2.jar", + "version": "2.25.2" + }, + { + "name": "~/.m2/repository/org/slf4j/jul-to-slf4j/2.0.17/jul-to-slf4j-2.0.17.jar", + "version": "2.0.17" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/4.0.0/spring-boot-autoconfigure-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/jakarta/annotation/jakarta.annotation-api/3.0.0/jakarta.annotation-api-3.0.0.jar", + "version": "3.0.0" + }, + { + "name": "~/.m2/repository/org/yaml/snakeyaml/2.5/snakeyaml-2.5.jar", + "version": "2.5" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-starter-micrometer-metrics/4.0.0/spring-boot-starter-micrometer-metrics-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-micrometer-metrics/4.0.0/spring-boot-micrometer-metrics-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-micrometer-observation/4.0.0/spring-boot-micrometer-observation-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-actuator-autoconfigure/4.0.0/spring-boot-actuator-autoconfigure-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-actuator/4.0.0/spring-boot-actuator-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-health/4.0.0/spring-boot-health-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot/4.0.0/spring-boot-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/io/micrometer/micrometer-observation/1.16.0/micrometer-observation-1.16.0.jar", + "version": "1.16.0" + }, + { + "name": "~/.m2/repository/io/micrometer/micrometer-commons/1.16.0/micrometer-commons-1.16.0.jar", + "version": "1.16.0" + }, + { + "name": "~/.m2/repository/io/micrometer/micrometer-jakarta9/1.16.0/micrometer-jakarta9-1.16.0.jar", + "version": "1.16.0" + }, + { + "name": "~/.m2/repository/io/micrometer/micrometer-core/1.16.0/micrometer-core-1.16.0.jar", + "version": "1.16.0" + }, + { + "name": "~/.m2/repository/org/hdrhistogram/HdrHistogram/2.2.2/HdrHistogram-2.2.2.jar", + "version": "2.2.2" + }, + { + "name": "~/.m2/repository/org/latencyutils/LatencyUtils/2.0.3/LatencyUtils-2.0.3.jar", + "version": "2.0.3" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-starter-web/4.0.0/spring-boot-starter-web-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-starter-jackson/4.0.0/spring-boot-starter-jackson-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-jackson/4.0.0/spring-boot-jackson-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/tools/jackson/core/jackson-databind/3.0.2/jackson-databind-3.0.2.jar", + "version": "3.0.2" + }, + { + "name": "~/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.20/jackson-annotations-2.20.jar", + "version": "2.20" + }, + { + "name": "~/.m2/repository/tools/jackson/core/jackson-core/3.0.2/jackson-core-3.0.2.jar", + "version": "3.0.2" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/4.0.0/spring-boot-starter-tomcat-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat-runtime/4.0.0/spring-boot-starter-tomcat-runtime-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-web-server/4.0.0/spring-boot-web-server-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/11.0.14/tomcat-embed-core-11.0.14.jar", + "version": "11.0.14" + }, + { + "name": "~/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/11.0.14/tomcat-embed-el-11.0.14.jar", + "version": "11.0.14" + }, + { + "name": "~/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/11.0.14/tomcat-embed-websocket-11.0.14.jar", + "version": "11.0.14" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-tomcat/4.0.0/spring-boot-tomcat-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-http-converter/4.0.0/spring-boot-http-converter-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-webmvc/4.0.0/spring-boot-webmvc-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-servlet/4.0.0/spring-boot-servlet-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/spring-core/7.0.1/spring-core-7.0.1.jar", + "version": "7.0.1" + }, + { + "name": "~/.m2/repository/commons-logging/commons-logging/1.3.5/commons-logging-1.3.5.jar", + "version": "1.3.5" + }, + { + "name": "~/.m2/repository/org/jspecify/jspecify/1.0.0/jspecify-1.0.0.jar", + "version": "1.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/spring-context/7.0.1/spring-context-7.0.1.jar", + "version": "7.0.1" + }, + { + "name": "~/.m2/repository/org/springframework/spring-aop/7.0.1/spring-aop-7.0.1.jar", + "version": "7.0.1" + }, + { + "name": "~/.m2/repository/org/springframework/spring-expression/7.0.1/spring-expression-7.0.1.jar", + "version": "7.0.1" + }, + { + "name": "~/.m2/repository/org/springframework/spring-beans/7.0.1/spring-beans-7.0.1.jar", + "version": "7.0.1" + }, + { + "name": "~/.m2/repository/org/springframework/spring-web/7.0.1/spring-web-7.0.1.jar", + "version": "7.0.1" + }, + { + "name": "~/.m2/repository/org/springframework/spring-webmvc/7.0.1/spring-webmvc-7.0.1.jar", + "version": "7.0.1" + }, + { + "name": "~/.m2/repository/org/springframework/spring-webflux/7.0.1/spring-webflux-7.0.1.jar", + "version": "7.0.1" + }, + { + "name": "~/.m2/repository/io/projectreactor/reactor-core/3.8.0/reactor-core-3.8.0.jar", + "version": "3.8.0" + }, + { + "name": "~/.m2/repository/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar", + "version": "1.0.4" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-starter-test/4.0.0/spring-boot-starter-test-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-test/4.0.0/spring-boot-test-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/org/springframework/boot/spring-boot-test-autoconfigure/4.0.0/spring-boot-test-autoconfigure-4.0.0.jar", + "version": "4.0.0" + }, + { + "name": "~/.m2/repository/com/jayway/jsonpath/json-path/2.9.0/json-path-2.9.0.jar", + "version": "2.9.0" + }, + { + "name": "~/.m2/repository/org/slf4j/slf4j-api/2.0.17/slf4j-api-2.0.17.jar", + "version": "2.0.17" + }, + { + "name": "~/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/4.0.4/jakarta.xml.bind-api-4.0.4.jar", + "version": "4.0.4" + }, + { + "name": "~/.m2/repository/jakarta/activation/jakarta.activation-api/2.1.4/jakarta.activation-api-2.1.4.jar", + "version": "2.1.4" + }, + { + "name": "~/.m2/repository/net/minidev/json-smart/2.6.0/json-smart-2.6.0.jar", + "version": "2.6.0" + }, + { + "name": "~/.m2/repository/net/minidev/accessors-smart/2.6.0/accessors-smart-2.6.0.jar", + "version": "2.6.0" + }, + { + "name": "~/.m2/repository/org/ow2/asm/asm/9.7.1/asm-9.7.1.jar", + "version": "9.7.1" + }, + { + "name": "~/.m2/repository/org/assertj/assertj-core/3.27.6/assertj-core-3.27.6.jar", + "version": "3.27.6" + }, + { + "name": "~/.m2/repository/net/bytebuddy/byte-buddy/1.17.8/byte-buddy-1.17.8.jar", + "version": "1.17.8" + }, + { + "name": "~/.m2/repository/org/awaitility/awaitility/4.3.0/awaitility-4.3.0.jar", + "version": "4.3.0" + }, + { + "name": "~/.m2/repository/org/hamcrest/hamcrest/3.0/hamcrest-3.0.jar", + "version": "3.0" + }, + { + "name": "~/.m2/repository/org/junit/jupiter/junit-jupiter/6.0.1/junit-jupiter-6.0.1.jar", + "version": "6.0.1" + }, + { + "name": "~/.m2/repository/org/junit/jupiter/junit-jupiter-api/6.0.1/junit-jupiter-api-6.0.1.jar", + "version": "6.0.1" + }, + { + "name": "~/.m2/repository/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar", + "version": "1.3.0" + }, + { + "name": "~/.m2/repository/org/junit/platform/junit-platform-commons/6.0.1/junit-platform-commons-6.0.1.jar", + "version": "6.0.1" + }, + { + "name": "~/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar", + "version": "1.1.2" + }, + { + "name": "~/.m2/repository/org/junit/jupiter/junit-jupiter-params/6.0.1/junit-jupiter-params-6.0.1.jar", + "version": "6.0.1" + }, + { + "name": "~/.m2/repository/org/junit/jupiter/junit-jupiter-engine/6.0.1/junit-jupiter-engine-6.0.1.jar", + "version": "6.0.1" + }, + { + "name": "~/.m2/repository/org/junit/platform/junit-platform-engine/6.0.1/junit-platform-engine-6.0.1.jar", + "version": "6.0.1" + }, + { + "name": "~/.m2/repository/org/mockito/mockito-core/5.20.0/mockito-core-5.20.0.jar", + "version": "5.20.0" + }, + { + "name": "~/.m2/repository/net/bytebuddy/byte-buddy-agent/1.17.8/byte-buddy-agent-1.17.8.jar", + "version": "1.17.8" + }, + { + "name": "~/.m2/repository/org/objenesis/objenesis/3.3/objenesis-3.3.jar", + "version": "3.3" + }, + { + "name": "~/.m2/repository/org/mockito/mockito-junit-jupiter/5.20.0/mockito-junit-jupiter-5.20.0.jar", + "version": "5.20.0" + }, + { + "name": "~/.m2/repository/org/skyscreamer/jsonassert/1.5.3/jsonassert-1.5.3.jar", + "version": "1.5.3" + }, + { + "name": "~/.m2/repository/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar", + "version": "0.0.20131108.vaadin1" + }, + { + "name": "~/.m2/repository/org/springframework/spring-test/7.0.1/spring-test-7.0.1.jar", + "version": "7.0.1" + }, + { + "name": "~/.m2/repository/org/xmlunit/xmlunit-core/2.10.4/xmlunit-core-2.10.4.jar", + "version": "2.10.4" + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md new file mode 100644 index 0000000000..9075b0c23f --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md @@ -0,0 +1,16 @@ +--- +expect: + projectName: sf7-validation +--- +{ + "build": 0, + "major": 4, + "minor": 0, + "patch": 0, + "preRelease": false, + "qualifier": null, + "qualifierNumber": 0, + "release": true, + "releaseType": "RELEASE", + "snapshot": false +} diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStereotypesList.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStereotypesList.md new file mode 100644 index 0000000000..8b49378db4 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStereotypesList.md @@ -0,0 +1,405 @@ +--- +expect: + projectName: sf7-validation +--- +[ + { + "assignments": [ + { + "target": "jakarta.persistence.AttributeConverter" + }, + { + "target": "javax.persistence.AttributeConverter" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/jpa-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Attribute Converter", + "groups": [ + "jpa" + ], + "identifier": "jpa.AttributeConverter", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "jakarta.persistence.Embeddable" + }, + { + "target": "javax.persistence.Embeddable" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/jpa-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Embeddable", + "groups": [ + "jpa" + ], + "identifier": "jpa.Embeddable", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "jakarta.persistence.Entity" + }, + { + "target": "javax.persistence.Entity" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/jpa-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Entity", + "groups": [ + "jpa" + ], + "identifier": "jpa.Entity", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "jakarta.persistence.MappedSuperclass" + }, + { + "target": "javax.persistence.MappedSuperclass" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/jpa-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Mapped Superclass", + "groups": [ + "jpa" + ], + "identifier": "jpa.MappedSuperclass", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.context.annotation.Configuration" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Configuration class", + "groups": [ + "spring" + ], + "identifier": "spring.Configuration", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.context.ApplicationListener" + }, + { + "target": "org.springframework.context.event.EventListener" + }, + { + "target": "org.springframework.data.rest.core.event.AbstractRepositoryEventListener" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Event Listener", + "groups": [ + "spring" + ], + "identifier": "spring.EventListener", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.format.Formatter" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Formatter", + "groups": [ + "spring" + ], + "identifier": "spring.Formatter", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.stereotype.Service" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Service", + "groups": [ + "spring", + "ddd" + ], + "identifier": "spring.Service", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.validation.Validator" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Validator", + "groups": [ + "spring" + ], + "identifier": "spring.Validator", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.aot.hint.RuntimeHintsRegistrar" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Runtime Hints", + "groups": [ + "spring" + ], + "identifier": "spring.aot.RuntimeHints", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.boot.context.properties.ConfigurationProperties" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Configuration Properties", + "groups": [ + "spring.boot" + ], + "identifier": "spring.boot.ConfigurationProperties", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.boot.jackson.JsonMixin" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "JSON Mixin", + "groups": [ + "spring.boot", + "spring.web.rest" + ], + "identifier": "spring.boot.JsonMixin", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.data.repository.Repository" + }, + { + "target": "org.springframework.data.repository.RepositoryDefinition" + }, + { + "target": "org.springframework.stereotype.Repository" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Repository", + "groups": [ + "spring" + ], + "identifier": "spring.data.Repository", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.data.rest.core.config.Projection" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Projection", + "groups": [ + "spring.data" + ], + "identifier": "spring.data.rest.Projection", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.hateoas.RepresentationModel" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Representation Model", + "groups": [ + "spring.web.rest.hypermedia" + ], + "identifier": "spring.hateoas.RepresentationModel", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.hateoas.server.RepresentationModelProcessor" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Representation Model Processor", + "groups": [ + "spring.web.rest.hypermedia" + ], + "identifier": "spring.hateoas.RepresentationModelProcessor", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.messaging.handler.annotation.MessageMapping" + }, + { + "target": "org.springframework.kafka.annotation.KafkaListener" + }, + { + "target": "org.springframework.amqp.rabbit.annotation.RabbitListener" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Message Listener", + "groups": [ + "spring.messaging" + ], + "identifier": "spring.messaging.MessageListener", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.data.rest.webmvc.BasePathAwareController" + }, + { + "target": "org.springframework.stereotype.Controller" + }, + { + "target": "org.springframework.web.bind.annotation.RestController" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Controller", + "groups": [ + "spring.web" + ], + "identifier": "spring.web.Controller", + "inherited": true, + "priority": 0 + } + }, + { + "assignments": [ + { + "target": "org.springframework.web.bind.annotation.RequestMapping" + } + ], + "sources": [ + "jar:nested:/plugin/language-server/2.5.0/spring-boot-language-server-standalone-exec.jar/!BOOT-INF/lib/spring-boot-language-server-2.5.0-SNAPSHOT.jar!/stereotype-defaults/spring-jmolecules-stereotypes.json" + ], + "stereotype": { + "displayName": "Request Mappings", + "groups": [ + "spring.web" + ], + "identifier": "spring.web.RequestMapping", + "inherited": true, + "priority": 0 + } + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md new file mode 100644 index 0000000000..a1e07e116b --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md @@ -0,0 +1,536 @@ +--- +expect: + projectName: sf7-validation +--- +[ + { + "id": "gav:commons-logging:commons-logging", + "kind": "JAR", + "displayName": "commons-logging", + "groupId": "commons-logging", + "artifactId": "commons-logging", + "version": "1.3.5", + "projectName": null, + "location": "~/.m2/repository/commons-logging/commons-logging/1.3.5/commons-logging-1.3.5.jar" + }, + { + "id": "gav:org.hdrhistogram:HdrHistogram", + "kind": "JAR", + "displayName": "HdrHistogram", + "groupId": "org.hdrhistogram", + "artifactId": "HdrHistogram", + "version": "2.2.2", + "projectName": null, + "location": "~/.m2/repository/org/hdrhistogram/HdrHistogram/2.2.2/HdrHistogram-2.2.2.jar" + }, + { + "id": "gav:com.fasterxml.jackson.core:jackson-annotations", + "kind": "JAR", + "displayName": "jackson-annotations", + "groupId": "com.fasterxml.jackson.core", + "artifactId": "jackson-annotations", + "version": "2.20", + "projectName": null, + "location": "~/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.20/jackson-annotations-2.20.jar" + }, + { + "id": "gav:tools.jackson.core:jackson-core", + "kind": "JAR", + "displayName": "jackson-core", + "groupId": "tools.jackson.core", + "artifactId": "jackson-core", + "version": "3.0.2", + "projectName": null, + "location": "~/.m2/repository/tools/jackson/core/jackson-core/3.0.2/jackson-core-3.0.2.jar" + }, + { + "id": "gav:tools.jackson.core:jackson-databind", + "kind": "JAR", + "displayName": "jackson-databind", + "groupId": "tools.jackson.core", + "artifactId": "jackson-databind", + "version": "3.0.2", + "projectName": null, + "location": "~/.m2/repository/tools/jackson/core/jackson-databind/3.0.2/jackson-databind-3.0.2.jar" + }, + { + "id": "gav:jakarta.annotation:jakarta.annotation-api", + "kind": "JAR", + "displayName": "jakarta.annotation-api", + "groupId": "jakarta.annotation", + "artifactId": "jakarta.annotation-api", + "version": "3.0.0", + "projectName": null, + "location": "~/.m2/repository/jakarta/annotation/jakarta.annotation-api/3.0.0/jakarta.annotation-api-3.0.0.jar" + }, + { + "id": "gav:org.jspecify:jspecify", + "kind": "JAR", + "displayName": "jspecify", + "groupId": "org.jspecify", + "artifactId": "jspecify", + "version": "1.0.0", + "projectName": null, + "location": "~/.m2/repository/org/jspecify/jspecify/1.0.0/jspecify-1.0.0.jar" + }, + { + "id": "gav:org.slf4j:jul-to-slf4j", + "kind": "JAR", + "displayName": "jul-to-slf4j", + "groupId": "org.slf4j", + "artifactId": "jul-to-slf4j", + "version": "2.0.17", + "projectName": null, + "location": "~/.m2/repository/org/slf4j/jul-to-slf4j/2.0.17/jul-to-slf4j-2.0.17.jar" + }, + { + "id": "gav:org.latencyutils:LatencyUtils", + "kind": "JAR", + "displayName": "LatencyUtils", + "groupId": "org.latencyutils", + "artifactId": "LatencyUtils", + "version": "2.0.3", + "projectName": null, + "location": "~/.m2/repository/org/latencyutils/LatencyUtils/2.0.3/LatencyUtils-2.0.3.jar" + }, + { + "id": "gav:org.apache.logging.log4j:log4j-api", + "kind": "JAR", + "displayName": "log4j-api", + "groupId": "org.apache.logging.log4j", + "artifactId": "log4j-api", + "version": "2.25.2", + "projectName": null, + "location": "~/.m2/repository/org/apache/logging/log4j/log4j-api/2.25.2/log4j-api-2.25.2.jar" + }, + { + "id": "gav:org.apache.logging.log4j:log4j-to-slf4j", + "kind": "JAR", + "displayName": "log4j-to-slf4j", + "groupId": "org.apache.logging.log4j", + "artifactId": "log4j-to-slf4j", + "version": "2.25.2", + "projectName": null, + "location": "~/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.25.2/log4j-to-slf4j-2.25.2.jar" + }, + { + "id": "gav:ch.qos.logback:logback-classic", + "kind": "JAR", + "displayName": "logback-classic", + "groupId": "ch.qos.logback", + "artifactId": "logback-classic", + "version": "1.5.21", + "projectName": null, + "location": "~/.m2/repository/ch/qos/logback/logback-classic/1.5.21/logback-classic-1.5.21.jar" + }, + { + "id": "gav:ch.qos.logback:logback-core", + "kind": "JAR", + "displayName": "logback-core", + "groupId": "ch.qos.logback", + "artifactId": "logback-core", + "version": "1.5.21", + "projectName": null, + "location": "~/.m2/repository/ch/qos/logback/logback-core/1.5.21/logback-core-1.5.21.jar" + }, + { + "id": "gav:io.micrometer:micrometer-commons", + "kind": "JAR", + "displayName": "micrometer-commons", + "groupId": "io.micrometer", + "artifactId": "micrometer-commons", + "version": "1.16.0", + "projectName": null, + "location": "~/.m2/repository/io/micrometer/micrometer-commons/1.16.0/micrometer-commons-1.16.0.jar" + }, + { + "id": "gav:io.micrometer:micrometer-core", + "kind": "JAR", + "displayName": "micrometer-core", + "groupId": "io.micrometer", + "artifactId": "micrometer-core", + "version": "1.16.0", + "projectName": null, + "location": "~/.m2/repository/io/micrometer/micrometer-core/1.16.0/micrometer-core-1.16.0.jar" + }, + { + "id": "gav:io.micrometer:micrometer-jakarta9", + "kind": "JAR", + "displayName": "micrometer-jakarta9", + "groupId": "io.micrometer", + "artifactId": "micrometer-jakarta9", + "version": "1.16.0", + "projectName": null, + "location": "~/.m2/repository/io/micrometer/micrometer-jakarta9/1.16.0/micrometer-jakarta9-1.16.0.jar" + }, + { + "id": "gav:io.micrometer:micrometer-observation", + "kind": "JAR", + "displayName": "micrometer-observation", + "groupId": "io.micrometer", + "artifactId": "micrometer-observation", + "version": "1.16.0", + "projectName": null, + "location": "~/.m2/repository/io/micrometer/micrometer-observation/1.16.0/micrometer-observation-1.16.0.jar" + }, + { + "id": "gav:org.reactivestreams:reactive-streams", + "kind": "JAR", + "displayName": "reactive-streams", + "groupId": "org.reactivestreams", + "artifactId": "reactive-streams", + "version": "1.0.4", + "projectName": null, + "location": "~/.m2/repository/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar" + }, + { + "id": "gav:io.projectreactor:reactor-core", + "kind": "JAR", + "displayName": "reactor-core", + "groupId": "io.projectreactor", + "artifactId": "reactor-core", + "version": "3.8.0", + "projectName": null, + "location": "~/.m2/repository/io/projectreactor/reactor-core/3.8.0/reactor-core-3.8.0.jar" + }, + { + "id": "gav:org.slf4j:slf4j-api", + "kind": "JAR", + "displayName": "slf4j-api", + "groupId": "org.slf4j", + "artifactId": "slf4j-api", + "version": "2.0.17", + "projectName": null, + "location": "~/.m2/repository/org/slf4j/slf4j-api/2.0.17/slf4j-api-2.0.17.jar" + }, + { + "id": "gav:org.yaml:snakeyaml", + "kind": "JAR", + "displayName": "snakeyaml", + "groupId": "org.yaml", + "artifactId": "snakeyaml", + "version": "2.5", + "projectName": null, + "location": "~/.m2/repository/org/yaml/snakeyaml/2.5/snakeyaml-2.5.jar" + }, + { + "id": "gav:org.springframework:spring-aop", + "kind": "JAR", + "displayName": "spring-aop", + "groupId": "org.springframework", + "artifactId": "spring-aop", + "version": "7.0.1", + "projectName": null, + "location": "~/.m2/repository/org/springframework/spring-aop/7.0.1/spring-aop-7.0.1.jar" + }, + { + "id": "gav:org.springframework:spring-beans", + "kind": "JAR", + "displayName": "spring-beans", + "groupId": "org.springframework", + "artifactId": "spring-beans", + "version": "7.0.1", + "projectName": null, + "location": "~/.m2/repository/org/springframework/spring-beans/7.0.1/spring-beans-7.0.1.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot", + "kind": "JAR", + "displayName": "spring-boot", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot/4.0.0/spring-boot-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-actuator", + "kind": "JAR", + "displayName": "spring-boot-actuator", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-actuator", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-actuator/4.0.0/spring-boot-actuator-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-actuator-autoconfigure", + "kind": "JAR", + "displayName": "spring-boot-actuator-autoconfigure", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-actuator-autoconfigure", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-actuator-autoconfigure/4.0.0/spring-boot-actuator-autoconfigure-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-autoconfigure", + "kind": "JAR", + "displayName": "spring-boot-autoconfigure", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-autoconfigure", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/4.0.0/spring-boot-autoconfigure-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-health", + "kind": "JAR", + "displayName": "spring-boot-health", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-health", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-health/4.0.0/spring-boot-health-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-http-converter", + "kind": "JAR", + "displayName": "spring-boot-http-converter", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-http-converter", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-http-converter/4.0.0/spring-boot-http-converter-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-jackson", + "kind": "JAR", + "displayName": "spring-boot-jackson", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-jackson", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-jackson/4.0.0/spring-boot-jackson-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-micrometer-metrics", + "kind": "JAR", + "displayName": "spring-boot-micrometer-metrics", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-micrometer-metrics", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-micrometer-metrics/4.0.0/spring-boot-micrometer-metrics-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-micrometer-observation", + "kind": "JAR", + "displayName": "spring-boot-micrometer-observation", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-micrometer-observation", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-micrometer-observation/4.0.0/spring-boot-micrometer-observation-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-servlet", + "kind": "JAR", + "displayName": "spring-boot-servlet", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-servlet", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-servlet/4.0.0/spring-boot-servlet-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-starter", + "kind": "JAR", + "displayName": "spring-boot-starter", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-starter", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-starter/4.0.0/spring-boot-starter-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-starter-actuator", + "kind": "JAR", + "displayName": "spring-boot-starter-actuator", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-starter-actuator", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-starter-actuator/4.0.0/spring-boot-starter-actuator-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-starter-jackson", + "kind": "JAR", + "displayName": "spring-boot-starter-jackson", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-starter-jackson", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-starter-jackson/4.0.0/spring-boot-starter-jackson-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-starter-logging", + "kind": "JAR", + "displayName": "spring-boot-starter-logging", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-starter-logging", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-starter-logging/4.0.0/spring-boot-starter-logging-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-starter-micrometer-metrics", + "kind": "JAR", + "displayName": "spring-boot-starter-micrometer-metrics", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-starter-micrometer-metrics", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-starter-micrometer-metrics/4.0.0/spring-boot-starter-micrometer-metrics-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-starter-tomcat", + "kind": "JAR", + "displayName": "spring-boot-starter-tomcat", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-starter-tomcat", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/4.0.0/spring-boot-starter-tomcat-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-starter-tomcat-runtime", + "kind": "JAR", + "displayName": "spring-boot-starter-tomcat-runtime", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-starter-tomcat-runtime", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat-runtime/4.0.0/spring-boot-starter-tomcat-runtime-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-starter-web", + "kind": "JAR", + "displayName": "spring-boot-starter-web", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-starter-web", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-starter-web/4.0.0/spring-boot-starter-web-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-tomcat", + "kind": "JAR", + "displayName": "spring-boot-tomcat", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-tomcat", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-tomcat/4.0.0/spring-boot-tomcat-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-web-server", + "kind": "JAR", + "displayName": "spring-boot-web-server", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-web-server", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-web-server/4.0.0/spring-boot-web-server-4.0.0.jar" + }, + { + "id": "gav:org.springframework.boot:spring-boot-webmvc", + "kind": "JAR", + "displayName": "spring-boot-webmvc", + "groupId": "org.springframework.boot", + "artifactId": "spring-boot-webmvc", + "version": "4.0.0", + "projectName": null, + "location": "~/.m2/repository/org/springframework/boot/spring-boot-webmvc/4.0.0/spring-boot-webmvc-4.0.0.jar" + }, + { + "id": "gav:org.springframework:spring-context", + "kind": "JAR", + "displayName": "spring-context", + "groupId": "org.springframework", + "artifactId": "spring-context", + "version": "7.0.1", + "projectName": null, + "location": "~/.m2/repository/org/springframework/spring-context/7.0.1/spring-context-7.0.1.jar" + }, + { + "id": "gav:org.springframework:spring-core", + "kind": "JAR", + "displayName": "spring-core", + "groupId": "org.springframework", + "artifactId": "spring-core", + "version": "7.0.1", + "projectName": null, + "location": "~/.m2/repository/org/springframework/spring-core/7.0.1/spring-core-7.0.1.jar" + }, + { + "id": "gav:org.springframework:spring-expression", + "kind": "JAR", + "displayName": "spring-expression", + "groupId": "org.springframework", + "artifactId": "spring-expression", + "version": "7.0.1", + "projectName": null, + "location": "~/.m2/repository/org/springframework/spring-expression/7.0.1/spring-expression-7.0.1.jar" + }, + { + "id": "gav:org.springframework:spring-web", + "kind": "JAR", + "displayName": "spring-web", + "groupId": "org.springframework", + "artifactId": "spring-web", + "version": "7.0.1", + "projectName": null, + "location": "~/.m2/repository/org/springframework/spring-web/7.0.1/spring-web-7.0.1.jar" + }, + { + "id": "gav:org.springframework:spring-webflux", + "kind": "JAR", + "displayName": "spring-webflux", + "groupId": "org.springframework", + "artifactId": "spring-webflux", + "version": "7.0.1", + "projectName": null, + "location": "~/.m2/repository/org/springframework/spring-webflux/7.0.1/spring-webflux-7.0.1.jar" + }, + { + "id": "gav:org.springframework:spring-webmvc", + "kind": "JAR", + "displayName": "spring-webmvc", + "groupId": "org.springframework", + "artifactId": "spring-webmvc", + "version": "7.0.1", + "projectName": null, + "location": "~/.m2/repository/org/springframework/spring-webmvc/7.0.1/spring-webmvc-7.0.1.jar" + }, + { + "id": "gav:org.apache.tomcat.embed:tomcat-embed-core", + "kind": "JAR", + "displayName": "tomcat-embed-core", + "groupId": "org.apache.tomcat.embed", + "artifactId": "tomcat-embed-core", + "version": "11.0.14", + "projectName": null, + "location": "~/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/11.0.14/tomcat-embed-core-11.0.14.jar" + }, + { + "id": "gav:org.apache.tomcat.embed:tomcat-embed-el", + "kind": "JAR", + "displayName": "tomcat-embed-el", + "groupId": "org.apache.tomcat.embed", + "artifactId": "tomcat-embed-el", + "version": "11.0.14", + "projectName": null, + "location": "~/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/11.0.14/tomcat-embed-el-11.0.14.jar" + }, + { + "id": "gav:org.apache.tomcat.embed:tomcat-embed-websocket", + "kind": "JAR", + "displayName": "tomcat-embed-websocket", + "groupId": "org.apache.tomcat.embed", + "artifactId": "tomcat-embed-websocket", + "version": "11.0.14", + "projectName": null, + "location": "~/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/11.0.14/tomcat-embed-websocket-11.0.14.jar" + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md new file mode 100644 index 0000000000..5887782daa --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md @@ -0,0 +1,2186 @@ +[ + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Modulith 1.4.14", + "url": "https://github.com/spring-projects/spring-modulith/milestone/117" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Modulith 2.0.9", + "url": "https://github.com/spring-projects/spring-modulith/milestone/118" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Modulith 2.1.2", + "url": "https://github.com/spring-projects/spring-modulith/milestone/119" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Modulith 2.2.0-RC1", + "url": "https://github.com/spring-projects/spring-modulith/milestone/120" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Vault 4.1.1", + "url": "https://github.com/spring-projects/spring-vault/milestone/78" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Vault 4.0.4", + "url": "https://github.com/spring-projects/spring-vault/milestone/79" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Vault 3.1.4 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-vault" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Vault 2.3.5 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-vault" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Vault 3.2.2 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-vault" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Vault 4.0.4.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-vault" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Vault 4.1.1.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-vault" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Reactor 2025.0.8", + "url": "https://github.com/reactor/reactor/milestone/140" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Reactor 2026.0.0-RC1", + "url": "https://github.com/reactor/reactor/milestone/142" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor 2020.0.53 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor 2024.0.20 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "BlockHound 1.0.18.RELEASE", + "url": "https://github.com/reactor/BlockHound/milestone/22" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Reactor Core 3.8.8", + "url": "https://github.com/reactor/reactor-core/milestone/247" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Reactor Core 3.9.0-RC1", + "url": "https://github.com/reactor/reactor-core/milestone/248" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Core 3.4.45 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-core" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Core 3.7.21 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-core" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Circuitbreaker 5.0.4", + "url": "https://github.com/spring-cloud/spring-cloud-circuitbreaker/milestone/41" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Circuitbreaker 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-circuitbreaker/milestone/42" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Zookeeper 5.0.3", + "url": "https://github.com/spring-cloud/spring-cloud-zookeeper/milestone/64" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Zookeeper 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-zookeeper/milestone/66" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-12-09", + "title": "Spring Tools 5.5.0.RELEASE", + "url": "https://github.com/spring-projects/spring-tools/milestone/104" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2027-03-17", + "title": "Spring Tools 5.6.0.RELEASE", + "url": "https://github.com/spring-projects/spring-tools/milestone/105" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Plugin 4.2.0-RC1", + "url": "https://github.com/spring-projects/spring-plugin/milestone/24" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Geode 2.7.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-geode" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data R2dbc 1.5.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-r2dbc" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Batch 6.0.6", + "url": "https://github.com/spring-projects/spring-batch/milestone/181" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Batch 6.1.0-RC1", + "url": "https://github.com/spring-projects/spring-batch/milestone/184" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Integration 7.0.7", + "url": "https://github.com/spring-projects/spring-integration/milestone/399" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Integration 7.1.2", + "url": "https://github.com/spring-projects/spring-integration/milestone/400" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Integration 7.2.0-RC1", + "url": "https://github.com/spring-projects/spring-integration/milestone/401" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Integration 6.5.12 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-integration" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Integration 5.5.23 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-integration" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Integration 6.4.14 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-integration" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Integration 7.0.7.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-integration" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Integration 7.1.2.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-integration" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Stream 5.0.4", + "url": "https://github.com/spring-cloud/spring-cloud-stream/milestone/112" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Stream 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-stream/milestone/113" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Stream 3.2.13 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-stream" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Stream 4.3.5 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-stream" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Stream 4.2.8 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-stream" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Stream 5.0.4.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-stream" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Session 2021.2.9 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-session" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Session 3.4.11 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-session" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Session 3.5.9 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-session" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Openfeign 5.0.4", + "url": "https://github.com/spring-cloud/spring-cloud-openfeign/milestone/94" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Openfeign 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-openfeign/milestone/96" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Openfeign 4.2.7 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-openfeign" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Mongodb 5.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-mongodb/milestone/407" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Mongodb 5.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-mongodb/milestone/408" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Mongodb 5.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-mongodb/milestone/409" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Mongodb 5.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-mongodb" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Mongodb 5.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-mongodb" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Mongodb 4.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-mongodb" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Mongodb 4.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-mongodb" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Mongodb 3.4.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-mongodb" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Graphql 2.0.6", + "url": "https://github.com/spring-projects/spring-graphql/milestone/80" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Graphql 2.1.0-RC1", + "url": "https://github.com/spring-projects/spring-graphql/milestone/81" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Graphql 1.3.11 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-graphql" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Graphql 1.4.8 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-graphql" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Graphql 2.0.6.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-graphql" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Reactor Kotlin Extensions 1.3.3", + "url": "https://github.com/reactor/reactor-kotlin-extensions/milestone/33" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Kotlin Extensions 1.1.14 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-kotlin-extensions" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Kotlin Extensions 1.2.8 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-kotlin-extensions" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Reactor Addons 3.6.2", + "url": "https://github.com/reactor/reactor-addons/milestone/69" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Reactor Addons 3.7.0-RC1", + "url": "https://github.com/reactor/reactor-addons/milestone/72" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Addons 3.4.14 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-addons" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Addons 3.5.7 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-addons" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Redis 4.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-redis/milestone/390" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Redis 4.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-redis/milestone/391" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Redis 4.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-redis/milestone/392" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Redis 4.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-redis" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Redis 4.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-redis" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Redis 3.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-redis" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Redis 3.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-redis" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Redis 2.7.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-redis" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Ldap 4.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-ldap/milestone/322" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Ldap 4.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-ldap/milestone/323" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Ldap 4.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-ldap/milestone/324" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Ldap 4.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-ldap" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Ldap 4.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-ldap" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Ldap 3.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-ldap" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Ldap 3.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-ldap" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Ldap 2.7.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-ldap" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Rest 5.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-rest/milestone/384" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Rest 5.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-rest/milestone/385" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Rest 5.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-rest/milestone/386" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Rest 5.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-rest" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Rest 5.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-rest" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Rest 4.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-rest" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Rest 4.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-rest" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Rest 3.7.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-rest" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Authorization Server 1.4.13 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-authorization-server" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Authorization Server 1.5.10 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-authorization-server" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Task 5.0.3", + "url": "https://github.com/spring-cloud/spring-cloud-task/milestone/81" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Task 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-task/milestone/84" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Task 3.3.4 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-task" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Task 3.2.7 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-task" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Consul 5.0.4", + "url": "https://github.com/spring-cloud/spring-cloud-consul/milestone/82" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Consul 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-consul/milestone/84" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Jpa 4.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-jpa/milestone/407" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Jpa 4.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-jpa/milestone/408" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Jpa 4.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-jpa/milestone/409" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Jpa 4.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-jpa" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Jpa 4.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-jpa" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Jpa 3.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-jpa" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Jpa 3.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-jpa" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Jpa 2.7.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-jpa" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Grpc 1.1.2", + "url": "https://github.com/spring-projects/spring-grpc/milestone/22" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Kafka 4.0.8", + "url": "https://github.com/spring-projects/spring-kafka/milestone/300" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Kafka 4.1.2", + "url": "https://github.com/spring-projects/spring-kafka/milestone/301" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Kafka 4.2.0-RC1", + "url": "https://github.com/spring-projects/spring-kafka/milestone/303" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Kafka 2.9.16 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-kafka" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Kafka 2.8.14 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-kafka" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Kafka 3.3.18 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-kafka" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Kafka 4.1.2.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-kafka" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Kafka 4.0.8.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-kafka" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Bom 2026.0.2", + "url": "https://github.com/spring-projects/spring-data-bom/milestone/210" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Bom 2025.1.8", + "url": "https://github.com/spring-projects/spring-data-bom/milestone/211" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Bom 2026.1.0-RC1", + "url": "https://github.com/spring-projects/spring-data-bom/milestone/212" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Bom 2025.1.8.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-bom" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Bom 2026.0.2.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-bom" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Bom 2025.0.15 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-bom" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Bom 2024.1.17 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-bom" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Bom 2021.2.22 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-bom" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Commons 4.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-commons/milestone/415" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Commons 4.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-commons/milestone/416" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Commons 4.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-commons/milestone/417" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Commons 4.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-commons" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Commons 4.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-commons" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Commons 3.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-commons" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Commons 3.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-commons" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Commons 2.7.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-commons" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Commons 5.0.4", + "url": "https://github.com/spring-cloud/spring-cloud-commons/milestone/153" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Commons 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-commons/milestone/154" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Config 5.0.6", + "url": "https://github.com/spring-cloud/spring-cloud-config/milestone/159" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Config 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-config/milestone/160" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Config 4.3.6 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-config" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Config 4.2.10 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-config" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Config 3.1.16 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-config" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Config 5.0.6.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-config" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Keyvalue 4.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-keyvalue/milestone/351" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Keyvalue 4.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-keyvalue/milestone/352" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Keyvalue 4.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-keyvalue/milestone/353" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Keyvalue 4.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-keyvalue" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Keyvalue 4.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-keyvalue" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Keyvalue 3.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-keyvalue" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Keyvalue 3.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-keyvalue" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Keyvalue 2.7.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-keyvalue" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Rabbitmq 1.5.9 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-rabbitmq" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Micrometer 1.17.2", + "url": "https://github.com/micrometer-metrics/micrometer/milestone/349" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Micrometer 1.16.8", + "url": "https://github.com/micrometer-metrics/micrometer/milestone/350" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Micrometer 1.18.0-RC1", + "url": "https://github.com/micrometer-metrics/micrometer/milestone/351" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Micrometer 1.9.20 (Enterprise)", + "url": "https://enterprise.spring.io/projects/micrometer" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Micrometer 1.14.18 (Enterprise)", + "url": "https://enterprise.spring.io/projects/micrometer" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Micrometer 1.15.14 (Enterprise)", + "url": "https://enterprise.spring.io/projects/micrometer" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Restdocs 4.1.0-RC1", + "url": "https://github.com/spring-projects/spring-restdocs/milestone/55" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Release 2025.1.4", + "url": "https://github.com/spring-cloud/spring-cloud-release/milestone/173" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Release 2026.0.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-release/milestone/174" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Release 2025.0.5 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-release" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Release 2024.0.9 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-release" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Release 2021.0.16 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-release" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Release 2025.1.4.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-release" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Build 4.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-build/milestone/386" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Build 4.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-build/milestone/387" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Build 4.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-build/milestone/388" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Build 4.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-build" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Build 4.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-build" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Build 3.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-build" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Build 3.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-build" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Build 2.7.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-build" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Hateoas 3.1.3", + "url": "https://github.com/spring-projects/spring-hateoas/milestone/180" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Hateoas 3.0.6", + "url": "https://github.com/spring-projects/spring-hateoas/milestone/181" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Hateoas 3.2.0-RC1", + "url": "https://github.com/spring-projects/spring-hateoas/milestone/183" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Hateoas 2.5.5 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-hateoas" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Hateoas 2.4.4 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-hateoas" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Hateoas 3.0.6.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-hateoas" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Hateoas 3.1.3.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-hateoas" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Elasticsearch 6.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-elasticsearch/milestone/370" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Elasticsearch 6.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-elasticsearch/milestone/371" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Elasticsearch 6.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-elasticsearch/milestone/372" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Elasticsearch 6.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-elasticsearch" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Elasticsearch 6.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-elasticsearch" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Elasticsearch 5.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-elasticsearch" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Elasticsearch 5.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-elasticsearch" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Elasticsearch 4.4.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-elasticsearch" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Envers 2.7.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-envers" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Couchbase 6.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-couchbase/milestone/379" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Couchbase 6.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-couchbase/milestone/380" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Couchbase 6.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-couchbase/milestone/381" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Couchbase 6.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-couchbase" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Couchbase 6.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-couchbase" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Couchbase 5.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-couchbase" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Couchbase 5.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-couchbase" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Couchbase 4.4.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-couchbase" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Ldap 2.4.7 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-ldap" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Ldap 3.2.20 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-ldap" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Ldap 3.3.10 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-ldap" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Ws 5.1.0-RC1", + "url": "https://github.com/spring-projects/spring-ws/milestone/129" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Ws 5.0.3", + "url": "https://github.com/spring-projects/spring-ws/milestone/133" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Ws 4.1.5 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-ws" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Ws 4.0.20 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-ws" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Ws 3.1.10 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-ws" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Ws 5.0.3.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-ws" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Micrometer Tracing 1.6.8", + "url": "https://github.com/micrometer-metrics/tracing/milestone/152" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Micrometer Tracing 1.7.2", + "url": "https://github.com/micrometer-metrics/tracing/milestone/153" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Micrometer Tracing 1.8.0-RC1", + "url": "https://github.com/micrometer-metrics/tracing/milestone/155" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Micrometer Tracing 1.4.17 (Enterprise)", + "url": "https://enterprise.spring.io/projects/micrometer-tracing" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Micrometer Tracing 1.5.14 (Enterprise)", + "url": "https://enterprise.spring.io/projects/micrometer-tracing" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Kubernetes 5.0.4", + "url": "https://github.com/spring-cloud/spring-cloud-kubernetes/milestone/95" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Kubernetes 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-kubernetes/milestone/97" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Kubernetes 3.2.5 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-kubernetes" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Kubernetes 2.1.12 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-kubernetes" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Kubernetes 3.3.5 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-kubernetes" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Kubernetes 5.0.4.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-kubernetes" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Gateway 5.0.4", + "url": "https://github.com/spring-cloud/spring-cloud-gateway/milestone/130" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Gateway 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-gateway/milestone/132" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Gateway 4.3.7 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-gateway" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Gateway 4.2.11 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-gateway" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Gateway 3.1.15 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-gateway" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Gateway 5.0.4.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-gateway" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Vault 5.0.3", + "url": "https://github.com/spring-cloud/spring-cloud-vault/milestone/77" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Vault 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-vault/milestone/78" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Vault 4.2.6 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-vault" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Vault 3.1.6 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-vault" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Vault 4.3.5 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-vault" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Vault 5.0.3.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-vault" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Build 5.0.4", + "url": "https://github.com/spring-cloud/spring-cloud-build/milestone/74" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Build 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-build/milestone/77" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Build 4.3.6 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-build" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Build 4.2.8 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-build" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Build 3.1.17 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-build" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Build 5.0.4.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-build" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Netflix 5.0.3", + "url": "https://github.com/spring-cloud/spring-cloud-netflix/milestone/150" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Netflix 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-netflix/milestone/152" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Netflix 3.1.10 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-netflix" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Netflix 4.2.6 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-netflix" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Netflix 4.3.5 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-netflix" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Netflix 5.0.3.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-netflix" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Function 5.0.5", + "url": "https://github.com/spring-cloud/spring-cloud-function/milestone/66" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Function 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-function/milestone/67" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Function 4.3.6 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-function" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Function 4.2.9 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-function" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Function 3.2.18 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-function" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Cloud Function 5.0.5.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-cloud-function" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Boot 4.0.9", + "url": "https://github.com/spring-projects/spring-boot/milestone/430" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Boot 4.1.2", + "url": "https://github.com/spring-projects/spring-boot/milestone/432" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Boot 4.2.0-RC1", + "url": "https://github.com/spring-projects/spring-boot/milestone/433" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Boot 3.4.19 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-boot" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Boot 3.5.18 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-boot" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Boot 2.7.36 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-boot" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Boot 4.1.2.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-boot" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Boot 4.0.9.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-boot" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Neo4j 8.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-neo4j/milestone/418" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Neo4j 8.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-neo4j/milestone/419" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Neo4j 8.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-neo4j/milestone/420" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Neo4j 8.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-neo4j" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Neo4j 8.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-neo4j" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Neo4j 7.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-neo4j" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Neo4j 7.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-neo4j" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Neo4j 6.3.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-neo4j" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Reactor Pool 1.2.8", + "url": "https://github.com/reactor/reactor-pool/milestone/87" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Reactor Pool 1.3.0-RC1", + "url": "https://github.com/reactor/reactor-pool/milestone/89" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Pool 0.2.16 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-pool" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Pool 1.1.11 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-pool" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Relational 4.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-relational/milestone/287" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Relational 4.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-relational/milestone/288" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Relational 4.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-relational/milestone/289" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Relational 4.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-relational" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Relational 4.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-relational" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Relational 3.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-relational" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Relational 3.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-relational" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Relational 2.4.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-relational" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Cassandra 5.1.2 (2026.0.2)", + "url": "https://github.com/spring-projects/spring-data-cassandra/milestone/376" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Cassandra 5.0.8 (2025.1.8)", + "url": "https://github.com/spring-projects/spring-data-cassandra/milestone/377" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Data Cassandra 5.2.0-RC1 (2026.1.0)", + "url": "https://github.com/spring-projects/spring-data-cassandra/milestone/378" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Cassandra 5.0.8.1 (2025.1.8.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-cassandra" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Cassandra 5.1.2.1 (2026.0.2.1) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-cassandra" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Cassandra 4.5.15 (2025.0.15) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-cassandra" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Cassandra 4.4.17 (2024.1.17) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-cassandra" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Data Cassandra 3.4.22 (2021.2.22) (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-data-cassandra" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Amqp 4.1.2", + "url": "https://github.com/spring-projects/spring-amqp/milestone/279" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Amqp 4.0.6", + "url": "https://github.com/spring-projects/spring-amqp/milestone/280" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Amqp 4.2.0-RC1", + "url": "https://github.com/spring-projects/spring-amqp/milestone/282" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Amqp 2.4.20 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-amqp" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Amqp 3.2.14 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-amqp" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Amqp 4.0.6.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-amqp" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Amqp 4.1.2.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-amqp" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-09", + "title": "Spring Release Actions 0.0.9", + "url": "https://github.com/spring-io/spring-release-actions/milestone/9" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Kafka 1.3.27 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-kafka" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Security 5.7.27 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-security" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Security 5.8.29 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-security" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Security 6.4.20 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-security" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Security 6.5.13 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-security" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Bus 5.0.4", + "url": "https://github.com/spring-cloud/spring-cloud-bus/milestone/61" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Cloud Bus 5.1.0-RC1", + "url": "https://github.com/spring-cloud/spring-cloud-bus/milestone/63" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Pulsar 2.0.8", + "url": "https://github.com/spring-projects/spring-pulsar/milestone/78" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Reactor Netty 1.3.8", + "url": "https://github.com/reactor/reactor-netty/milestone/234" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Reactor Netty 1.4.0-RC1", + "url": "https://github.com/reactor/reactor-netty/milestone/236" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Netty 1.0.54 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-netty" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Reactor Netty 1.2.20 (Enterprise)", + "url": "https://enterprise.spring.io/projects/reactor-netty" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Framework 7.0.10", + "url": "https://github.com/spring-projects/spring-framework/milestone/436" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-10-22", + "title": "Spring Framework 7.1.0-RC1", + "url": "https://github.com/spring-projects/spring-framework/milestone/437" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Framework 5.2.27.RELEASE (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-framework" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Framework 5.3.51 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-framework" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Framework 6.0.33 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-framework" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Framework 6.1.30 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-framework" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Framework 6.2.21 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-framework" + }, + { + "allDay": true, + "backgroundColor": null, + "start": "2026-11-19", + "title": "Spring Framework 7.0.10.1 (Enterprise)", + "url": "https://enterprise.spring.io/projects/spring-framework" + } +] diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md new file mode 100644 index 0000000000..5a32621be4 --- /dev/null +++ b/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md @@ -0,0 +1 @@ +"Done" diff --git a/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md b/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md new file mode 100644 index 0000000000..4ce1d55c2f --- /dev/null +++ b/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md @@ -0,0 +1,4 @@ +--- +type: regex +pattern: sf7-validation[\s\S]*(Java\s*25|25\.0\.3)[\s\S]*4\.0\.0|sf7-validation[\s\S]*4\.0\.0[\s\S]*(Java\s*25|25\.0\.3) +--- diff --git a/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/skill-fired.md b/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/skill-fired.md new file mode 100644 index 0000000000..cc30263581 --- /dev/null +++ b/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/skill-fired.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Skill +input_match: '"skill"\s*:\s*"(?:[\w-]+:)?project-info"' +--- diff --git a/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/used-java-version-tool.md b/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/used-java-version-tool.md new file mode 100644 index 0000000000..d20753a58e --- /dev/null +++ b/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/used-java-version-tool.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getJavaVersion +--- diff --git a/claude-plugins/spring-tools/evals/project-info-reports-versions/prompt.md b/claude-plugins/spring-tools/evals/project-info-reports-versions/prompt.md new file mode 100644 index 0000000000..e10f8dfc30 --- /dev/null +++ b/claude-plugins/spring-tools/evals/project-info-reports-versions/prompt.md @@ -0,0 +1,8 @@ +--- +max_turns: 12 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [smoke, project-info] +expected_outcome: Claude reports the facts the language server knows about the workspace - one Spring Boot project named sf7-validation at /workspace/sf7-validation, built with Java 25 (25.0.3) and Spring Boot 4.0.0. +--- + +Which Spring Boot projects are in this workspace, where are they, and which Java and Spring Boot versions do they use? diff --git a/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md b/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md new file mode 100644 index 0000000000..40fd11cf78 --- /dev/null +++ b/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md @@ -0,0 +1,9 @@ +--- +type: llm +weight: 2 +--- + +The user asked what the Spring Tools diagnostic `JAVA_AUTOWIRED_CONSTRUCTOR` means and how to fix it. + +PASS if the response explains that Spring injects a class's single constructor implicitly (implicit constructor injection, since Spring Framework 4.3), so the `@Autowired` annotation on that constructor is unnecessary, and recommends removing the annotation (optionally noting that `@Autowired` is only needed to pick one of several constructors). +FAIL if the response says the annotation is required, describes a different problem (for example field injection or a missing bean), or gives no concrete fix. diff --git a/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md b/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md new file mode 100644 index 0000000000..ae11998cff --- /dev/null +++ b/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Read +input_match: explanations[/\\]JAVA_AUTOWIRED_CONSTRUCTOR\.md +--- diff --git a/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md b/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md new file mode 100644 index 0000000000..8c885be01d --- /dev/null +++ b/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Skill +input_match: '"skill"\s*:\s*"(?:[\w-]+:)?quickfix"' +--- diff --git a/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/prompt.md b/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/prompt.md new file mode 100644 index 0000000000..9ea14e7c29 --- /dev/null +++ b/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/prompt.md @@ -0,0 +1,8 @@ +--- +max_turns: 12 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [smoke, quickfix] +expected_outcome: Claude reads the plugin's playbook explanations/JAVA_AUTOWIRED_CONSTRUCTOR.md and explains that a class with a single constructor is autowired implicitly (Spring 4.3+), so the @Autowired annotation on it is redundant and can be removed - keeping it only when a second constructor exists. +--- + +Spring Tools reports the diagnostic code JAVA_AUTOWIRED_CONSTRUCTOR on the constructor of my Sf7ValidationApplication class. What does it mean and how do I fix it? diff --git a/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md b/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md new file mode 100644 index 0000000000..c713f57ff2 --- /dev/null +++ b/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md @@ -0,0 +1,5 @@ +--- +type: regex +pattern: re-?index|refresh +flags: i +--- diff --git a/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/skill-fired.md b/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/skill-fired.md new file mode 100644 index 0000000000..a896b7d359 --- /dev/null +++ b/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/skill-fired.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Skill +input_match: '"skill"\s*:\s*"(?:[\w-]+:)?refresh"' +--- diff --git a/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md b/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md new file mode 100644 index 0000000000..14d7997de3 --- /dev/null +++ b/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__refreshWorkspace +--- diff --git a/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/prompt.md b/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/prompt.md new file mode 100644 index 0000000000..343174425c --- /dev/null +++ b/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/prompt.md @@ -0,0 +1,8 @@ +--- +max_turns: 10 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [smoke, refresh] +expected_outcome: Claude asks the language server to re-index the workspace (refreshWorkspace) instead of merely explaining what a refresh is, and confirms that the index was refreshed. +--- + +I just switched git branches outside of this session and the Spring diagnostics look stale. Make the Spring Tools language server re-index the workspace from disk. diff --git a/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md b/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md new file mode 100644 index 0000000000..1113690d01 --- /dev/null +++ b/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Agent +input_match: spring-reviewer +--- diff --git a/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md b/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md new file mode 100644 index 0000000000..9b9afae120 --- /dev/null +++ b/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md @@ -0,0 +1,5 @@ +--- +type: regex +pattern: JAVA_AUTOWIRED_CONSTRUCTOR|@Autowired +flags: i +--- diff --git a/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md b/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md new file mode 100644 index 0000000000..8783e103fd --- /dev/null +++ b/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md @@ -0,0 +1,9 @@ +--- +type: llm +weight: 2 +--- + +The user asked for a review of the Spring Boot project `sf7-validation` by the plugin's reviewer agent. + +PASS if the response relays review findings that include the unnecessary `@Autowired` annotation on the `Sf7ValidationApplication` constructor (with the advice to remove it) and mentions that newer Spring Boot versions are available (4.0.8 patch and/or 4.1.1 minor), without inventing problems the project does not have. +FAIL if the response contains no concrete finding about this project, invents problems such as missing beans or failing tests, or says the review could not be performed. diff --git a/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md b/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md new file mode 100644 index 0000000000..8ba1ed9a23 --- /dev/null +++ b/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md @@ -0,0 +1,39 @@ +--- +expect: + projectName: sf7-validation +--- +[ + { + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/Sf7ValidationApplication.java", + "startLine": 7, + "startColumn": 1, + "endLine": 7, + "endColumn": 56, + "severity": "warning", + "message": "Unnecessary `@Autowired` annotation", + "code": "JAVA_AUTOWIRED_CONSTRUCTOR", + "source": "vscode-spring-boot" + }, + { + "uri": "file:/workspace/sf7-validation/pom.xml", + "startLine": 0, + "startColumn": 0, + "endLine": 0, + "endColumn": 1, + "severity": "info", + "message": "Newer minor version of Spring Boot available: 4.1.1", + "code": "BOOT_VERSION_VALIDATION_CODE", + "source": null + }, + { + "uri": "file:/workspace/sf7-validation/pom.xml", + "startLine": 0, + "startColumn": 0, + "endLine": 0, + "endColumn": 1, + "severity": "warning", + "message": "Newer patch version of Spring Boot available: 4.0.8", + "code": "BOOT_VERSION_VALIDATION_CODE", + "source": null + } +] diff --git a/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/prompt.md b/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/prompt.md new file mode 100644 index 0000000000..7b474fde4c --- /dev/null +++ b/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/prompt.md @@ -0,0 +1,9 @@ +--- +max_turns: 20 +timeout_seconds: 600 +allowed_tools: [Read, Glob, Grep, Skill, Agent] +tags: [agent] +expected_outcome: Claude delegates to the plugin's spring-reviewer subagent, which collects diagnostics, bean, endpoint and version information from the language server and returns a review with the redundant @Autowired constructor as the finding and the available Spring Boot updates as a recommendation; Claude relays that review. +--- + +Use the spring-reviewer agent to review this project and give me its findings. diff --git a/claude-plugins/spring-tools/evals/spring-review-skill/graders/skill-fired.md b/claude-plugins/spring-tools/evals/spring-review-skill/graders/skill-fired.md new file mode 100644 index 0000000000..50d31d38fe --- /dev/null +++ b/claude-plugins/spring-tools/evals/spring-review-skill/graders/skill-fired.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Skill +input_match: '"skill"\s*:\s*"(?:[\w-]+:)?spring-review"' +--- diff --git a/claude-plugins/spring-tools/evals/spring-review-skill/prompt.md b/claude-plugins/spring-tools/evals/spring-review-skill/prompt.md new file mode 100644 index 0000000000..9472dc2dee --- /dev/null +++ b/claude-plugins/spring-tools/evals/spring-review-skill/prompt.md @@ -0,0 +1,9 @@ +--- +max_turns: 16 +timeout_seconds: 600 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [skill] +expected_outcome: The agent loads the shared spring-review skill and follows its Spring Tools review workflow. +--- + +Use the spring-review skill to review the Spring Boot projects in this workspace. Report concrete findings and recommendations. diff --git a/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md b/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md new file mode 100644 index 0000000000..6d0356cdab --- /dev/null +++ b/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md @@ -0,0 +1,4 @@ +--- +type: regex +pattern: 2027-07-31|July 31,? 2027|31 July 2027 +--- diff --git a/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/names-both-versions.md b/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/names-both-versions.md new file mode 100644 index 0000000000..20d457a019 --- /dev/null +++ b/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/names-both-versions.md @@ -0,0 +1,4 @@ +--- +type: regex +pattern: 4\.0\.0[\s\S]*4\.1\.1|4\.1\.1[\s\S]*4\.0\.0 +--- diff --git a/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/skill-fired.md b/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/skill-fired.md new file mode 100644 index 0000000000..491a0312a2 --- /dev/null +++ b/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/skill-fired.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Skill +input_match: '"skill"\s*:\s*"(?:[\w-]+:)?spring-versions"' +--- diff --git a/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md b/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md new file mode 100644 index 0000000000..7c44225ae2 --- /dev/null +++ b/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getLatestReleaseInformation +--- diff --git a/claude-plugins/spring-tools/evals/spring-versions-checks-support/prompt.md b/claude-plugins/spring-tools/evals/spring-versions-checks-support/prompt.md new file mode 100644 index 0000000000..4422b4f577 --- /dev/null +++ b/claude-plugins/spring-tools/evals/spring-versions-checks-support/prompt.md @@ -0,0 +1,8 @@ +--- +max_turns: 12 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [smoke, versions] +expected_outcome: Claude compares the project's Spring Boot 4.0.0 with the latest release 4.1.1 reported by the language server, notes that the project is behind (4.0.8 is the latest patch) and gives the OSS support end date 2027-07-31 for the current generation. +--- + +Is this project on a current Spring Boot version? Tell me what it uses, what the latest release is, and how long the OSS support lasts. diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md new file mode 100644 index 0000000000..9b9afae120 --- /dev/null +++ b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md @@ -0,0 +1,5 @@ +--- +type: regex +pattern: JAVA_AUTOWIRED_CONSTRUCTOR|@Autowired +flags: i +--- diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md new file mode 100644 index 0000000000..a7b9af1ae4 --- /dev/null +++ b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md @@ -0,0 +1,9 @@ +--- +type: llm +weight: 2 +--- + +The response is a report of problems found in the Spring Boot project `sf7-validation`. + +PASS if the response reports an unnecessary or redundant `@Autowired` annotation on the constructor of `Sf7ValidationApplication` (a class with a single constructor does not need it) and says the annotation can be removed, and also mentions that a newer Spring Boot version is available (4.0.8 and/or 4.1.1). +FAIL if the response does not mention the `@Autowired` constructor problem, invents problems that are not in the diagnostics (for example missing dependencies or compilation errors), or only says that it cannot access the project. diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/skill-fired.md b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/skill-fired.md new file mode 100644 index 0000000000..83a415ddc7 --- /dev/null +++ b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/skill-fired.md @@ -0,0 +1,5 @@ +--- +type: tool_used +tool: Skill +input_match: '"skill"\s*:\s*"(?:[\w-]+:)?validate"' +--- diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md new file mode 100644 index 0000000000..0122024439 --- /dev/null +++ b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md @@ -0,0 +1,4 @@ +--- +type: tool_used +tool: mcp__plugin_spring-tools_spring-tools-mcp__getProjectDiagnostics +--- diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md new file mode 100644 index 0000000000..8ba1ed9a23 --- /dev/null +++ b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md @@ -0,0 +1,39 @@ +--- +expect: + projectName: sf7-validation +--- +[ + { + "uri": "file:///workspace/sf7-validation/src/main/java/com/example/demo/Sf7ValidationApplication.java", + "startLine": 7, + "startColumn": 1, + "endLine": 7, + "endColumn": 56, + "severity": "warning", + "message": "Unnecessary `@Autowired` annotation", + "code": "JAVA_AUTOWIRED_CONSTRUCTOR", + "source": "vscode-spring-boot" + }, + { + "uri": "file:/workspace/sf7-validation/pom.xml", + "startLine": 0, + "startColumn": 0, + "endLine": 0, + "endColumn": 1, + "severity": "info", + "message": "Newer minor version of Spring Boot available: 4.1.1", + "code": "BOOT_VERSION_VALIDATION_CODE", + "source": null + }, + { + "uri": "file:/workspace/sf7-validation/pom.xml", + "startLine": 0, + "startColumn": 0, + "endLine": 0, + "endColumn": 1, + "severity": "warning", + "message": "Newer patch version of Spring Boot available: 4.0.8", + "code": "BOOT_VERSION_VALIDATION_CODE", + "source": null + } +] diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/prompt.md b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/prompt.md new file mode 100644 index 0000000000..99be1712cb --- /dev/null +++ b/claude-plugins/spring-tools/evals/validate-finds-spring-problems/prompt.md @@ -0,0 +1,8 @@ +--- +max_turns: 15 +allowed_tools: [Read, Glob, Grep, Skill] +tags: [smoke, diagnostics] +expected_outcome: Claude runs the Spring Tools diagnostics for the workspace project and reports the redundant @Autowired constructor in Sf7ValidationApplication with the fix, plus the available Spring Boot updates. +--- + +Check this Spring Boot project for problems and tell me what I should fix. diff --git a/claude-plugins/spring-tools/skills/architecture/SKILL.md b/claude-plugins/spring-tools/skills/architecture/SKILL.md new file mode 100644 index 0000000000..93d5b59761 --- /dev/null +++ b/claude-plugins/spring-tools/skills/architecture/SKILL.md @@ -0,0 +1,30 @@ +--- +name: architecture +description: Use when a user or agent asks about the architecture, logical structure, layers, stereotypes or components of a Spring Boot project (all controllers, all repositories, aggregates, modules), or wants to know how the structure changed since a baseline or commit. Uses the spring-tools MCP server's logical structure and stereotype tools. +allowed-tools: + - Read + - mcp__plugin_spring-tools_spring-tools-mcp__getProjectList + - mcp__plugin_spring-tools_spring-tools-mcp__getLogicalStructure + - mcp__plugin_spring-tools_spring-tools-mcp__getStructureDependencies + - mcp__plugin_spring-tools_spring-tools-mcp__getStereotypesList + - mcp__plugin_spring-tools_spring-tools-mcp__findComponentsByStereotype + - mcp__plugin_spring-tools_spring-tools-mcp__getListOfComponentsAndTheirStereotypes + - mcp__plugin_spring-tools_spring-tools-mcp__captureLogicalStructureBaseline + - mcp__plugin_spring-tools_spring-tools-mcp__getLogicalStructureChanges + - mcp__plugin_spring-tools_spring-tools-mcp__getLogicalStructureBaselineHistory + - mcp__plugin_spring-tools_spring-tools-mcp__clearLogicalStructureBaseline +--- + +Answer architecture questions from the `spring-tools` MCP server. The language server classifies every Spring component with stereotypes (Controller, Service, Repository, Component, Entity, Aggregate, Module, ... as defined by the project's `spring-stereotype` or JMolecules metadata plus the built-ins) and renders them as the same logical structure tree that Spring Tools shows in VS Code and Eclipse. + +1. Resolve the project name with `getProjectList` (use the `projectName` field). Retry a few times while the list is still empty right after the session started. +2. Pick the tool that matches the question: + - "Show me the architecture / structure of the project" - `getLogicalStructure`. Present the tree top-down (modules or packages, then stereotype groups, then components). For large projects summarize each group with counts and only expand what the user asked about. + - "Does the structure include our other modules or dependencies?" - `getStructureDependencies` lists the workspace projects and libraries the project depends on; pass their `id` values to `getLogicalStructure` to fold their components into the tree when the user wants the wider picture. + - "Which stereotypes exist here?" - `getStereotypesList`; it also reveals custom stereotypes the project defines. + - "List all repositories / controllers / aggregates" - `findComponentsByStereotype` with the stereotype name. Use `getListOfComponentsAndTheirStereotypes` when you need every class with all of its stereotypes (e.g. to find classes that carry two roles). + - "What did this refactoring change structurally?" - before a larger change call `captureLogicalStructureBaseline`; afterwards `getLogicalStructureChanges` reports added, removed and moved components (pass `includeUnchanged: true` only when the user wants the full tree). For git-backed projects a baseline is derived from the last commit automatically, so `getLogicalStructureChanges` works without a capture as well. `getLogicalStructureBaselineHistory` lists retained snapshots with their commits; `clearLogicalStructureBaseline` discards a manual capture. +3. Read source files only to back a specific finding (e.g. show the class that violates a layering rule); tool output already contains file paths. +4. Combine with the `beans` skill for wiring between components, the `endpoints` skill for the HTTP surface of controllers, and the `validate` skill for stereotype- or structure-related problems reported by the language server. + +The index follows on-disk changes automatically (the language server watches the workspace), so the structure reflects the files as they are on disk. If a very recent edit is not reflected yet, wait a moment and call the tool again. diff --git a/claude-plugins/spring-tools/skills/beans/SKILL.md b/claude-plugins/spring-tools/skills/beans/SKILL.md new file mode 100644 index 0000000000..c0507ad04c --- /dev/null +++ b/claude-plugins/spring-tools/skills/beans/SKILL.md @@ -0,0 +1,22 @@ +--- +name: beans +description: Use when a user or agent asks how Spring beans are wired in a Spring Boot project - which beans exist, where a bean is defined, where it is injected, which beans implement an interface or match a type, or why a dependency cannot be resolved. Uses the spring-tools MCP server's bean index instead of grepping the sources. +allowed-tools: + - Read + - mcp__plugin_spring-tools_spring-tools-mcp__getProjectList + - mcp__plugin_spring-tools_spring-tools-mcp__getBeanDetails + - mcp__plugin_spring-tools_spring-tools-mcp__findBeansByType + - mcp__plugin_spring-tools_spring-tools-mcp__getBeanUsageInfo +--- + +Answer bean wiring questions from the Spring index of the `spring-tools` MCP server. The index knows every bean the language server found (stereotype-annotated classes, `@Bean` methods, configuration classes) together with their injection points, so prefer it over grepping the sources. + +1. Resolve the project name with `getProjectList` (use the `projectName` field; `location` is the project root, pick the project whose location contains the file the user is talking about). Retry a few times while the list is still empty right after the session started. +2. Pick the tool that matches the question: + - "Which beans are there / what does the application context contain?" - `getBeanDetails` with the project name. It returns every indexed bean with its type, defining element and injection points. Summarize by stereotype or package for large projects instead of listing everything. + - "Which beans implement `X` / which bean of type `X` will be injected?" - `findBeansByType` with the fully qualified type name. Several matches mean an `@Autowired` field of that type needs `@Qualifier`, `@Primary` or a `List`/`Map` injection. + - "Where is bean `foo` defined and where is it used?" - `getBeanUsageInfo` with the bean name. Bean names default to the decapitalized simple class name (`orderService` for `OrderService`) or the `@Bean` method name. +3. Read the defining source file only when the answer needs code (e.g. to show the constructor or the `@Bean` method); the tool output already contains file paths and line numbers. +4. When the question is about a missing or ambiguous dependency, cross-check with the `validate` skill - the language server reports codes such as `JAVA_AUTOWIRED_CONSTRUCTOR` or `JAVA_PUBLIC_BEAN_METHOD` for related problems. + +The index follows on-disk changes automatically (the language server watches the workspace), so results reflect files edited during the session. If a very recent edit is not reflected yet, wait a moment and call the tool again. diff --git a/claude-plugins/spring-tools/skills/endpoints/SKILL.md b/claude-plugins/spring-tools/skills/endpoints/SKILL.md new file mode 100644 index 0000000000..5ca346d029 --- /dev/null +++ b/claude-plugins/spring-tools/skills/endpoints/SKILL.md @@ -0,0 +1,20 @@ +--- +name: endpoints +description: Use when a user or agent asks which REST endpoints, request mappings, routes or HTTP APIs a Spring Boot project exposes, which controller handles a path or HTTP method, or wants an API inventory. Uses the spring-tools MCP server's request mapping index instead of grepping for mapping annotations. +allowed-tools: + - Read + - mcp__plugin_spring-tools_spring-tools-mcp__getProjectList + - mcp__plugin_spring-tools_spring-tools-mcp__getRequestMappings + - mcp__plugin_spring-tools_spring-tools-mcp__findRequestMappingsByMethod +--- + +Answer endpoint questions from the request mapping index of the `spring-tools` MCP server. It resolves class-level and method-level `@RequestMapping`, `@GetMapping`, `@PostMapping`, `@PutMapping`, `@DeleteMapping` and `@PatchMapping` annotations (including combined paths, HTTP methods, API versions and content types), so prefer it over grepping the sources. + +1. Resolve the project name with `getProjectList` (use the `projectName` field; `location` is the project root). Retry a few times while the list is still empty right after the session started. +2. Pick the tool that matches the question: + - "Which endpoints does the application expose?" / "Give me the API inventory" - `getRequestMappings` with the project name. Present the result as a table of HTTP method, path, handler class and method; group by controller for large projects. + - "Which endpoints accept `DELETE`?" / "Which handler serves `POST /orders`?" - `findRequestMappingsByMethod` with the project name and the HTTP method (`GET`, `POST`, `PUT`, `DELETE`, `PATCH`), then filter by path. +3. Read the handler source file only when the answer needs code (request parameters, response type, security annotations); the tool output already contains file paths and line numbers. +4. For endpoint problems the language server also validates (e.g. `@RequestMapping` on a class without `@Controller`, or conflicting API versions), use the `validate` skill and fix the reported codes. + +The index follows on-disk changes automatically (the language server watches the workspace), so a controller added during the session shows up without any refresh. If a very recent edit is not reflected yet, wait a moment and call the tool again. diff --git a/claude-plugins/spring-tools/skills/project-info/SKILL.md b/claude-plugins/spring-tools/skills/project-info/SKILL.md new file mode 100644 index 0000000000..dc018f7682 --- /dev/null +++ b/claude-plugins/spring-tools/skills/project-info/SKILL.md @@ -0,0 +1,18 @@ +--- +name: project-info +description: Use when a user or agent needs facts about the Spring Boot projects in the workspace - which projects exist and where they are, whether a directory is a Spring Boot project, the Java version, the Spring Boot version, or the resolved classpath (which library or version of a dependency is on it). Uses the spring-tools MCP server's project model instead of parsing build files by hand. +allowed-tools: + - mcp__plugin_spring-tools_spring-tools-mcp__getProjectList + - mcp__plugin_spring-tools_spring-tools-mcp__getJavaVersion + - mcp__plugin_spring-tools_spring-tools-mcp__getSpringBootVersion + - mcp__plugin_spring-tools_spring-tools-mcp__getResolvedProjectClasspath + - Skill(spring-tools:refresh) +--- + +Answer project and build questions from the project model of the `spring-tools` MCP server. The language server resolves every Maven (`pom.xml`) and Gradle (`build.gradle`, `build.gradle.kts`) project below the workspace directory, including dependencies from private repositories the build is configured for, so prefer it over reading build files or running the build. + +1. `getProjectList` returns one entry per project with `projectName`, `isSpringBootProject`, `javaVersion` and `location` (the project root directory). Use `location` to map a file path to its project (the longest matching prefix wins in multi-module workspaces). Retry a few times while the list is still empty right after the session started - the project model is being resolved, which can take a couple of minutes on a cold dependency cache. +2. `getJavaVersion` and `getSpringBootVersion` (workspace project name) answer "which Java / Spring Boot version does this project target?" precisely; the Spring Boot version is resolved from the classpath, not from the parent POM declaration, so it is correct for BOM-managed and Gradle projects as well. +3. `getResolvedProjectClasspath` lists the resolved dependency JARs with their paths. Use it to answer "is library X on the classpath?", "which version of X is actually used?" (read the version from the JAR file name) or "which starters does this project pull in?"; for a large classpath summarize by group instead of listing every JAR. +4. When a project you expect is missing - e.g. it was just created or checked out and the list has not caught up - use the `refresh` skill and call `getProjectList` again. The server also watches the workspace, so new `pom.xml`/`build.gradle` files are normally discovered within a second by themselves. +5. For version support questions continue with the `spring-versions` skill; for validation problems use the `validate` skill. diff --git a/claude-plugins/spring-tools/skills/spring-review/SKILL.md b/claude-plugins/spring-tools/skills/spring-review/SKILL.md new file mode 100644 index 0000000000..c7c7e2eb5e --- /dev/null +++ b/claude-plugins/spring-tools/skills/spring-review/SKILL.md @@ -0,0 +1,23 @@ +--- +name: spring-review +description: Reviews Spring Boot projects with Spring Tools diagnostics, bean wiring, endpoints, architecture and version insight. Use after editing a Spring Boot project or when asked for a Spring-aware review; read-only. +--- + +You are a Spring Boot reviewer. You review the current state of the Spring Boot projects in the workspace with the `spring-tools` MCP server and report findings; you never modify files. + +Work through these steps and keep tool output out of the report - summarize. + +1. `getProjectList` - note every project (`projectName`, `location`, `isSpringBootProject`, `javaVersion`). Retry a few times if the list is empty right after startup. Skip projects that are not Spring Boot projects unless the user asked about them. +2. `getProjectDiagnostics` per project. For each Spring diagnostic code read the fix playbook for that code - the `.md` files in the plugin's `explanations` directory, at `${CLAUDE_PLUGIN_ROOT}/explanations/.md` in Claude Code and at the absolute path named in the spring-tools MCP server instructions otherwise - and describe the fix precisely (file, range, what to change) instead of pasting the playbook. +3. Bean wiring: `getBeanDetails` for an overview, then `findBeansByType` for every interface with several implementations (missing `@Primary`/`@Qualifier`) and `getBeanUsageInfo` for beans that are defined but never injected (dead configuration) or injected but not defined. +4. Endpoints: `getRequestMappings` - flag duplicate paths, handler methods without an HTTP method, controllers that mix API versions inconsistently, and endpoints without a matching stereotype (`@RestController`/`@Controller`). +5. Structure: `getLogicalStructureChanges` (a git-backed project has a baseline automatically) to see what the change under review added, removed or moved; `findComponentsByStereotype` to check layering rules the project follows (e.g. controllers calling repositories directly). +6. Versions: `getSpringBootVersion` plus `getLatestReleaseInformation` with slug `spring-boot` - mention when the project runs on a generation whose OSS support has ended. + +Report format: + +- **Blocking**: problems that break the application context, the build or security (each with file:line and the fix). +- **Should fix**: Spring diagnostics with a playbook, wiring ambiguities, structural regressions. +- **Notes**: version/support status, observations, things you could not verify (e.g. the language server was still indexing). + +Use file:line references from the tool output. Read source files only to confirm a finding. When the language server reports nothing for a project, say so explicitly rather than inventing findings. diff --git a/claude-plugins/spring-tools/skills/spring-versions/SKILL.md b/claude-plugins/spring-tools/skills/spring-versions/SKILL.md new file mode 100644 index 0000000000..884f373866 --- /dev/null +++ b/claude-plugins/spring-tools/skills/spring-versions/SKILL.md @@ -0,0 +1,26 @@ +--- +name: spring-versions +description: Use when a user or agent asks which Spring Boot or Spring project version is current, whether a project is on a supported version, when OSS or commercial support ends, which releases exist or are upcoming, or whether a newer Spring Boot version is available for a project's Maven repositories. Uses the spring-tools MCP server's Spring IO release, generation and calendar tools. +allowed-tools: + - mcp__plugin_spring-tools_spring-tools-mcp__getProjectList + - mcp__plugin_spring-tools_spring-tools-mcp__getSpringBootVersion + - mcp__plugin_spring-tools_spring-tools-mcp__getLatestReleaseInformation + - mcp__plugin_spring-tools_spring-tools-mcp__getLatestBootVersionsFromMavenRepo + - mcp__plugin_spring-tools_spring-tools-mcp__getReleases + - mcp__plugin_spring-tools_spring-tools-mcp__getGenerations + - mcp__plugin_spring-tools_spring-tools-mcp__getUpcomingReleases +--- + +Answer Spring version and support questions with the live data the `spring-tools` MCP server obtains from Spring IO and the project's Maven repositories. Never guess release dates or support windows from memory - they change with every release. + +Two kinds of names are involved; do not mix them up: + +- the workspace project name from `getProjectList` (`projectName` field, e.g. `order-service`) for tools that look at the user's project; +- the Spring portfolio slug (`spring-boot`, `spring-framework`, `spring-data-jpa`, `spring-security`, ...) for tools that query Spring IO. + +1. "Which Spring Boot version does this project use?" - `getSpringBootVersion` with the workspace project name (resolve it with `getProjectList` first). +2. "Is it supported / when does support end / what is the current version?" - `getLatestReleaseInformation` with the portfolio slug. It returns the current GA version plus the OSS and commercial support end dates of that generation. For the generation the project is actually on, use `getGenerations` and pick the entry matching the project's major.minor. +3. "Which newer version can I upgrade to?" - `getLatestBootVersionsFromMavenRepo` with the workspace project name. It resolves the newest patch, minor and major versions that are actually available from the repositories configured in the project's `pom.xml` (including private mirrors); `null` means already up to date at that level. Gradle projects are not supported by this tool - fall back to `getLatestReleaseInformation`. +4. "Which releases exist?" - `getReleases` with the slug (every release record, including milestones and release candidates). +5. "What is coming up?" - `getUpcomingReleases` (the Spring release calendar for the next weeks; no parameter). +6. Report versions and dates verbatim from the tool output, state which repository or API they came from, and recommend the smallest upgrade that gets the project back onto a supported generation. Leave the actual build file change to the user unless they ask for it; after changing the Spring Boot version run the `validate` skill because version-dependent validations (e.g. `BOOT_VERSION_VALIDATION_CODE`) may change. diff --git a/claude-plugins/tools/check-plugin-config.mjs b/claude-plugins/tools/check-plugin-config.mjs new file mode 100644 index 0000000000..91ecc7638a --- /dev/null +++ b/claude-plugins/tools/check-plugin-config.mjs @@ -0,0 +1,151 @@ +#!/usr/bin/env node +/******************************************************************************* + * Copyright (c) 2026 Broadcom + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Broadcom - initial API and implementation + *******************************************************************************/ + +// Checks the plugin configuration against the language server's MCP tools: +// node claude-plugins/tools/check-plugin-config.mjs [--cross-host] +// Fails when a hook, skill or agent references an unknown tool, when a skill/agent is malformed, +// or when an MCP tool is unreachable through skills/hooks or lacks positive behavioral eval coverage. +// --cross-host also validates the Copilot and OpenCode adapters and manifests added by later stack branches. + +import { existsSync, readdirSync, readFileSync } from 'node:fs'; +import { dirname, join, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +import { + COPILOT_DIR, + PLUGIN_DIR, + checkAgent, + checkAgentPluginManifest, + checkCopilotAgent, + checkCopilotHooks, + checkEvals, + checkHooks, + checkManifest, + checkSkill, + collectMcpTools, + uncoveredTools, +} from './lib/plugin-config.mjs'; + +const here = dirname(fileURLToPath(import.meta.url)); +const repoRoot = resolve(here, '..', '..'); +const pluginDir = join(repoRoot, PLUGIN_DIR); +const crossHost = process.argv.includes('--cross-host'); + +const errors = []; +const tools = collectMcpTools(repoRoot); +if (tools.size === 0) { + errors.push('no @Tool methods found in the language server sources'); +} + +const hooks = JSON.parse(readFileSync(join(pluginDir, 'hooks', 'hooks.json'), 'utf8')); +errors.push(...checkHooks(hooks, tools, repoRoot)); + +const skillsDir = join(pluginDir, 'skills'); +const skillNames = readdirSync(skillsDir).filter((d) => existsSync(join(skillsDir, d, 'SKILL.md'))); +const skillTexts = []; +for (const name of readdirSync(skillsDir)) { + const file = join(skillsDir, name, 'SKILL.md'); + if (!existsSync(file)) { + errors.push(`${name}: skill directory without SKILL.md`); + continue; + } + const text = readFileSync(file, 'utf8'); + skillTexts.push(text); + errors.push(...checkSkill(name, text, tools, skillNames)); +} + +const agentsDir = join(pluginDir, 'agents'); +const agentFiles = existsSync(agentsDir) ? readdirSync(agentsDir).filter((f) => f.endsWith('.md')) : []; +for (const file of agentFiles) { + errors.push(...checkAgent(file, readFileSync(join(agentsDir, file), 'utf8'), tools)); +} + +const sharedReviewSkill = readFileSync(join(skillsDir, 'spring-review', 'SKILL.md'), 'utf8'); +const reviewBody = (text) => text.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/, '').trim(); +const claudeReviewer = join(agentsDir, 'spring-reviewer.md'); +if (!existsSync(claudeReviewer)) { + errors.push('Claude reviewer: adapter is missing'); +} else if (reviewBody(readFileSync(claudeReviewer, 'utf8')) !== reviewBody(sharedReviewSkill)) { + errors.push('Claude reviewer: instructions differ from skills/spring-review/SKILL.md; run sync-agent-adapters.mjs --write'); +} + +if (crossHost) { + const copilotAgentsDir = join(pluginDir, COPILOT_DIR, 'agents'); + const copilotAgentFiles = existsSync(copilotAgentsDir) ? readdirSync(copilotAgentsDir).filter((f) => f.endsWith('.agent.md')) : []; + for (const file of agentFiles) { + if (!copilotAgentFiles.includes(`${file.replace(/\.md$/, '')}.agent.md`)) { + errors.push(`${COPILOT_DIR}/agents: no copy of agents/${file}, Copilot would fall back to the Claude front matter`); + } + } + for (const file of copilotAgentFiles) { + const claudeFile = join(agentsDir, file.replace(/\.agent\.md$/, '.md')); + errors.push(...checkCopilotAgent(file, readFileSync(join(copilotAgentsDir, file), 'utf8'), existsSync(claudeFile) ? readFileSync(claudeFile, 'utf8') : undefined)); + } + + for (const [label, file] of [ + ['Copilot reviewer', join(copilotAgentsDir, 'spring-reviewer.agent.md')], + ['OpenCode reviewer', join(pluginDir, 'opencode', 'agents', 'spring-reviewer.md')], + ]) { + if (!existsSync(file)) { + errors.push(`${label}: adapter is missing`); + } else if (reviewBody(readFileSync(file, 'utf8')) !== reviewBody(sharedReviewSkill)) { + errors.push(`${label}: instructions differ from skills/spring-review/SKILL.md; run sync-agent-adapters.mjs --write`); + } + } + + const openCodeConfig = JSON.parse(readFileSync(join(pluginDir, 'opencode', 'opencode.jsonc'), 'utf8')); + const openCodeServer = openCodeConfig.mcp?.['spring-tools']; + if (openCodeServer?.type !== 'local' || openCodeServer.command?.[0] !== 'node' || openCodeServer.command?.[1] !== '{env:SPRING_TOOLS_PLUGIN_ROOT}/launcher.js') { + errors.push('opencode/opencode.jsonc must launch the shared launcher.js through SPRING_TOOLS_PLUGIN_ROOT'); + } + if (openCodeServer?.timeout !== 120000 || openCodeServer?.enabled !== true) { + errors.push('opencode/opencode.jsonc must enable Spring Tools with a 120000 ms startup timeout'); + } + const openCodeAgent = readFileSync(join(pluginDir, 'opencode', 'agents', 'spring-reviewer.md'), 'utf8'); + if (!/^mode:\s*subagent$/m.test(openCodeAgent) || !/^\s+edit:\s*deny$/m.test(openCodeAgent) || !/spring-tools_\*"?:\s*allow/.test(openCodeAgent)) { + errors.push('OpenCode reviewer must be a read-only subagent with access to spring-tools MCP tools'); + } + + const copilotHooks = JSON.parse(readFileSync(join(pluginDir, COPILOT_DIR, 'hooks', 'hooks.json'), 'utf8')); + errors.push(...checkCopilotHooks(copilotHooks, repoRoot)); +} + +const pluginJson = JSON.parse(readFileSync(join(pluginDir, '.claude-plugin', 'plugin.json'), 'utf8')); +const marketplace = JSON.parse(readFileSync(join(repoRoot, 'claude-plugins', '.claude-plugin', 'marketplace.json'), 'utf8')); +errors.push(...checkManifest(pluginJson, marketplace, repoRoot)); +if (crossHost) { + errors.push(...checkAgentPluginManifest( + JSON.parse(readFileSync(join(pluginDir, 'plugin.json'), 'utf8')), + JSON.parse(readFileSync(join(pluginDir, 'mcp.json'), 'utf8')), + pluginJson, + repoRoot, + )); +} + +const uncovered = uncoveredTools(tools, skillTexts, hooks); +if (uncovered.length) { + errors.push(`MCP tools reachable through no skill and no hook: ${uncovered.join(', ')}`); +} + +const evalsDir = join(pluginDir, 'evals'); +errors.push(...checkEvals(evalsDir, tools, skillNames, agentFiles.map((f) => f.replace(/\.md$/, '')))); +const evalCases = existsSync(evalsDir) ? readdirSync(evalsDir).filter((d) => existsSync(join(evalsDir, d, 'prompt.md'))).length : 0; + +if (errors.length) { + for (const error of errors) { + console.error(`ERROR ${error}`); + } + console.error(`plugin config FAILED: ${errors.length} problem(s)`); + process.exit(1); +} +const agentSummary = crossHost ? `${agentFiles.length} agent(s) with Copilot copies` : `${agentFiles.length} agent(s)`; +console.log(`plugin config OK (${tools.size} tools, ${skillNames.length} skills, ${agentSummary}, ${evalCases} eval case(s), every tool covered by a skill or hook and behavioral eval)`); diff --git a/claude-plugins/tools/evals/record-mocks.mjs b/claude-plugins/tools/evals/record-mocks.mjs new file mode 100644 index 0000000000..734769fda6 --- /dev/null +++ b/claude-plugins/tools/evals/record-mocks.mjs @@ -0,0 +1,214 @@ +#!/usr/bin/env node +/******************************************************************************* + * Copyright (c) 2026 Broadcom + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Broadcom - initial API and implementation + *******************************************************************************/ + +// Records the MCP mocks for the plugin's behavioral eval suite (claude plugin eval) from the real +// language server: starts launcher.js over MCP stdio against a copy of the sf7-validation test +// project, calls every tool the eval cases may use and writes the answers as +// spring-tools/evals/mocks/spring-tools-mcp/.md plus the saved tools/list as _tools.json. +// Workspace paths are rewritten to /workspace so the recordings are stable across machines. +// Needs the language server JAR in the plugin (claude-plugins/update-local-jars.sh) or +// SPRING_TOOLS_LS_JAR, a Java 21+ runtime and network access (spring.io, Maven Central). +// +// node claude-plugins/tools/evals/record-mocks.mjs [--project-src ] + +import { spawn } from 'node:child_process'; +import { cpSync, existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir, homedir } from 'node:os'; +import { basename, dirname, join, resolve } from 'node:path'; +import { createInterface } from 'node:readline'; +import { fileURLToPath } from 'node:url'; +import { createRequire } from 'node:module'; + +const here = dirname(fileURLToPath(import.meta.url)); +const repoRoot = resolve(here, '..', '..', '..'); +const pluginDir = join(repoRoot, 'claude-plugins', 'spring-tools'); +const { defaultInstallDir } = createRequire(import.meta.url)(join(pluginDir, 'install.js')); +const mocksDir = join(pluginDir, 'evals', 'mocks', 'spring-tools-mcp'); +// Case-level override: the fixture only yields version diagnostics by itself, so the validate case +// gets a recording taken after a redundant @Autowired constructor was added to the application class. +const validateCaseMocksDir = join(pluginDir, 'evals', 'validate-finds-spring-problems', 'mocks', 'spring-tools-mcp'); +const JAR_NAME = 'spring-boot-language-server-standalone-exec.jar'; + +const args = process.argv.slice(2); +const option = (name) => (args.includes(name) ? args[args.indexOf(name) + 1] : undefined); +const projectSrc = resolve(option('--project-src') ?? join(repoRoot, 'headless-services/spring-boot-language-server/src/test/resources/test-projects/sf7-validation')); + +// Prefer a fresh test build; otherwise read the same versioned cache as launcher.js. +const localBuildJar = join(pluginDir, 'language-server', JAR_NAME); +const jarPath = process.env.SPRING_TOOLS_LS_JAR || (existsSync(localBuildJar) ? localBuildJar : join(defaultInstallDir(pluginDir), JAR_NAME)); +if (!existsSync(jarPath)) { + console.error(`language server JAR not found at ${jarPath}; build the local test JAR with claude-plugins/update-local-jars.sh or set SPRING_TOOLS_LS_JAR`); + process.exit(2); +} + +const stagingRoot = mkdtempSync(join(pluginDir, 'evals', '.record-mocks-')); +const stagedMocksDir = join(stagingRoot, 'suite'); +const stagedValidateMocksDir = join(stagingRoot, 'validate'); +mkdirSync(stagedMocksDir, { recursive: true }); +mkdirSync(stagedValidateMocksDir, { recursive: true }); + +const work = mkdtempSync(join(tmpdir(), 'spring-tools-eval-record-')); +const workspace = join(work, 'workspace'); +const dataDir = join(work, 'data'); +const projectName = basename(projectSrc); +mkdirSync(dataDir, { recursive: true }); +cpSync(projectSrc, join(workspace, projectName), { recursive: true, filter: (src) => !/[\\/](target|build|\.git)$/.test(src) }); + +const child = spawn(process.execPath, [join(pluginDir, 'launcher.js')], { + env: { ...process.env, CLAUDE_PROJECT_DIR: workspace, CLAUDE_PLUGIN_DATA: dataDir, CLAUDE_PLUGIN_ROOT: pluginDir }, + stdio: ['pipe', 'pipe', 'inherit'], +}); +const childExited = new Promise((resolvePromise) => child.once('exit', resolvePromise)); +const pending = new Map(); +let nextId = 1; +createInterface({ input: child.stdout }).on('line', (line) => { + let message; + try { message = JSON.parse(line); } catch { return; } + if (message.id !== undefined && pending.has(message.id)) { + pending.get(message.id)(message); + pending.delete(message.id); + } +}); +const request = (method, params, timeoutMs = 120000) => new Promise((resolvePromise, reject) => { + const id = nextId++; + const timer = setTimeout(() => reject(new Error(`timeout waiting for ${method}`)), timeoutMs); + pending.set(id, (message) => { clearTimeout(timer); resolvePromise(message); }); + child.stdin.write(`${JSON.stringify({ jsonrpc: '2.0', id, method, params })}\n`); +}); +const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); +const call = async (name, toolArgs = {}) => { + const response = await request('tools/call', { name, arguments: toolArgs }); + if (response.error) throw new Error(`${name}: ${JSON.stringify(response.error)}`); + return (response.result?.content ?? []).map((c) => c.text ?? JSON.stringify(c)).join('\n'); +}; +async function pollUntil(fn, predicate, attempts, intervalMs) { + let value; + for (let i = 0; i < attempts; i++) { + value = await fn(); + if (predicate(value)) return value; + await sleep(intervalMs); + } + return value; +} + +const stable = (text) => text + .replaceAll(`file://${workspace}`, 'file:///workspace') + .replaceAll(workspace, '/workspace') + .replaceAll(pluginDir, '/plugin') + .replaceAll(`${dataDir}/language-server`, '/plugin/language-server') + .replaceAll(homedir(), '~'); +const pretty = (text) => { + try { return JSON.stringify(JSON.parse(text), null, 2); } catch { return text; } +}; +const yaml = (value) => (Array.isArray(value) ? `[${value.join(', ')}]` : value); +function writeMock(tool, body, expect = {}, dir = stagedMocksDir) { + const front = Object.keys(expect).length + ? `---\nexpect:\n${Object.entries(expect).map(([k, v]) => ` ${k}: ${yaml(v)}`).join('\n')}\n---\n` + : ''; + writeFileSync(join(dir, `${tool}.md`), `${front}${pretty(stable(body)).trim()}\n`); + console.log(`recorded ${tool} (${body.length} chars)${dir === mocksDir ? '' : ` -> ${dir}`}`); +} +const exact = { projectName }; + +try { + await request('initialize', { protocolVersion: '2024-11-05', capabilities: {}, clientInfo: { name: 'record-mocks', version: '0' } }); + child.stdin.write(`${JSON.stringify({ jsonrpc: '2.0', method: 'notifications/initialized', params: {} })}\n`); + + const tools = await request('tools/list', {}); + writeFileSync(join(stagedMocksDir, '_tools.json'), `${JSON.stringify({ tools: tools.result.tools }, null, 2)}\n`); + + const projectList = await pollUntil(() => call('getProjectList'), (t) => t.includes(`"${projectName}"`), 120, 3000); + if (!projectList.includes(`"${projectName}"`)) throw new Error(`project ${projectName} was not discovered`); + writeMock('getProjectList', projectList); + + const diagnostics = await pollUntil(() => call('getProjectDiagnostics', exact), (t) => /"code"/.test(t), 40, 3000); + writeMock('getProjectDiagnostics', diagnostics, exact); + writeMock('getSpringBootVersion', await call('getSpringBootVersion', exact), exact); + writeMock('getJavaVersion', await call('getJavaVersion', exact), exact); + writeMock('getResolvedProjectClasspath', await call('getResolvedProjectClasspath', exact), exact); + + const mappings = await pollUntil(() => call('getRequestMappings', exact), (t) => t.includes('/greeting'), 20, 2000); + writeMock('getRequestMappings', mappings, exact); + writeMock('findRequestMappingsByMethod', await call('findRequestMappingsByMethod', { ...exact, httpMethod: 'GET' }), { ...exact, httpMethod: 'string' }); + + const beans = await call('getBeanDetails', exact); + writeMock('getBeanDetails', beans, exact); + const beanName = beans.match(/"name"\s*:\s*"([^"]+)"/)?.[1]; + const beanType = beans.match(/"type"\s*:\s*"([^"]+)"/)?.[1]; + if (!beanName || !beanType) throw new Error('no bean in getBeanDetails output'); + writeMock('getBeanUsageInfo', await call('getBeanUsageInfo', { ...exact, beanName }), { ...exact, beanName: 'string' }); + writeMock('findBeansByType', await call('findBeansByType', { ...exact, typeName: beanType }), { ...exact, typeName: 'string' }); + + const stereotypes = await call('getStereotypesList', exact); + writeMock('getStereotypesList', stereotypes, exact); + writeMock('getListOfComponentsAndTheirStereotypes', await call('getListOfComponentsAndTheirStereotypes', exact), exact); + const stereotypeName = stereotypes.match(/"name"\s*:\s*"([^"]+)"/)?.[1] ?? 'Controller'; + writeMock('findComponentsByStereotype', await call('findComponentsByStereotype', { ...exact, stereotypeName }), { ...exact, stereotypeName: 'string' }); + writeMock('getLogicalStructure', await call('getLogicalStructure', exact), exact); + writeMock('getStructureDependencies', await call('getStructureDependencies', exact), exact); + writeMock('captureLogicalStructureBaseline', await call('captureLogicalStructureBaseline', exact), exact); + writeMock('getLogicalStructureChanges', await call('getLogicalStructureChanges', exact), exact); + writeMock('getLogicalStructureBaselineHistory', await call('getLogicalStructureBaselineHistory', exact), exact); + writeMock('clearLogicalStructureBaseline', await call('clearLogicalStructureBaseline', exact), exact); + + writeMock('getLatestReleaseInformation', await call('getLatestReleaseInformation', { projectName: 'spring-boot' }), { projectName: ['spring-boot', 'spring-framework', 'spring-security', 'spring-data-jpa', 'spring-cloud'] }); + writeMock('getLatestBootVersionsFromMavenRepo', await call('getLatestBootVersionsFromMavenRepo', exact), exact); + writeMock('getReleases', await call('getReleases', { project: 'spring-boot' }), { project: 'string' }); + writeMock('getGenerations', await call('getGenerations', { project: 'spring-boot' }), { project: 'string' }); + writeMock('getUpcomingReleases', await call('getUpcomingReleases')); + + writeMock('refreshWorkspace', (await call('refreshWorkspace')) || 'OK'); + writeMock('fileChanged', (await call('fileChanged', { filePath: `${workspace}/${projectName}/pom.xml` })) || 'OK', { filePath: 'string' }); + writeMock('fileDeleted', (await call('fileDeleted', { filePath: `${workspace}/${projectName}/Missing.java` })) || 'OK', { filePath: 'string' }); + + const application = join(workspace, projectName, 'src/main/java/com/example/demo/Sf7ValidationApplication.java'); + const original = readFileSync(application, 'utf8'); + writeFileSync(application, original.replace(/class (\w+) \{/, 'class $1 {\n\t@org.springframework.beans.factory.annotation.Autowired\n\tpublic $1() {}\n')); + await call('fileChanged', { filePath: application }); + const withJavaDiagnostic = await pollUntil(() => call('getProjectDiagnostics', exact), (t) => t.includes('JAVA_AUTOWIRED_CONSTRUCTOR'), 30, 1000); + if (!withJavaDiagnostic.includes('JAVA_AUTOWIRED_CONSTRUCTOR')) throw new Error('JAVA_AUTOWIRED_CONSTRUCTOR did not appear after the edit'); + writeMock('getProjectDiagnostics', withJavaDiagnostic, exact, stagedValidateMocksDir); + writeFileSync(application, original); + + const replaceDirectory = (staged, target) => { + mkdirSync(dirname(target), { recursive: true }); + const backup = `${target}.backup-${process.pid}`; + rmSync(backup, { recursive: true, force: true }); + if (existsSync(target)) renameSync(target, backup); + try { + renameSync(staged, target); + rmSync(backup, { recursive: true, force: true }); + } catch (error) { + if (existsSync(backup) && !existsSync(target)) renameSync(backup, target); + throw error; + } + }; + replaceDirectory(stagedMocksDir, mocksDir); + replaceDirectory(stagedValidateMocksDir, validateCaseMocksDir); + + console.log(`${readdirSync(mocksDir).length} files written to ${mocksDir}`); +} finally { + child.kill('SIGTERM'); + const exited = await new Promise((resolvePromise) => { + const timer = setTimeout(() => resolvePromise(false), 10000); + childExited.then(() => { + clearTimeout(timer); + resolvePromise(true); + }); + }); + if (!exited) { + child.kill('SIGKILL'); + await childExited; + } + rmSync(work, { recursive: true, force: true }); + rmSync(stagingRoot, { recursive: true, force: true }); +} diff --git a/claude-plugins/tools/lib/plugin-config.mjs b/claude-plugins/tools/lib/plugin-config.mjs index f6794d0d9f..8ad76fccff 100644 --- a/claude-plugins/tools/lib/plugin-config.mjs +++ b/claude-plugins/tools/lib/plugin-config.mjs @@ -333,7 +333,8 @@ export function uncoveredTools(tools, skillTexts, hooksJson) { /** * Consistency of the behavioral eval suite (claude plugin eval) with the rest of the plugin: every * mock answers a real tool, every case has a prompt and at least one grader, graders reference - * only real tools/skills/agents, and every skill and agent has at least one case that checks it. + * only real tools/skills/agents, every MCP tool has a positive behavioral grader, and every skill + * and agent has at least one case that checks it. * Returns error strings. */ export function checkEvals(evalsDir, tools, skillNames, agentNames) { @@ -348,6 +349,7 @@ export function checkEvals(evalsDir, tools, skillNames, agentNames) { } const coveredSkills = new Set(); const coveredAgents = new Set(); + const coveredMcpTools = new Set(); for (const name of cases) { const caseDir = join(evalsDir, name); const promptFile = join(caseDir, 'prompt.md'); @@ -399,6 +401,9 @@ export function checkEvals(evalsDir, tools, skillNames, agentNames) { if (!tool) { errors.push(`${graderWhere}: tool_used grader needs a tool`); } + if (tool.startsWith('mcp__') && !tool.startsWith(SCOPED_TOOL_PREFIX)) { + errors.push(`${graderWhere}: MCP tool '${tool}' is not scoped with '${SCOPED_TOOL_PREFIX}'`); + } if (tool.startsWith(SCOPED_TOOL_PREFIX) && !tools.has(tool.slice(SCOPED_TOOL_PREFIX.length))) { errors.push(`${graderWhere}: MCP tool '${tool}' does not exist`); } @@ -412,6 +417,9 @@ export function checkEvals(evalsDir, tools, skillNames, agentNames) { if (!Number.isFinite(min) || min < 0 || Number.isNaN(max) || max < min) { errors.push(`${graderWhere}: min/max must define non-negative occurrence bounds with max >= min`); } + if (tool.startsWith(SCOPED_TOOL_PREFIX) && tools.has(tool.slice(SCOPED_TOOL_PREFIX.length)) && min > 0) { + coveredMcpTools.add(tool.slice(SCOPED_TOOL_PREFIX.length)); + } if (tool === 'Skill' && data.input_match) { const skill = data.input_match.match(/\)\?([\w-]+)"/)?.[1]; if (skill && !skillNames.includes(skill)) { @@ -466,6 +474,10 @@ export function checkEvals(evalsDir, tools, skillNames, agentNames) { for (const skill of skillNames.filter((s) => !coveredSkills.has(s))) { errors.push(`evals: skill '${skill}' has no case asserting it fires`); } + const missingMcpTools = [...tools.keys()].filter((tool) => !coveredMcpTools.has(tool)).sort(); + if (missingMcpTools.length) { + errors.push(`evals: no positive behavioral grader for MCP tools: ${missingMcpTools.join(', ')}`); + } for (const agent of agentNames.filter((a) => !coveredAgents.has(a))) { errors.push(`evals: agent '${agent}' has no case asserting it is used`); } diff --git a/claude-plugins/tools/smoke/mcp-smoke.mjs b/claude-plugins/tools/smoke/mcp-smoke.mjs new file mode 100644 index 0000000000..22ee729680 --- /dev/null +++ b/claude-plugins/tools/smoke/mcp-smoke.mjs @@ -0,0 +1,292 @@ +#!/usr/bin/env node +/******************************************************************************* + * Copyright (c) 2026 Broadcom + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Broadcom - initial API and implementation + *******************************************************************************/ + +// End-to-end smoke test for the Claude Code plugin: drives launcher.js over MCP stdio exactly +// the way Claude Code does, against a workspace that holds a copy of a Spring Boot test project. +// Needs the language server JAR in the plugin (claude-plugins/update-local-jars.sh) or +// SPRING_TOOLS_LS_JAR, and a Java 21+ runtime. +// +// node claude-plugins/tools/smoke/mcp-smoke.mjs [--project-src ] [--keep] +// +// Prints one PASS/FAIL line per check and ends with "SMOKE PASSED" only when every check passed. + +import { execFileSync, spawn } from 'node:child_process'; +import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { basename, dirname, join, resolve } from 'node:path'; +import { createInterface } from 'node:readline'; +import { fileURLToPath } from 'node:url'; +import { createRequire } from 'node:module'; + +const here = dirname(fileURLToPath(import.meta.url)); +const repoRoot = resolve(here, '..', '..', '..'); +const pluginDir = join(repoRoot, 'claude-plugins', 'spring-tools'); +const JAR_NAME = 'spring-boot-language-server-standalone-exec.jar'; +const { defaultInstallDir } = createRequire(import.meta.url)(join(pluginDir, 'install.js')); + +const args = process.argv.slice(2); +const option = (name) => (args.includes(name) ? args[args.indexOf(name) + 1] : undefined); +const projectSrc = resolve(option('--project-src') ?? join(repoRoot, 'headless-services/spring-boot-language-server/src/test/resources/test-projects/sf7-validation')); +const keep = args.includes('--keep'); + +// Prefer the freshly built test artifact so CI always exercises the source it just compiled; +// otherwise reuse the normal versioned persistent install cache used by launcher.js. +const localBuildJar = join(pluginDir, 'language-server', JAR_NAME); +const jarPath = process.env.SPRING_TOOLS_LS_JAR || (existsSync(localBuildJar) ? localBuildJar : join(defaultInstallDir(pluginDir), JAR_NAME)); +if (!existsSync(jarPath)) { + console.error(`language server JAR not found at ${jarPath}; build the local test JAR with claude-plugins/update-local-jars.sh or set SPRING_TOOLS_LS_JAR`); + process.exit(2); +} +if (!existsSync(join(projectSrc, 'pom.xml')) && !existsSync(join(projectSrc, 'build.gradle'))) { + console.error(`--project-src ${projectSrc} is not a Maven/Gradle project`); + process.exit(2); +} + +// Workspace layout mirrors "a folder with several services": the test project is one subdirectory, +// and a second project appears later to exercise discovery after startup. +const work = mkdtempSync(join(tmpdir(), 'spring-tools-smoke-')); +const workspace = join(work, 'workspace'); +const dataDir = join(work, 'data'); +const projectDir = join(workspace, basename(projectSrc)); +mkdirSync(dataDir, { recursive: true }); +cpSync(projectSrc, projectDir, { recursive: true, filter: (src) => !/[\\/](target|build|\.git)$/.test(src) }); + +const results = []; +const check = (cond, label) => { + results.push(Boolean(cond)); + console.log(`${cond ? 'PASS' : 'FAIL'} ${label}`); +}; +const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); +const childPids = (parentPid) => { + try { + return execFileSync('pgrep', ['-P', String(parentPid)], { encoding: 'utf8' }) + .trim() + .split(/\s+/) + .filter(Boolean) + .map(Number); + } catch (error) { + if (error.status === 1) { + return []; + } + throw error; + } +}; +const isProcessAlive = (pid) => { + try { + process.kill(pid, 0); + return true; + } catch (error) { + if (error.code === 'ESRCH') { + return false; + } + throw error; + } +}; + +const child = spawn(process.execPath, [join(pluginDir, 'launcher.js')], { + env: { ...process.env, CLAUDE_PROJECT_DIR: workspace, CLAUDE_PLUGIN_DATA: dataDir, CLAUDE_PLUGIN_ROOT: pluginDir }, + stdio: ['pipe', 'pipe', 'pipe'], +}); +let stderr = ''; +child.stderr.on('data', (d) => { stderr += d; }); + +const pending = new Map(); +let nextId = 1; +const strayStdout = []; +createInterface({ input: child.stdout }).on('line', (line) => { + if (!line.trim()) return; + let message; + try { message = JSON.parse(line); } catch { strayStdout.push(line); return; } + if (message.id !== undefined && pending.has(message.id)) { + pending.get(message.id)(message); + pending.delete(message.id); + } +}); + +function request(method, params, timeoutMs = 120000) { + const id = nextId++; + return new Promise((resolvePromise, reject) => { + const timer = setTimeout(() => reject(new Error(`timeout waiting for ${method} (id ${id})`)), timeoutMs); + pending.set(id, (message) => { clearTimeout(timer); resolvePromise(message); }); + child.stdin.write(`${JSON.stringify({ jsonrpc: '2.0', id, method, params })}\n`); + }); +} +const notify = (method, params) => child.stdin.write(`${JSON.stringify({ jsonrpc: '2.0', method, params })}\n`); +const call = async (name, toolArgs = {}) => { + const response = await request('tools/call', { name, arguments: toolArgs }); + return { response, text: (response.result?.content ?? []).map((c) => c.text ?? JSON.stringify(c)).join('\n') }; +}; +const projectNames = (text) => [...text.replace(/\\"/g, '"').matchAll(/"projectName"\s*:\s*"([^"]+)"/g)].map((m) => m[1]); +const codesOf = (text) => [...new Set([...text.matchAll(/"code"\s*:\s*"([A-Za-z_0-9]+)"/g)].map((m) => m[1]))]; +function javaFilesUnder(directory) { + if (!existsSync(directory)) return []; + return readdirSync(directory, { withFileTypes: true }).flatMap((entry) => { + const path = join(directory, entry.name); + return entry.isDirectory() ? javaFilesUnder(path) : (entry.isFile() && entry.name.endsWith('.java') ? [path] : []); + }); +} + +async function pollUntil(fn, predicate, attempts, intervalMs) { + let value; + for (let i = 0; i < attempts; i++) { + value = await fn(); + if (predicate(value)) return value; + await sleep(intervalMs); + } + return value; +} + +const started = Date.now(); +try { + const init = await request('initialize', { protocolVersion: '2024-11-05', capabilities: {}, clientInfo: { name: 'smoke', version: '0' } }); + check(init.result?.serverInfo?.name, `initialize answered by ${JSON.stringify(init.result?.serverInfo)} after ${Date.now() - started} ms`); + check(typeof init.result?.instructions === 'string' && init.result.instructions.includes('getProjectList'), 'server instructions (used by Claude Code tool search) are advertised'); + notify('notifications/initialized', {}); + + const tools = await request('tools/list', {}); + const names = (tools.result?.tools ?? []).map((t) => t.name).sort(); + console.log(`tools (${names.length}): ${names.join(', ')}`); + for (const name of ['getProjectList', 'getProjectDiagnostics', 'getSpringBootVersion', 'fileChanged', 'fileDeleted', 'refreshWorkspace']) { + check(names.includes(name), `tool '${name}' advertised`); + } + check(names.length >= 26, `the full tool inventory is advertised (${names.length} tools)`); + const undocumented = (tools.result?.tools ?? []).filter((t) => !t.description || t.description.trim().length < 20).map((t) => t.name); + check(undocumented.length === 0, `every tool carries a description${undocumented.length ? ` (missing: ${undocumented.join(', ')})` : ''}`); + const fileChanged = tools.result.tools.find((t) => t.name === 'fileChanged'); + check(fileChanged && Object.keys(fileChanged.inputSchema?.properties ?? {}).join() === 'filePath', "fileChanged takes exactly {filePath} (what hooks.json sends)"); + + const prompts = await request('prompts/list', {}); + const promptNames = (prompts.result?.prompts ?? []).map((p) => p.name); + check(promptNames.length > 0, `MCP prompts advertised (${promptNames.join(', ') || 'none'})`); + + const discovery = Date.now(); + const list = await pollUntil(() => call('getProjectList'), (r) => projectNames(r.text).length > 0, 120, 3000); + const projectName = projectNames(list.text)[0]; + console.log(`getProjectList after ${Date.now() - discovery} ms: ${list.text.slice(0, 200)}`); + check(projectName === basename(projectSrc), `project '${projectName}' discovered under CLAUDE_PROJECT_DIR`); + const location = list.text.replace(/\\"/g, '"').match(/"location"\s*:\s*"([^"]+)"/)?.[1]; + check(location && realpathSync(location) === realpathSync(projectDir), `getProjectList reports the project location (${location})`); + + const bootVersion = await call('getSpringBootVersion', { projectName }); + check(/"major"\s*:\s*\d+/.test(bootVersion.text), `getSpringBootVersion -> ${bootVersion.text.slice(0, 80)}`); + const javaVersion = await call('getJavaVersion', { projectName }); + check(/\d/.test(javaVersion.text) && !javaVersion.response.result?.isError, `getJavaVersion -> ${javaVersion.text.slice(0, 40)}`); + const classpath = await call('getResolvedProjectClasspath', { projectName }); + check(/spring-boot-[\w.-]*\.jar/.test(classpath.text), 'getResolvedProjectClasspath lists the Spring Boot JARs'); + + const baseline = await pollUntil(() => call('getProjectDiagnostics', { projectName }), (r) => codesOf(r.text).length > 0, 40, 3000); + console.log(`baseline diagnostic codes: ${codesOf(baseline.text).join(', ') || '(none)'}`); + check(codesOf(baseline.text).length > 0, 'getProjectDiagnostics reports Spring diagnostics for the sample project'); + + // The analysis tools behind the beans/endpoints/architecture skills, against the indexed fixture. + const mappings = await pollUntil(() => call('getRequestMappings', { projectName }), (r) => r.text.includes('/greeting'), 20, 2000); + check(mappings.text.includes('/greeting'), 'getRequestMappings lists the fixture endpoint /greeting'); + const gets = await call('findRequestMappingsByMethod', { projectName, httpMethod: 'GET' }); + check(gets.text.includes('/greeting'), 'findRequestMappingsByMethod GET finds the same endpoint'); + const stereotypes = await call('getListOfComponentsAndTheirStereotypes', { projectName }); + check(/Controller/i.test(stereotypes.text), 'getListOfComponentsAndTheirStereotypes classifies the controller'); + const structure = await call('getLogicalStructure', { projectName }); + check(!structure.response.error && !structure.response.result?.isError && structure.text.length > 20, `getLogicalStructure returns a tree (${structure.text.length} chars)`); + const beans = await call('getBeanDetails', { projectName }); + check(/TestController|Config/.test(beans.text), 'getBeanDetails lists the fixture beans'); + + // Same input shape as the PostToolUse Edit|Write hook: edit a Java file, then fileChanged {filePath}. + const javaFiles = javaFilesUnder(join(projectDir, 'src/main/java')); + const target = javaFiles.find((f) => /class \w+ \{/.test(readFileSync(f, 'utf8'))); + const original = readFileSync(target, 'utf8'); + writeFileSync(target, original.replace(/class (\w+) \{/, 'class $1 {\n\t@org.springframework.beans.factory.annotation.Autowired\n\tpublic $1() {}\n')); + const changed = await call('fileChanged', { filePath: target }); + check(!changed.response.error && !changed.response.result?.isError, `fileChanged accepted the hook payload (${changed.text.slice(0, 60)})`); + const edited = Date.now(); + const afterEdit = await pollUntil(() => call('getProjectDiagnostics', { projectName }), (r) => r.text.includes('JAVA_AUTOWIRED_CONSTRUCTOR'), 20, 2000); + check(afterEdit.text.includes('JAVA_AUTOWIRED_CONSTRUCTOR'), `JAVA_AUTOWIRED_CONSTRUCTOR reported ${Date.now() - edited} ms after fileChanged on ${basename(target)}`); + writeFileSync(target, original); + + const refreshed = await call('refreshWorkspace'); + check(!refreshed.response.error && !refreshed.response.result?.isError, `refreshWorkspace accepted {} (${refreshed.text.slice(0, 60)})`); + const reverted = await pollUntil(() => call('getProjectDiagnostics', { projectName }), (r) => codesOf(r.text).join() === codesOf(baseline.text).join(), 20, 2000); + check(codesOf(reverted.text).join() === codesOf(baseline.text).join(), 'diagnostics back to baseline after reverting the file and refreshWorkspace'); + + // The server watches the workspace itself: an edit made without any hook or tool call (an + // external editor, a code generator) must reach the index on its own. + const watched = Date.now(); + writeFileSync(target, original.replace(/class (\w+) \{/, 'class $1 {\n\t@org.springframework.beans.factory.annotation.Autowired\n\tpublic $1() {}\n')); + const afterWatch = await pollUntil(() => call('getProjectDiagnostics', { projectName }), (r) => r.text.includes('JAVA_AUTOWIRED_CONSTRUCTOR'), 20, 1000); + check(afterWatch.text.includes('JAVA_AUTOWIRED_CONSTRUCTOR'), `file watcher: external edit indexed ${Date.now() - watched} ms after writing ${basename(target)} without fileChanged`); + writeFileSync(target, original); + const afterRevert = await pollUntil(() => call('getProjectDiagnostics', { projectName }), (r) => codesOf(r.text).join() === codesOf(baseline.text).join(), 20, 1000); + check(codesOf(afterRevert.text).join() === codesOf(baseline.text).join(), 'file watcher: reverting the file on disk restores the baseline without any notification'); + const external = join(dirname(target), 'WatchedExtra.java'); + writeFileSync(external, `package ${original.match(/package ([\w.]+);/)[1]};\n\n@org.springframework.web.bind.annotation.RestController\npublic class WatchedExtra {\n\t@org.springframework.web.bind.annotation.GetMapping("/watched")\n\tpublic String watched() { return "ok"; }\n}\n`); + const created = Date.now(); + const withExtra = await pollUntil(() => call('getRequestMappings', { projectName }), (r) => r.text.includes('/watched'), 20, 1000); + check(withExtra.text.includes('/watched'), `file watcher: new controller indexed ${Date.now() - created} ms after creation`); + rmSync(external); + const withoutExtra = await pollUntil(() => call('getRequestMappings', { projectName }), (r) => !r.text.includes('/watched'), 20, 1000); + check(!withoutExtra.text.includes('/watched'), 'file watcher: deleting the file removes its endpoint without fileDeleted'); + + // A project created after startup (create-spring-boot-project skill, git checkout) must be + // discovered by the watcher alone; refreshWorkspace stays available as the manual fallback. + const generated = join(workspace, 'generated-app'); + mkdirSync(join(generated, 'src/main/java/com/example'), { recursive: true }); + writeFileSync(join(generated, 'pom.xml'), ` + 4.0.0 + com.example + generated-app + 0.0.1-SNAPSHOT + 21 + +`); + writeFileSync(join(generated, 'src/main/java/com/example/GeneratedApp.java'), 'package com.example;\n\npublic class GeneratedApp {\n}\n'); + const rediscovered = Date.now(); + const after = await pollUntil(() => call('getProjectList'), (r) => projectNames(r.text).includes('generated-app'), 30, 1000); + check(projectNames(after.text).includes('generated-app'), `file watcher: project created after startup discovered ${Date.now() - rediscovered} ms later without refreshWorkspace (${projectNames(after.text).join(', ')})`); + check(projectNames(after.text).includes(projectName), 'the original project is still listed after the discovery'); + const refreshedAgain = await call('refreshWorkspace'); + const afterRefresh = await pollUntil(() => call('getProjectList'), (r) => projectNames(r.text).includes('generated-app') && projectNames(r.text).includes(projectName), 20, 1000); + check(!refreshedAgain.response.error && projectNames(afterRefresh.text).length === 2, 'refreshWorkspace keeps both projects (manual fallback still works)'); + + check(existsSync(join(dataDir, 'boot-ls.log')), `log written to CLAUDE_PLUGIN_DATA (${join(dataDir, 'boot-ls.log')})`); + check(strayStdout.length === 0, `stdout carried only JSON-RPC (${strayStdout.length} stray line(s))`); + if (strayStdout.length) console.log(`stray stdout: ${strayStdout.slice(0, 5).join(' | ')}`); + check(/\[spring-tools\] Using Java (\d+) from/.test(stderr), 'launcher reported the selected Java runtime on stderr'); + const serverLog = readFileSync(join(dataDir, 'boot-ls.log'), 'utf8'); + check(/file watcher started for .* directories, \d+ ms quiet period/.test(serverLog), 'server log confirms the file watcher started for the workspace'); +} catch (error) { + check(false, error.message); +} finally { + const killed = Date.now(); + const serverPids = process.platform === 'win32' ? [] : childPids(child.pid); + child.kill('SIGTERM'); + if (process.platform !== 'win32') { + // The JVM must not outlive the launcher; graceful shutdown takes about a second. + let alive = serverPids.filter(isProcessAlive); + for (let i = 0; i < 30; i++) { + alive = alive.filter(isProcessAlive); + if (alive.length === 0) break; + await sleep(1000); + } + check(alive.length === 0, `no orphaned JVM after SIGTERM to the launcher (${Date.now() - killed} ms${alive.length ? `, survivors: ${alive.join(', ')}` : ''})`); + for (const pid of alive) { + process.kill(pid, 'SIGKILL'); + } + } + const failed = results.filter((r) => !r).length; + if (failed) { + console.log(`--- launcher stderr (tail) ---\n${stderr.slice(-3000)}`); + console.log(`SMOKE FAILED: ${failed} of ${results.length} checks failed (workspace kept at ${work})`); + process.exitCode = 1; + } else { + console.log(`SMOKE PASSED: ${results.length} checks in ${Math.round((Date.now() - started) / 1000)} s`); + if (!keep) rmSync(work, { recursive: true, force: true }); + } +} diff --git a/claude-plugins/tools/test/fixtures/bad-agent.md b/claude-plugins/tools/test/fixtures/bad-agent.md new file mode 100644 index 0000000000..c71dcce1ba --- /dev/null +++ b/claude-plugins/tools/test/fixtures/bad-agent.md @@ -0,0 +1,9 @@ +--- +name: spring-review +description: Reviews. +tools: Read, mcp__spring-tools-mcp__getProjectList, mcp__plugin_spring-tools_spring-tools-mcp__getDiagnostics +hooks: + PostToolUse: [] +--- + +Call `getDiagnostics` for every project. diff --git a/claude-plugins/tools/test/plugin-config.test.mjs b/claude-plugins/tools/test/plugin-config.test.mjs index 612eb52dea..a3ae877d32 100644 --- a/claude-plugins/tools/test/plugin-config.test.mjs +++ b/claude-plugins/tools/test/plugin-config.test.mjs @@ -16,6 +16,7 @@ import { fileURLToPath } from 'node:url'; import { test } from 'node:test'; import { + checkEvals, HOOK_SERVER, PLUGIN_DIR, SCOPED_TOOL_PREFIX, @@ -32,7 +33,6 @@ const pluginDir = join(repoRoot, PLUGIN_DIR); const tools = collectMcpTools(repoRoot); const skillsDir = join(pluginDir, 'skills'); const skillNames = readdirSync(skillsDir); -const skillText = (name) => readFileSync(join(skillsDir, name, 'SKILL.md'), 'utf8'); test('the language server exposes the MCP tools the plugin relies on', () => { for (const name of ['getProjectList', 'getProjectDiagnostics', 'fileChanged', 'fileDeleted', 'refreshWorkspace', 'getSpringBootVersion']) { @@ -68,8 +68,15 @@ test('every skill has a SKILL.md whose name matches its directory and whose tool } }); +test('every MCP tool has positive behavioral eval coverage', () => { + const agentNames = readdirSync(join(pluginDir, 'agents')) + .filter((file) => file.endsWith('.md')) + .map((file) => file.replace(/\.md$/, '')); + assert.deepEqual(checkEvals(join(pluginDir, 'evals'), tools, skillNames, agentNames), []); +}); + test('the quickfix skill reads explanations by diagnostic code and may look up the Spring Boot version', () => { - const text = readFileSync(join(skillsDir, 'quickfix', 'SKILL.md'), 'utf8'); + const text = readFileSync(join(pluginDir, 'skills', 'quickfix', 'SKILL.md'), 'utf8'); const front = parseFrontMatter(text); assert.deepEqual(front.arguments, ['code', 'file', 'range']); assert.ok(text.includes('${CLAUDE_PLUGIN_ROOT}/explanations/.md')); @@ -79,13 +86,13 @@ test('the quickfix skill reads explanations by diagnostic code and may look up t }); test('the validate skill pre-approves quickfix invocations that carry arguments', () => { - const front = parseFrontMatter(readFileSync(join(skillsDir, 'validate', 'SKILL.md'), 'utf8')); + const front = parseFrontMatter(readFileSync(join(pluginDir, 'skills', 'validate', 'SKILL.md'), 'utf8')); assert.ok(front['allowed-tools'].includes('Skill(spring-tools:quickfix *)')); assert.ok(!front['allowed-tools'].includes('Skill(spring-tools:quickfix)'), 'the exact-match form only covers an argument-less call'); }); test('the create-spring-boot-project skill only grants the start.spring.io lookup and registers the new project', () => { - const text = readFileSync(join(skillsDir, 'create-spring-boot-project', 'SKILL.md'), 'utf8'); + const text = readFileSync(join(pluginDir, 'skills', 'create-spring-boot-project', 'SKILL.md'), 'utf8'); const allowed = parseFrontMatter(text)['allowed-tools']; assert.ok(allowed.includes('Bash(curl -sS https://start.spring.io)')); assert.ok(!allowed.some((rule) => /^Bash\(curl -sS \*\)$/.test(rule)), 'no blanket curl grant'); From 110ce06600bdf5c9b92a93773ecd98a6c452835a Mon Sep 17 00:00:00 2001 From: Patrick Baumgartner Date: Mon, 23 Nov 2026 07:04:18 +0100 Subject: [PATCH 2/2] GH-2032: Address plugin evaluation review Signed-off-by: Patrick Baumgartner --- .github/workflows/claude-plugin-check.yml | 6 +- CLAUDE.md | 4 +- .../research-notes/TODO_quickfixes.md | 4 ++ claude-plugins/spring-tools/.gitignore | 1 - claude-plugins/spring-tools/README.md | 11 ++-- .../spring-tools/agents/spring-reviewer.md | 6 +- .../skills/spring-review/SKILL.md | 6 +- claude-plugins/tools/check-plugin-config.mjs | 2 +- claude-plugins/tools/evals/.gitignore | 1 + .../graders/describes-stereotypes.md | 0 .../graders/lists-the-components.md | 0 .../graders/skill-fired.md | 0 .../graders/used-stereotypes-tool.md | 0 .../prompt.md | 0 .../graders/describes-wiring.md | 0 .../graders/names-the-bean-type.md | 0 .../graders/skill-fired.md | 0 .../graders/used-bean-usage-tool.md | 0 .../evals/beans-explains-wiring/prompt.md | 0 .../graders/skill-fired.md | 0 .../create-project-routes-to-skill/prompt.md | 0 .../graders/lists-greeting-endpoint.md | 0 .../graders/names-the-controller.md | 0 .../graders/skill-fired.md | 0 .../graders/used-request-mappings-tool.md | 0 .../prompt.md | 0 .../graders/answers-the-question.md | 0 .../graders/no-project-lookup.md | 0 .../graders/no-skill-invoked.md | 0 .../evals/ignores-unrelated-request/prompt.md | 0 .../capture-logical-structure-baseline.md | 0 .../clear-logical-structure-baseline.md | 0 .../mcp-tools-covered/graders/file-changed.md | 0 .../mcp-tools-covered/graders/file-deleted.md | 0 .../graders/find-beans-by-type.md | 0 .../graders/find-components-by-stereotype.md | 0 .../find-request-mappings-by-method.md | 0 .../graders/get-bean-details.md | 0 .../graders/get-generations.md | 0 .../graders/get-latest-boot-versions.md | 0 .../get-list-components-and-stereotypes.md | 0 .../get-logical-structure-baseline-history.md | 0 .../graders/get-logical-structure-changes.md | 0 .../graders/get-logical-structure.md | 0 .../graders/get-project-list.md | 0 .../mcp-tools-covered/graders/get-releases.md | 0 .../graders/get-resolved-project-classpath.md | 0 .../graders/get-spring-boot-version.md | 0 .../graders/get-stereotypes-list.md | 0 .../graders/get-structure-dependencies.md | 0 .../graders/get-upcoming-releases.md | 0 .../evals/mcp-tools-covered/prompt.md | 0 .../evals/mocks/spring-tools-mcp/_tools.json | 0 .../captureLogicalStructureBaseline.md | 0 .../clearLogicalStructureBaseline.md | 0 .../mocks/spring-tools-mcp/fileChanged.md | 0 .../mocks/spring-tools-mcp/fileDeleted.md | 0 .../mocks/spring-tools-mcp/findBeansByType.md | 0 .../findComponentsByStereotype.md | 0 .../findRequestMappingsByMethod.md | 0 .../mocks/spring-tools-mcp/getBeanDetails.md | 0 .../spring-tools-mcp/getBeanUsageInfo.md | 0 .../mocks/spring-tools-mcp/getGenerations.md | 0 .../mocks/spring-tools-mcp/getJavaVersion.md | 0 .../getLatestBootVersionsFromMavenRepo.md | 0 .../getLatestReleaseInformation.md | 0 .../getListOfComponentsAndTheirStereotypes.md | 0 .../spring-tools-mcp/getLogicalStructure.md | 0 .../getLogicalStructureBaselineHistory.md | 0 .../getLogicalStructureChanges.md | 0 .../spring-tools-mcp/getProjectDiagnostics.md | 0 .../mocks/spring-tools-mcp/getProjectList.md | 0 .../mocks/spring-tools-mcp/getReleases.md | 0 .../spring-tools-mcp/getRequestMappings.md | 0 .../getResolvedProjectClasspath.md | 0 .../spring-tools-mcp/getSpringBootVersion.md | 0 .../spring-tools-mcp/getStereotypesList.md | 0 .../getStructureDependencies.md | 0 .../spring-tools-mcp/getUpcomingReleases.md | 0 .../spring-tools-mcp/refreshWorkspace.md | 0 .../graders/reports-project-and-versions.md | 0 .../graders/skill-fired.md | 0 .../graders/used-java-version-tool.md | 0 .../project-info-reports-versions/prompt.md | 0 .../graders/explains-and-fixes.md | 0 .../graders/read-the-playbook.md | 0 .../graders/skill-fired.md | 0 .../prompt.md | 0 claude-plugins/tools/evals/record-mocks.mjs | 8 +-- .../graders/confirms-refresh.md | 0 .../graders/skill-fired.md | 0 .../graders/used-refresh-tool.md | 0 .../refresh-reindexes-workspace/prompt.md | 0 .../graders/delegated-to-reviewer.md | 0 .../graders/names-the-finding.md | 0 .../graders/relays-findings.md | 0 .../spring-tools-mcp/getProjectDiagnostics.md | 0 .../reviewer-agent-reviews-project/prompt.md | 0 .../tools/evals/run-claude-evals.mjs | 57 +++++++++++++++++++ .../graders/skill-fired.md | 0 .../evals/spring-review-skill/prompt.md | 0 .../graders/gives-oss-support-end.md | 0 .../graders/names-both-versions.md | 0 .../graders/skill-fired.md | 0 .../graders/used-release-information-tool.md | 0 .../spring-versions-checks-support/prompt.md | 0 .../graders/names-the-diagnostic.md | 0 .../graders/reports-diagnostics.md | 0 .../graders/skill-fired.md | 0 .../graders/used-diagnostics-tool.md | 0 .../spring-tools-mcp/getProjectDiagnostics.md | 0 .../validate-finds-spring-problems/prompt.md | 0 .../tools/test/plugin-config.test.mjs | 22 ++++++- 113 files changed, 108 insertions(+), 20 deletions(-) create mode 100644 claude-plugins/tools/evals/.gitignore rename claude-plugins/{spring-tools => tools}/evals/architecture-describes-components/graders/describes-stereotypes.md (100%) rename claude-plugins/{spring-tools => tools}/evals/architecture-describes-components/graders/lists-the-components.md (100%) rename claude-plugins/{spring-tools => tools}/evals/architecture-describes-components/graders/skill-fired.md (100%) rename claude-plugins/{spring-tools => tools}/evals/architecture-describes-components/graders/used-stereotypes-tool.md (100%) rename claude-plugins/{spring-tools => tools}/evals/architecture-describes-components/prompt.md (100%) rename claude-plugins/{spring-tools => tools}/evals/beans-explains-wiring/graders/describes-wiring.md (100%) rename claude-plugins/{spring-tools => tools}/evals/beans-explains-wiring/graders/names-the-bean-type.md (100%) rename claude-plugins/{spring-tools => tools}/evals/beans-explains-wiring/graders/skill-fired.md (100%) rename claude-plugins/{spring-tools => tools}/evals/beans-explains-wiring/graders/used-bean-usage-tool.md (100%) rename claude-plugins/{spring-tools => tools}/evals/beans-explains-wiring/prompt.md (100%) rename claude-plugins/{spring-tools => tools}/evals/create-project-routes-to-skill/graders/skill-fired.md (100%) rename claude-plugins/{spring-tools => tools}/evals/create-project-routes-to-skill/prompt.md (100%) rename claude-plugins/{spring-tools => tools}/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md (100%) rename claude-plugins/{spring-tools => tools}/evals/endpoints-lists-request-mappings/graders/names-the-controller.md (100%) rename claude-plugins/{spring-tools => tools}/evals/endpoints-lists-request-mappings/graders/skill-fired.md (100%) rename claude-plugins/{spring-tools => tools}/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md (100%) rename claude-plugins/{spring-tools => tools}/evals/endpoints-lists-request-mappings/prompt.md (100%) rename claude-plugins/{spring-tools => tools}/evals/ignores-unrelated-request/graders/answers-the-question.md (100%) rename claude-plugins/{spring-tools => tools}/evals/ignores-unrelated-request/graders/no-project-lookup.md (100%) rename claude-plugins/{spring-tools => tools}/evals/ignores-unrelated-request/graders/no-skill-invoked.md (100%) rename claude-plugins/{spring-tools => tools}/evals/ignores-unrelated-request/prompt.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/file-changed.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/file-deleted.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/find-beans-by-type.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/find-components-by-stereotype.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-bean-details.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-generations.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-latest-boot-versions.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-logical-structure-changes.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-logical-structure.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-project-list.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-releases.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-spring-boot-version.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-stereotypes-list.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-structure-dependencies.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/graders/get-upcoming-releases.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mcp-tools-covered/prompt.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/_tools.json (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/fileChanged.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/fileDeleted.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/findBeansByType.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getBeanDetails.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getGenerations.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getJavaVersion.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getLogicalStructure.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getProjectList.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getReleases.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getRequestMappings.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getSpringBootVersion.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getStereotypesList.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getStructureDependencies.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/getUpcomingReleases.md (100%) rename claude-plugins/{spring-tools => tools}/evals/mocks/spring-tools-mcp/refreshWorkspace.md (100%) rename claude-plugins/{spring-tools => tools}/evals/project-info-reports-versions/graders/reports-project-and-versions.md (100%) rename claude-plugins/{spring-tools => tools}/evals/project-info-reports-versions/graders/skill-fired.md (100%) rename claude-plugins/{spring-tools => tools}/evals/project-info-reports-versions/graders/used-java-version-tool.md (100%) rename claude-plugins/{spring-tools => tools}/evals/project-info-reports-versions/prompt.md (100%) rename claude-plugins/{spring-tools => tools}/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md (100%) rename claude-plugins/{spring-tools => tools}/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md (100%) rename claude-plugins/{spring-tools => tools}/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md (100%) rename claude-plugins/{spring-tools => tools}/evals/quickfix-explains-diagnostic-code/prompt.md (100%) rename claude-plugins/{spring-tools => tools}/evals/refresh-reindexes-workspace/graders/confirms-refresh.md (100%) rename claude-plugins/{spring-tools => tools}/evals/refresh-reindexes-workspace/graders/skill-fired.md (100%) rename claude-plugins/{spring-tools => tools}/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md (100%) rename claude-plugins/{spring-tools => tools}/evals/refresh-reindexes-workspace/prompt.md (100%) rename claude-plugins/{spring-tools => tools}/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md (100%) rename claude-plugins/{spring-tools => tools}/evals/reviewer-agent-reviews-project/graders/names-the-finding.md (100%) rename claude-plugins/{spring-tools => tools}/evals/reviewer-agent-reviews-project/graders/relays-findings.md (100%) rename claude-plugins/{spring-tools => tools}/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md (100%) rename claude-plugins/{spring-tools => tools}/evals/reviewer-agent-reviews-project/prompt.md (100%) create mode 100644 claude-plugins/tools/evals/run-claude-evals.mjs rename claude-plugins/{spring-tools => tools}/evals/spring-review-skill/graders/skill-fired.md (100%) rename claude-plugins/{spring-tools => tools}/evals/spring-review-skill/prompt.md (100%) rename claude-plugins/{spring-tools => tools}/evals/spring-versions-checks-support/graders/gives-oss-support-end.md (100%) rename claude-plugins/{spring-tools => tools}/evals/spring-versions-checks-support/graders/names-both-versions.md (100%) rename claude-plugins/{spring-tools => tools}/evals/spring-versions-checks-support/graders/skill-fired.md (100%) rename claude-plugins/{spring-tools => tools}/evals/spring-versions-checks-support/graders/used-release-information-tool.md (100%) rename claude-plugins/{spring-tools => tools}/evals/spring-versions-checks-support/prompt.md (100%) rename claude-plugins/{spring-tools => tools}/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md (100%) rename claude-plugins/{spring-tools => tools}/evals/validate-finds-spring-problems/graders/reports-diagnostics.md (100%) rename claude-plugins/{spring-tools => tools}/evals/validate-finds-spring-problems/graders/skill-fired.md (100%) rename claude-plugins/{spring-tools => tools}/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md (100%) rename claude-plugins/{spring-tools => tools}/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md (100%) rename claude-plugins/{spring-tools => tools}/evals/validate-finds-spring-problems/prompt.md (100%) diff --git a/.github/workflows/claude-plugin-check.yml b/.github/workflows/claude-plugin-check.yml index 531422bc0a..6ba314337e 100644 --- a/.github/workflows/claude-plugin-check.yml +++ b/.github/workflows/claude-plugin-check.yml @@ -127,15 +127,15 @@ jobs: - name: Install the Claude Code CLI into a temporary prefix run: npm install --no-audit --no-fund --prefix "$RUNNER_TEMP/claude-code" @anthropic-ai/claude-code@latest - name: Run the eval suite against the recorded MCP mocks (the language server is not started) - working-directory: claude-plugins/spring-tools env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + CLAUDE_CLI: ${{ runner.temp }}/claude-code/node_modules/.bin/claude run: | if [ -z "$ANTHROPIC_API_KEY" ]; then echo '::error::the ANTHROPIC_API_KEY secret is not set; the eval suite needs model access' exit 1 fi - "$RUNNER_TEMP/claude-code/node_modules/.bin/claude" plugin eval . \ + node claude-plugins/tools/evals/run-claude-evals.mjs \ --trust-plugin \ --json "$RUNNER_TEMP/eval-results.json" \ --threshold 0.8 \ @@ -149,5 +149,5 @@ jobs: name: plugin-eval-results path: | ${{ runner.temp }}/eval-results.json - claude-plugins/spring-tools/evals/results/**/report.html + claude-plugins/tools/evals/results/report.html if-no-files-found: ignore diff --git a/CLAUDE.md b/CLAUDE.md index 16971c0c89..eb2f643b3a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -31,8 +31,8 @@ sts4/ │ └── boot-dev-pack/ # Extension pack bundling Spring Boot extensions ├── nodejs-packages/ # Shared Node.js utilities └── claude-plugins/ # Claude Code plugin (standalone LS + MCP server) - ├── spring-tools/ # Plugin source (skills, agents, hooks, evals, explanations/.md playbooks) - ├── tools/ # Node.js checkers + tests keeping playbooks/skills/agents in sync with the LS + ├── spring-tools/ # Plugin source (skills, agents, hooks, explanations/.md playbooks) + ├── tools/ # Node.js checkers, tests and behavioral evals ├── research-notes/ # TODO_quickfixes.md: problem code → quick fix → playbook coverage table └── update-local-jars.sh # Rebuilds the standalone LS JAR for the plugin ``` diff --git a/claude-plugins/research-notes/TODO_quickfixes.md b/claude-plugins/research-notes/TODO_quickfixes.md index 1808a51b28..dc32a70299 100644 --- a/claude-plugins/research-notes/TODO_quickfixes.md +++ b/claude-plugins/research-notes/TODO_quickfixes.md @@ -107,6 +107,8 @@ Raised on `application*.properties` / `bootstrap*.properties` files by `SpringPr | Problem Type Code | Description | Quick Fix Implementation | Playbook | | :--- | :--- | :--- | :---: | | `PROP_SYNTAX_ERROR` | Line cannot be parsed as a `key=value` / `key: value` assignment | *None* | ✅ | +| `PROP_PLACEHOLDER_SYNTAX` | Malformed property placeholder in a value | *None* | ✅ | +| `PROP_UNRESOLVED_PLACEHOLDER` | Placeholder without a default is not found in the project's configuration | *None* | ✅ | | `PROP_UNKNOWN_PROPERTY` | Key matches no property in the configuration metadata | Create metadata for `` (`CommonQuickfixes.MISSING_PROPERTY`, id `MISSING_PROPERTY_APP`) | ✅ | | `PROP_DEPRECATED` | Property is deprecated in the configuration metadata (any level) | Replace with `` (`AppPropertiesQuickFixes.DEPRECATED_PROPERTY`) | ✅ | | `PROP_DUPLICATE_KEY` | Same key assigned more than once in one document | *None* | ✅ | @@ -125,6 +127,8 @@ Raised on `application*.yml`/`.yaml` and `bootstrap*.yml`/`.yaml` files by `Appl | Problem Type Code | Description | Quick Fix Implementation | Playbook | | :--- | :--- | :--- | :---: | | `YAML_SYNTAX_ERROR` | SnakeYAML parse error | *None* | ✅ | +| `YAML_PLACEHOLDER_SYNTAX` | Malformed property placeholder in a value | *None* | ✅ | +| `YAML_UNRESOLVED_PLACEHOLDER` | Placeholder without a default is not found in the project's configuration | *None* | ✅ | | `YAML_UNKNOWN_PROPERTY` | Key path matches no property in the configuration metadata | Create metadata for `` (`CommonQuickfixes.MISSING_PROPERTY`, id `MISSING_PROPERTY_APP`) | ✅ | | `YAML_DEPRECATED_WARNING` | Property deprecated at `warning` level | Replace with `` (`AppYamlQuickfixes.DEPRECATED_PROPERTY`, id `DEPRECATED_YAML_PROPERTY`) | ✅ | | `YAML_DEPRECATED_ERROR` | Property deprecated at `error` level (no longer bound) | Replace with `` (`AppYamlQuickfixes.DEPRECATED_PROPERTY`, id `DEPRECATED_YAML_PROPERTY`) | ✅ | diff --git a/claude-plugins/spring-tools/.gitignore b/claude-plugins/spring-tools/.gitignore index d54cee59ec..7318d4006f 100644 --- a/claude-plugins/spring-tools/.gitignore +++ b/claude-plugins/spring-tools/.gitignore @@ -1,4 +1,3 @@ language-server/ node_modules/ boot-ls.log -evals/results/ diff --git a/claude-plugins/spring-tools/README.md b/claude-plugins/spring-tools/README.md index 67191cefe6..fac375c392 100644 --- a/claude-plugins/spring-tools/README.md +++ b/claude-plugins/spring-tools/README.md @@ -319,14 +319,16 @@ When a new MCP tool is added to the language server, give it a home: mention it ### Behavioral evals -`evals/` holds a [`claude plugin eval`](https://code.claude.com/docs/en/plugin-evals) suite: one case per skill and for the `spring-reviewer` agent, plus a negative control (an unrelated question must not trigger any skill). Each case is a prompt phrased the way a user would type it, with graders for the result (a regex or a judged rubric) and for the path (`tool_used` on the skill and on the MCP tool it should call). The language server is not started during a run: `evals/mocks/spring-tools-mcp/` answers every MCP tool from recordings taken against the real server on the `sf7-validation` test project (`_tools.json` carries the real tool descriptions and schemas), and the `validate` and reviewer cases override `getProjectDiagnostics` with a recording that contains a `JAVA_AUTOWIRED_CONSTRUCTOR` finding. +`claude-plugins/tools/evals/` holds a [`claude plugin eval`](https://code.claude.com/docs/en/plugin-evals) suite outside the published plugin: one case per skill and for the `spring-reviewer` agent, plus a negative control (an unrelated question must not trigger any skill). Each case is a prompt phrased the way a user would type it, with graders for the result (a regex or a judged rubric) and for the path (`tool_used` on the skill and on the MCP tool it should call). The language server is not started during a run: `mocks/spring-tools-mcp/` answers every MCP tool from recordings taken against the real server on the `sf7-validation` test project (`_tools.json` carries the real tool descriptions and schemas), and the `validate` and reviewer cases override `getProjectDiagnostics` with a recording that contains a `JAVA_AUTOWIRED_CONSTRUCTOR` finding. + +Run the following from the repository root. The runner stages the plugin and evals together in a temporary directory because Claude requires evals inside the plugin root; results are saved under `claude-plugins/tools/evals/results/`. ```bash # runs every case three times with the plugin and three times without it, judged with your Claude Code credentials -cd claude-plugins/spring-tools && claude plugin eval . --no-publish +node claude-plugins/tools/evals/run-claude-evals.mjs --no-publish # one case, one arm, one run - cheap while iterating on a skill description -claude plugin eval . --case validate-finds-spring-problems --runs 1 --ablation none +node claude-plugins/tools/evals/run-claude-evals.mjs --case validate-finds-spring-problems --runs 1 --ablation none --no-publish # re-record the mocks after the language server's tools or the fixture project changed (needs the JAR + Java 21+) node claude-plugins/tools/evals/record-mocks.mjs @@ -372,13 +374,12 @@ spring-tools/ │ └── spring-review/ # Canonical review procedure for Codex and other skill hosts ├── opencode/ # OpenCode MCP config fragment and reviewer agent adapter ├── explanations/ # One Markdown playbook per diagnostic code (explanation + fixes) -├── evals/ # Behavioral eval suite: one case per skill/agent + recorded MCP mocks (results/ is gitignored) └── README.md ``` The manifests describe one plugin for different hosts. `install.js` stores the checksum-verified JAR in the persistent data directory, isolated under the plugin version; it does not write into the installed plugin tree. `check-plugin-config.mjs` fails if shared metadata drifts, if a reviewer adapter differs from `skills/spring-review/SKILL.md`, or if `mcp.json` stops launching `launcher.js`. Run `node claude-plugins/tools/sync-agent-adapters.mjs --write` after changing the shared review procedure to refresh Claude, Copilot and OpenCode adapters. Hooks cannot be one shared file: Claude supports MCP-tool hooks, Copilot supports command hooks, and Codex/OpenCode rely on the language-server watcher. Codex and Copilot consume the portable root `plugin.json`, `mcp.json`, and `skills/`, so those capabilities are defined once. -The sibling directory `claude-plugins/tools/` (not part of the published plugin) holds `check-explanations.mjs`, `check-plugin-config.mjs`, `lib/plugin-config.mjs`, the `test/` suite, the `smoke/mcp-smoke.mjs` end-to-end test, the `evals/record-mocks.mjs` recorder and the `evals/run-with-copilot.mjs` runner described above. +The sibling directory `claude-plugins/tools/` (not part of the published plugin) holds `check-explanations.mjs`, `check-plugin-config.mjs`, `lib/plugin-config.mjs`, the `test/` suite, the `smoke/mcp-smoke.mjs` end-to-end test, and the `evals/` suite, recorder and runner. ## How it works diff --git a/claude-plugins/spring-tools/agents/spring-reviewer.md b/claude-plugins/spring-tools/agents/spring-reviewer.md index 9fcc4ddcd5..e9db181089 100644 --- a/claude-plugins/spring-tools/agents/spring-reviewer.md +++ b/claude-plugins/spring-tools/agents/spring-reviewer.md @@ -8,6 +8,8 @@ You are a Spring Boot reviewer. You review the current state of the Spring Boot Work through these steps and keep tool output out of the report - summarize. +Steps 3-6 complement diagnostics with structural and support information that diagnostics may not report. Confirm suspected problems against the project before reporting them. + 1. `getProjectList` - note every project (`projectName`, `location`, `isSpringBootProject`, `javaVersion`). Retry a few times if the list is empty right after startup. Skip projects that are not Spring Boot projects unless the user asked about them. 2. `getProjectDiagnostics` per project. For each Spring diagnostic code read the fix playbook for that code - the `.md` files in the plugin's `explanations` directory, at `${CLAUDE_PLUGIN_ROOT}/explanations/.md` in Claude Code and at the absolute path named in the spring-tools MCP server instructions otherwise - and describe the fix precisely (file, range, what to change) instead of pasting the playbook. 3. Bean wiring: `getBeanDetails` for an overview, then `findBeansByType` for every interface with several implementations (missing `@Primary`/`@Qualifier`) and `getBeanUsageInfo` for beans that are defined but never injected (dead configuration) or injected but not defined. @@ -17,8 +19,10 @@ Work through these steps and keep tool output out of the report - summarize. Report format: +These categories reflect review impact, not diagnostic severity. Preserve each diagnostic's reported severity (`error`, `warning`, `info`, `hint`, or `unspecified`) alongside the finding. + - **Blocking**: problems that break the application context, the build or security (each with file:line and the fix). -- **Should fix**: Spring diagnostics with a playbook, wiring ambiguities, structural regressions. +- **Should fix**: other Spring diagnostics with a playbook, wiring ambiguities, structural regressions. - **Notes**: version/support status, observations, things you could not verify (e.g. the language server was still indexing). Use file:line references from the tool output. Read source files only to confirm a finding. When the language server reports nothing for a project, say so explicitly rather than inventing findings. diff --git a/claude-plugins/spring-tools/skills/spring-review/SKILL.md b/claude-plugins/spring-tools/skills/spring-review/SKILL.md index c7c7e2eb5e..7328873f41 100644 --- a/claude-plugins/spring-tools/skills/spring-review/SKILL.md +++ b/claude-plugins/spring-tools/skills/spring-review/SKILL.md @@ -7,6 +7,8 @@ You are a Spring Boot reviewer. You review the current state of the Spring Boot Work through these steps and keep tool output out of the report - summarize. +Steps 3-6 complement diagnostics with structural and support information that diagnostics may not report. Confirm suspected problems against the project before reporting them. + 1. `getProjectList` - note every project (`projectName`, `location`, `isSpringBootProject`, `javaVersion`). Retry a few times if the list is empty right after startup. Skip projects that are not Spring Boot projects unless the user asked about them. 2. `getProjectDiagnostics` per project. For each Spring diagnostic code read the fix playbook for that code - the `.md` files in the plugin's `explanations` directory, at `${CLAUDE_PLUGIN_ROOT}/explanations/.md` in Claude Code and at the absolute path named in the spring-tools MCP server instructions otherwise - and describe the fix precisely (file, range, what to change) instead of pasting the playbook. 3. Bean wiring: `getBeanDetails` for an overview, then `findBeansByType` for every interface with several implementations (missing `@Primary`/`@Qualifier`) and `getBeanUsageInfo` for beans that are defined but never injected (dead configuration) or injected but not defined. @@ -16,8 +18,10 @@ Work through these steps and keep tool output out of the report - summarize. Report format: +These categories reflect review impact, not diagnostic severity. Preserve each diagnostic's reported severity (`error`, `warning`, `info`, `hint`, or `unspecified`) alongside the finding. + - **Blocking**: problems that break the application context, the build or security (each with file:line and the fix). -- **Should fix**: Spring diagnostics with a playbook, wiring ambiguities, structural regressions. +- **Should fix**: other Spring diagnostics with a playbook, wiring ambiguities, structural regressions. - **Notes**: version/support status, observations, things you could not verify (e.g. the language server was still indexing). Use file:line references from the tool output. Read source files only to confirm a finding. When the language server reports nothing for a project, say so explicitly rather than inventing findings. diff --git a/claude-plugins/tools/check-plugin-config.mjs b/claude-plugins/tools/check-plugin-config.mjs index 91ecc7638a..5e37339c21 100644 --- a/claude-plugins/tools/check-plugin-config.mjs +++ b/claude-plugins/tools/check-plugin-config.mjs @@ -136,7 +136,7 @@ if (uncovered.length) { errors.push(`MCP tools reachable through no skill and no hook: ${uncovered.join(', ')}`); } -const evalsDir = join(pluginDir, 'evals'); +const evalsDir = join(here, 'evals'); errors.push(...checkEvals(evalsDir, tools, skillNames, agentFiles.map((f) => f.replace(/\.md$/, '')))); const evalCases = existsSync(evalsDir) ? readdirSync(evalsDir).filter((d) => existsSync(join(evalsDir, d, 'prompt.md'))).length : 0; diff --git a/claude-plugins/tools/evals/.gitignore b/claude-plugins/tools/evals/.gitignore new file mode 100644 index 0000000000..fbca225379 --- /dev/null +++ b/claude-plugins/tools/evals/.gitignore @@ -0,0 +1 @@ +results/ diff --git a/claude-plugins/spring-tools/evals/architecture-describes-components/graders/describes-stereotypes.md b/claude-plugins/tools/evals/architecture-describes-components/graders/describes-stereotypes.md similarity index 100% rename from claude-plugins/spring-tools/evals/architecture-describes-components/graders/describes-stereotypes.md rename to claude-plugins/tools/evals/architecture-describes-components/graders/describes-stereotypes.md diff --git a/claude-plugins/spring-tools/evals/architecture-describes-components/graders/lists-the-components.md b/claude-plugins/tools/evals/architecture-describes-components/graders/lists-the-components.md similarity index 100% rename from claude-plugins/spring-tools/evals/architecture-describes-components/graders/lists-the-components.md rename to claude-plugins/tools/evals/architecture-describes-components/graders/lists-the-components.md diff --git a/claude-plugins/spring-tools/evals/architecture-describes-components/graders/skill-fired.md b/claude-plugins/tools/evals/architecture-describes-components/graders/skill-fired.md similarity index 100% rename from claude-plugins/spring-tools/evals/architecture-describes-components/graders/skill-fired.md rename to claude-plugins/tools/evals/architecture-describes-components/graders/skill-fired.md diff --git a/claude-plugins/spring-tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md b/claude-plugins/tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md similarity index 100% rename from claude-plugins/spring-tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md rename to claude-plugins/tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md diff --git a/claude-plugins/spring-tools/evals/architecture-describes-components/prompt.md b/claude-plugins/tools/evals/architecture-describes-components/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/architecture-describes-components/prompt.md rename to claude-plugins/tools/evals/architecture-describes-components/prompt.md diff --git a/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/describes-wiring.md b/claude-plugins/tools/evals/beans-explains-wiring/graders/describes-wiring.md similarity index 100% rename from claude-plugins/spring-tools/evals/beans-explains-wiring/graders/describes-wiring.md rename to claude-plugins/tools/evals/beans-explains-wiring/graders/describes-wiring.md diff --git a/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/names-the-bean-type.md b/claude-plugins/tools/evals/beans-explains-wiring/graders/names-the-bean-type.md similarity index 100% rename from claude-plugins/spring-tools/evals/beans-explains-wiring/graders/names-the-bean-type.md rename to claude-plugins/tools/evals/beans-explains-wiring/graders/names-the-bean-type.md diff --git a/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/skill-fired.md b/claude-plugins/tools/evals/beans-explains-wiring/graders/skill-fired.md similarity index 100% rename from claude-plugins/spring-tools/evals/beans-explains-wiring/graders/skill-fired.md rename to claude-plugins/tools/evals/beans-explains-wiring/graders/skill-fired.md diff --git a/claude-plugins/spring-tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md b/claude-plugins/tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md similarity index 100% rename from claude-plugins/spring-tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md rename to claude-plugins/tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md diff --git a/claude-plugins/spring-tools/evals/beans-explains-wiring/prompt.md b/claude-plugins/tools/evals/beans-explains-wiring/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/beans-explains-wiring/prompt.md rename to claude-plugins/tools/evals/beans-explains-wiring/prompt.md diff --git a/claude-plugins/spring-tools/evals/create-project-routes-to-skill/graders/skill-fired.md b/claude-plugins/tools/evals/create-project-routes-to-skill/graders/skill-fired.md similarity index 100% rename from claude-plugins/spring-tools/evals/create-project-routes-to-skill/graders/skill-fired.md rename to claude-plugins/tools/evals/create-project-routes-to-skill/graders/skill-fired.md diff --git a/claude-plugins/spring-tools/evals/create-project-routes-to-skill/prompt.md b/claude-plugins/tools/evals/create-project-routes-to-skill/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/create-project-routes-to-skill/prompt.md rename to claude-plugins/tools/evals/create-project-routes-to-skill/prompt.md diff --git a/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md b/claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md similarity index 100% rename from claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md rename to claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md diff --git a/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md b/claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md similarity index 100% rename from claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md rename to claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md diff --git a/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md b/claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md similarity index 100% rename from claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md rename to claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md diff --git a/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md b/claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md similarity index 100% rename from claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md rename to claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md diff --git a/claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/prompt.md b/claude-plugins/tools/evals/endpoints-lists-request-mappings/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/endpoints-lists-request-mappings/prompt.md rename to claude-plugins/tools/evals/endpoints-lists-request-mappings/prompt.md diff --git a/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/answers-the-question.md b/claude-plugins/tools/evals/ignores-unrelated-request/graders/answers-the-question.md similarity index 100% rename from claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/answers-the-question.md rename to claude-plugins/tools/evals/ignores-unrelated-request/graders/answers-the-question.md diff --git a/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-project-lookup.md b/claude-plugins/tools/evals/ignores-unrelated-request/graders/no-project-lookup.md similarity index 100% rename from claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-project-lookup.md rename to claude-plugins/tools/evals/ignores-unrelated-request/graders/no-project-lookup.md diff --git a/claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md b/claude-plugins/tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md similarity index 100% rename from claude-plugins/spring-tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md rename to claude-plugins/tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md diff --git a/claude-plugins/spring-tools/evals/ignores-unrelated-request/prompt.md b/claude-plugins/tools/evals/ignores-unrelated-request/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/ignores-unrelated-request/prompt.md rename to claude-plugins/tools/evals/ignores-unrelated-request/prompt.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-changed.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/file-changed.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-changed.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/file-changed.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-deleted.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/file-deleted.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/file-deleted.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/file-deleted.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-beans-by-type.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/find-beans-by-type.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-beans-by-type.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/find-beans-by-type.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-bean-details.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-bean-details.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-bean-details.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-bean-details.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-generations.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-generations.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-generations.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-generations.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-logical-structure.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-project-list.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-project-list.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-project-list.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-project-list.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-releases.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-releases.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-releases.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-releases.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md b/claude-plugins/tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md rename to claude-plugins/tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md diff --git a/claude-plugins/spring-tools/evals/mcp-tools-covered/prompt.md b/claude-plugins/tools/evals/mcp-tools-covered/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/mcp-tools-covered/prompt.md rename to claude-plugins/tools/evals/mcp-tools-covered/prompt.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/_tools.json b/claude-plugins/tools/evals/mocks/spring-tools-mcp/_tools.json similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/_tools.json rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/_tools.json diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileChanged.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/fileChanged.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileChanged.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/fileChanged.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileDeleted.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/fileDeleted.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/fileDeleted.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/fileDeleted.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findBeansByType.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/findBeansByType.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findBeansByType.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/findBeansByType.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanDetails.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getBeanDetails.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanDetails.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getBeanDetails.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getGenerations.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getGenerations.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getGenerations.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getGenerations.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getJavaVersion.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getJavaVersion.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getJavaVersion.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getJavaVersion.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectList.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getProjectList.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getProjectList.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getProjectList.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getReleases.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getReleases.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getReleases.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getReleases.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getRequestMappings.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getRequestMappings.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getRequestMappings.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getRequestMappings.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStereotypesList.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getStereotypesList.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStereotypesList.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getStereotypesList.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md diff --git a/claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md b/claude-plugins/tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md similarity index 100% rename from claude-plugins/spring-tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md rename to claude-plugins/tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md diff --git a/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md b/claude-plugins/tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md similarity index 100% rename from claude-plugins/spring-tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md rename to claude-plugins/tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md diff --git a/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/skill-fired.md b/claude-plugins/tools/evals/project-info-reports-versions/graders/skill-fired.md similarity index 100% rename from claude-plugins/spring-tools/evals/project-info-reports-versions/graders/skill-fired.md rename to claude-plugins/tools/evals/project-info-reports-versions/graders/skill-fired.md diff --git a/claude-plugins/spring-tools/evals/project-info-reports-versions/graders/used-java-version-tool.md b/claude-plugins/tools/evals/project-info-reports-versions/graders/used-java-version-tool.md similarity index 100% rename from claude-plugins/spring-tools/evals/project-info-reports-versions/graders/used-java-version-tool.md rename to claude-plugins/tools/evals/project-info-reports-versions/graders/used-java-version-tool.md diff --git a/claude-plugins/spring-tools/evals/project-info-reports-versions/prompt.md b/claude-plugins/tools/evals/project-info-reports-versions/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/project-info-reports-versions/prompt.md rename to claude-plugins/tools/evals/project-info-reports-versions/prompt.md diff --git a/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md b/claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md similarity index 100% rename from claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md rename to claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md diff --git a/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md b/claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md similarity index 100% rename from claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md rename to claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md diff --git a/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md b/claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md similarity index 100% rename from claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md rename to claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md diff --git a/claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/prompt.md b/claude-plugins/tools/evals/quickfix-explains-diagnostic-code/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/quickfix-explains-diagnostic-code/prompt.md rename to claude-plugins/tools/evals/quickfix-explains-diagnostic-code/prompt.md diff --git a/claude-plugins/tools/evals/record-mocks.mjs b/claude-plugins/tools/evals/record-mocks.mjs index 734769fda6..ef287efce7 100644 --- a/claude-plugins/tools/evals/record-mocks.mjs +++ b/claude-plugins/tools/evals/record-mocks.mjs @@ -13,7 +13,7 @@ // Records the MCP mocks for the plugin's behavioral eval suite (claude plugin eval) from the real // language server: starts launcher.js over MCP stdio against a copy of the sf7-validation test // project, calls every tool the eval cases may use and writes the answers as -// spring-tools/evals/mocks/spring-tools-mcp/.md plus the saved tools/list as _tools.json. +// tools/evals/mocks/spring-tools-mcp/.md plus the saved tools/list as _tools.json. // Workspace paths are rewritten to /workspace so the recordings are stable across machines. // Needs the language server JAR in the plugin (claude-plugins/update-local-jars.sh) or // SPRING_TOOLS_LS_JAR, a Java 21+ runtime and network access (spring.io, Maven Central). @@ -32,10 +32,10 @@ const here = dirname(fileURLToPath(import.meta.url)); const repoRoot = resolve(here, '..', '..', '..'); const pluginDir = join(repoRoot, 'claude-plugins', 'spring-tools'); const { defaultInstallDir } = createRequire(import.meta.url)(join(pluginDir, 'install.js')); -const mocksDir = join(pluginDir, 'evals', 'mocks', 'spring-tools-mcp'); +const mocksDir = join(here, 'mocks', 'spring-tools-mcp'); // Case-level override: the fixture only yields version diagnostics by itself, so the validate case // gets a recording taken after a redundant @Autowired constructor was added to the application class. -const validateCaseMocksDir = join(pluginDir, 'evals', 'validate-finds-spring-problems', 'mocks', 'spring-tools-mcp'); +const validateCaseMocksDir = join(here, 'validate-finds-spring-problems', 'mocks', 'spring-tools-mcp'); const JAR_NAME = 'spring-boot-language-server-standalone-exec.jar'; const args = process.argv.slice(2); @@ -50,7 +50,7 @@ if (!existsSync(jarPath)) { process.exit(2); } -const stagingRoot = mkdtempSync(join(pluginDir, 'evals', '.record-mocks-')); +const stagingRoot = mkdtempSync(join(here, '.record-mocks-')); const stagedMocksDir = join(stagingRoot, 'suite'); const stagedValidateMocksDir = join(stagingRoot, 'validate'); mkdirSync(stagedMocksDir, { recursive: true }); diff --git a/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md b/claude-plugins/tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md similarity index 100% rename from claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md rename to claude-plugins/tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md diff --git a/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/skill-fired.md b/claude-plugins/tools/evals/refresh-reindexes-workspace/graders/skill-fired.md similarity index 100% rename from claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/skill-fired.md rename to claude-plugins/tools/evals/refresh-reindexes-workspace/graders/skill-fired.md diff --git a/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md b/claude-plugins/tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md similarity index 100% rename from claude-plugins/spring-tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md rename to claude-plugins/tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md diff --git a/claude-plugins/spring-tools/evals/refresh-reindexes-workspace/prompt.md b/claude-plugins/tools/evals/refresh-reindexes-workspace/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/refresh-reindexes-workspace/prompt.md rename to claude-plugins/tools/evals/refresh-reindexes-workspace/prompt.md diff --git a/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md b/claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md similarity index 100% rename from claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md rename to claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md diff --git a/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md b/claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md similarity index 100% rename from claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md rename to claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md diff --git a/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md b/claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md similarity index 100% rename from claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md rename to claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md diff --git a/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md b/claude-plugins/tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md similarity index 100% rename from claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md rename to claude-plugins/tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md diff --git a/claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/prompt.md b/claude-plugins/tools/evals/reviewer-agent-reviews-project/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/reviewer-agent-reviews-project/prompt.md rename to claude-plugins/tools/evals/reviewer-agent-reviews-project/prompt.md diff --git a/claude-plugins/tools/evals/run-claude-evals.mjs b/claude-plugins/tools/evals/run-claude-evals.mjs new file mode 100644 index 0000000000..fc2caec9d8 --- /dev/null +++ b/claude-plugins/tools/evals/run-claude-evals.mjs @@ -0,0 +1,57 @@ +#!/usr/bin/env node +/******************************************************************************* + * Copyright (c) 2026 Broadcom + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Broadcom - initial API and implementation + *******************************************************************************/ + +import { spawnSync } from 'node:child_process'; +import { cpSync, mkdirSync, mkdtempSync, rmSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { basename, dirname, join, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const here = dirname(fileURLToPath(import.meta.url)); +const pluginDir = resolve(here, '..', '..', 'spring-tools'); + +export function stagePlugin(destination) { + cpSync(pluginDir, destination, { + recursive: true, + filter: (source) => source === pluginDir + || (source !== join(pluginDir, 'evals') && !['language-server', 'node_modules'].includes(basename(source))), + }); + cpSync(here, join(destination, 'evals'), { + recursive: true, + filter: (source) => source !== join(here, 'results'), + }); +} + +if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) { + const temporaryDir = mkdtempSync(join(tmpdir(), 'spring-tools-evals-')); + try { + const stagedPlugin = join(temporaryDir, 'spring-tools'); + const resultsDir = join(here, 'results'); + stagePlugin(stagedPlugin); + mkdirSync(resultsDir, { recursive: true }); + const result = spawnSync(process.env.CLAUDE_CLI || 'claude', [ + 'plugin', 'eval', stagedPlugin, + '--output-dir', resultsDir, + '--report', join(resultsDir, 'report.html'), + ...process.argv.slice(2), + ], { stdio: 'inherit' }); + if (result.error) { + throw result.error; + } + if (result.signal) { + console.error(`Claude eval terminated by ${result.signal}`); + } + process.exitCode = result.status ?? 1; + } finally { + rmSync(temporaryDir, { recursive: true, force: true }); + } +} diff --git a/claude-plugins/spring-tools/evals/spring-review-skill/graders/skill-fired.md b/claude-plugins/tools/evals/spring-review-skill/graders/skill-fired.md similarity index 100% rename from claude-plugins/spring-tools/evals/spring-review-skill/graders/skill-fired.md rename to claude-plugins/tools/evals/spring-review-skill/graders/skill-fired.md diff --git a/claude-plugins/spring-tools/evals/spring-review-skill/prompt.md b/claude-plugins/tools/evals/spring-review-skill/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/spring-review-skill/prompt.md rename to claude-plugins/tools/evals/spring-review-skill/prompt.md diff --git a/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md b/claude-plugins/tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md similarity index 100% rename from claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md rename to claude-plugins/tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md diff --git a/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/names-both-versions.md b/claude-plugins/tools/evals/spring-versions-checks-support/graders/names-both-versions.md similarity index 100% rename from claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/names-both-versions.md rename to claude-plugins/tools/evals/spring-versions-checks-support/graders/names-both-versions.md diff --git a/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/skill-fired.md b/claude-plugins/tools/evals/spring-versions-checks-support/graders/skill-fired.md similarity index 100% rename from claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/skill-fired.md rename to claude-plugins/tools/evals/spring-versions-checks-support/graders/skill-fired.md diff --git a/claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md b/claude-plugins/tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md similarity index 100% rename from claude-plugins/spring-tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md rename to claude-plugins/tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md diff --git a/claude-plugins/spring-tools/evals/spring-versions-checks-support/prompt.md b/claude-plugins/tools/evals/spring-versions-checks-support/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/spring-versions-checks-support/prompt.md rename to claude-plugins/tools/evals/spring-versions-checks-support/prompt.md diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md b/claude-plugins/tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md similarity index 100% rename from claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md rename to claude-plugins/tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md b/claude-plugins/tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md similarity index 100% rename from claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md rename to claude-plugins/tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/skill-fired.md b/claude-plugins/tools/evals/validate-finds-spring-problems/graders/skill-fired.md similarity index 100% rename from claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/skill-fired.md rename to claude-plugins/tools/evals/validate-finds-spring-problems/graders/skill-fired.md diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md b/claude-plugins/tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md similarity index 100% rename from claude-plugins/spring-tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md rename to claude-plugins/tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md b/claude-plugins/tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md similarity index 100% rename from claude-plugins/spring-tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md rename to claude-plugins/tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md diff --git a/claude-plugins/spring-tools/evals/validate-finds-spring-problems/prompt.md b/claude-plugins/tools/evals/validate-finds-spring-problems/prompt.md similarity index 100% rename from claude-plugins/spring-tools/evals/validate-finds-spring-problems/prompt.md rename to claude-plugins/tools/evals/validate-finds-spring-problems/prompt.md diff --git a/claude-plugins/tools/test/plugin-config.test.mjs b/claude-plugins/tools/test/plugin-config.test.mjs index a3ae877d32..d7816f3ece 100644 --- a/claude-plugins/tools/test/plugin-config.test.mjs +++ b/claude-plugins/tools/test/plugin-config.test.mjs @@ -10,11 +10,13 @@ *******************************************************************************/ import assert from 'node:assert/strict'; -import { existsSync, readFileSync, readdirSync } from 'node:fs'; +import { existsSync, mkdtempSync, readFileSync, readdirSync, rmSync } from 'node:fs'; +import { tmpdir } from 'node:os'; import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; import { test } from 'node:test'; +import { stagePlugin } from '../evals/run-claude-evals.mjs'; import { checkEvals, HOOK_SERVER, @@ -72,7 +74,23 @@ test('every MCP tool has positive behavioral eval coverage', () => { const agentNames = readdirSync(join(pluginDir, 'agents')) .filter((file) => file.endsWith('.md')) .map((file) => file.replace(/\.md$/, '')); - assert.deepEqual(checkEvals(join(pluginDir, 'evals'), tools, skillNames, agentNames), []); + assert.deepEqual(checkEvals(join(here, '..', 'evals'), tools, skillNames, agentNames), []); +}); + +test('eval staging combines the plugin and its external cases without changing the published plugin', () => { + const tempDir = mkdtempSync(join(tmpdir(), 'spring-tools-eval-test-')); + try { + const stagedPlugin = join(tempDir, 'plugin'); + stagePlugin(stagedPlugin); + assert.ok(existsSync(join(stagedPlugin, '.claude-plugin', 'plugin.json'))); + assert.ok(existsSync(join(stagedPlugin, 'skills', 'spring-review', 'SKILL.md'))); + assert.ok(existsSync(join(stagedPlugin, 'evals', 'validate-finds-spring-problems', 'prompt.md'))); + assert.ok(existsSync(join(stagedPlugin, 'evals', 'mocks', 'spring-tools-mcp', '_tools.json'))); + assert.ok(!existsSync(join(stagedPlugin, 'evals', 'results'))); + assert.ok(!existsSync(join(pluginDir, 'evals', 'validate-finds-spring-problems', 'prompt.md'))); + } finally { + rmSync(tempDir, { recursive: true, force: true }); + } }); test('the quickfix skill reads explanations by diagnostic code and may look up the Spring Boot version', () => {