From c6340bd756c9fd07c234ca84ca4df823feb16a42 Mon Sep 17 00:00:00 2001 From: Patrick Baumgartner Date: Fri, 9 Oct 2026 20:12:30 +0200 Subject: [PATCH 1/5] 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/5] 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', () => { From 4ed06efe79f83951e3831146aafab79e9db69866 Mon Sep 17 00:00:00 2001 From: Patrick Baumgartner Date: Fri, 9 Oct 2026 20:12:30 +0200 Subject: [PATCH 3/5] GH-2031: Add cross-host Spring Tools plugin support Fixes gh-2031 Signed-off-by: Patrick Baumgartner --- .agents/plugins/marketplace.json | 20 ++ .github/workflows/claude-plugin-check.yml | 4 +- .github/workflows/snapshot-standalone-ls.yml | 12 +- .../agents/spring-reviewer.agent.md | 26 +++ .../com.github.copilot/hooks/hooks.json | 13 ++ claude-plugins/spring-tools/mcp.json | 12 + .../opencode/agents/spring-reviewer.md | 29 +++ .../spring-tools/opencode/opencode.jsonc | 11 + claude-plugins/spring-tools/plugin.json | 22 ++ .../tools/evals/mock-mcp-server.mjs | 128 +++++++++++ .../tools/evals/run-with-copilot.mjs | 214 ++++++++++++++++++ claude-plugins/tools/lib/eval-grading.mjs | 52 +++++ claude-plugins/tools/sync-agent-adapters.mjs | 69 ++++++ .../tools/test/eval-grading.test.mjs | 31 +++ 14 files changed, 637 insertions(+), 6 deletions(-) create mode 100644 .agents/plugins/marketplace.json create mode 100644 claude-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md create mode 100644 claude-plugins/spring-tools/com.github.copilot/hooks/hooks.json create mode 100644 claude-plugins/spring-tools/mcp.json create mode 100644 claude-plugins/spring-tools/opencode/agents/spring-reviewer.md create mode 100644 claude-plugins/spring-tools/opencode/opencode.jsonc create mode 100644 claude-plugins/spring-tools/plugin.json create mode 100644 claude-plugins/tools/evals/mock-mcp-server.mjs create mode 100644 claude-plugins/tools/evals/run-with-copilot.mjs create mode 100644 claude-plugins/tools/lib/eval-grading.mjs create mode 100644 claude-plugins/tools/sync-agent-adapters.mjs create mode 100644 claude-plugins/tools/test/eval-grading.test.mjs diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json new file mode 100644 index 0000000000..92e4c74e59 --- /dev/null +++ b/.agents/plugins/marketplace.json @@ -0,0 +1,20 @@ +{ + "name": "spring-tools-local", + "interface": { + "displayName": "Spring Tools" + }, + "plugins": [ + { + "name": "spring-tools", + "source": { + "source": "local", + "path": "./claude-plugins/spring-tools" + }, + "policy": { + "installation": "AVAILABLE", + "authentication": "ON_INSTALL" + }, + "category": "Developer tools" + } + ] +} diff --git a/.github/workflows/claude-plugin-check.yml b/.github/workflows/claude-plugin-check.yml index 6ba314337e..6649d3168d 100644 --- a/.github/workflows/claude-plugin-check.yml +++ b/.github/workflows/claude-plugin-check.yml @@ -54,8 +54,8 @@ jobs: 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: Check plugin configuration and cross-host adapters + run: node claude-plugins/tools/check-plugin-config.mjs --cross-host - name: Run plugin tooling tests run: node --test --test-reporter=spec 'claude-plugins/tools/test/*.test.mjs' diff --git a/.github/workflows/snapshot-standalone-ls.yml b/.github/workflows/snapshot-standalone-ls.yml index 516250ffc6..802116d6b0 100644 --- a/.github/workflows/snapshot-standalone-ls.yml +++ b/.github/workflows/snapshot-standalone-ls.yml @@ -41,7 +41,7 @@ jobs: echo "S3 path: ${s3_path}" aws s3 cp ./standalone-ls-dist/$jar_file s3://$AWS_S3_BUCKET/$s3_path/$jar_file --no-progress --checksum-algorithm CRC32 aws s3 cp ./standalone-ls-dist/$sha_file s3://$AWS_S3_BUCKET/$s3_path/$sha_file --no-progress --checksum-algorithm CRC32 - - name: Update plugin.json for Snapshot + - name: Update plugin manifest versions for Snapshot id: update-plugin run: | git config --global user.name "@spring-projects/spring-ide-admin" @@ -52,12 +52,16 @@ jobs: # Create or reset a local branch to the current commit (which is what triggered the action) git checkout -B claude-snapshot - # Update the version in plugin.json + # Keep both the Claude Code manifest and the portable Agent Plugins manifest in sync. tmp=$(mktemp) jq --arg v "$version" '.version = $v' claude-plugins/spring-tools/.claude-plugin/plugin.json > "$tmp" && mv "$tmp" claude-plugins/spring-tools/.claude-plugin/plugin.json + tmp=$(mktemp) + jq --arg v "$version" '.version = $v' claude-plugins/spring-tools/plugin.json > "$tmp" && mv "$tmp" claude-plugins/spring-tools/plugin.json - git add claude-plugins/spring-tools/.claude-plugin/plugin.json - git commit -m "Update Claude plugin version to $version" + git add claude-plugins/spring-tools/.claude-plugin/plugin.json claude-plugins/spring-tools/plugin.json + if ! git diff --cached --quiet; then + git commit -m "Update agent plugin versions to $version" + fi # Push to the remote claude-snapshot branch forcefully. # If it doesn't exist, this creates it. If it does exist, it completely overwrites it diff --git a/claude-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md b/claude-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md new file mode 100644 index 0000000000..d93dcfa916 --- /dev/null +++ b/claude-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md @@ -0,0 +1,26 @@ +--- +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 + - search + - spring-tools-mcp/* +--- +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/com.github.copilot/hooks/hooks.json b/claude-plugins/spring-tools/com.github.copilot/hooks/hooks.json new file mode 100644 index 0000000000..1949225b0e --- /dev/null +++ b/claude-plugins/spring-tools/com.github.copilot/hooks/hooks.json @@ -0,0 +1,13 @@ +{ + "version": 1, + "hooks": { + "sessionStart": [ + { + "type": "command", + "bash": "node \"$PLUGIN_ROOT/install.js\" --if-missing", + "powershell": "node \"$env:PLUGIN_ROOT/install.js\" --if-missing", + "timeoutSec": 900 + } + ] + } +} diff --git a/claude-plugins/spring-tools/mcp.json b/claude-plugins/spring-tools/mcp.json new file mode 100644 index 0000000000..421d792222 --- /dev/null +++ b/claude-plugins/spring-tools/mcp.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json", + "mcpServers": { + "spring-tools-mcp": { + "type": "stdio", + "command": "node", + "args": [ + "${PLUGIN_ROOT}/launcher.js" + ] + } + } +} \ No newline at end of file diff --git a/claude-plugins/spring-tools/opencode/agents/spring-reviewer.md b/claude-plugins/spring-tools/opencode/agents/spring-reviewer.md new file mode 100644 index 0000000000..e71f9defc3 --- /dev/null +++ b/claude-plugins/spring-tools/opencode/agents/spring-reviewer.md @@ -0,0 +1,29 @@ +--- +description: Reviews Spring Boot projects with Spring Tools diagnostics, bean wiring, endpoints and architecture. Read-only reviewer subagent. +mode: subagent +permission: + read: allow + glob: allow + grep: allow + edit: deny + bash: deny + "spring-tools_*": allow +--- +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/opencode/opencode.jsonc b/claude-plugins/spring-tools/opencode/opencode.jsonc new file mode 100644 index 0000000000..f6aecb92cb --- /dev/null +++ b/claude-plugins/spring-tools/opencode/opencode.jsonc @@ -0,0 +1,11 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "spring-tools": { + "type": "local", + "command": ["node", "{env:SPRING_TOOLS_PLUGIN_ROOT}/launcher.js"], + "enabled": true, + "timeout": 120000 + } + } +} diff --git a/claude-plugins/spring-tools/plugin.json b/claude-plugins/spring-tools/plugin.json new file mode 100644 index 0000000000..54521bdc37 --- /dev/null +++ b/claude-plugins/spring-tools/plugin.json @@ -0,0 +1,22 @@ +{ + "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", + "name": "spring-tools", + "description": "Spring Tools Language Server as an MCP server — Spring Boot diagnostics with fix playbooks, bean/endpoint/architecture insight, version and release information, plus a Spring review agent. Operates standalone without requiring JDT Language Server and watches the workspace for changes. On first run, downloads the language server JAR (checksum-verified) from cdn.spring.io and launches it as a local Java process; requires Java 21+ on PATH.", + "version": "2.5.0", + "author": { + "name": "Spring Tools", + "url": "https://spring.io/tools" + }, + "homepage": "https://spring.io/tools", + "repository": "https://github.com/spring-projects/spring-tools", + "license": "EPL-1.0", + "keywords": [ + "spring", + "spring-boot", + "java", + "language-server", + "diagnostics", + "mcp", + "code-review" + ] +} diff --git a/claude-plugins/tools/evals/mock-mcp-server.mjs b/claude-plugins/tools/evals/mock-mcp-server.mjs new file mode 100644 index 0000000000..579c0c7d4a --- /dev/null +++ b/claude-plugins/tools/evals/mock-mcp-server.mjs @@ -0,0 +1,128 @@ +#!/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 + *******************************************************************************/ + +// Stdio MCP server that replays the recorded responses in evals/mocks instead of starting the +// language server. Claude Code mocks MCP servers itself during `claude plugin eval`; Copilot CLI +// has no such feature, so run-with-copilot.mjs points a copy of the plugin at this script. +// +// EVAL_MOCK_DIRS os.delimiter separated mock directories, searched in order +// EVAL_TRACE file the tool calls are appended to (one JSON object per line) +// EVAL_INSTRUCTIONS optional server instructions to report from `initialize` + +import { appendFileSync, existsSync, readFileSync } from 'node:fs'; +import { delimiter, join } from 'node:path'; + +const mockDirs = (process.env.EVAL_MOCK_DIRS ?? '').split(delimiter).filter(Boolean); +const tracePath = process.env.EVAL_TRACE; + +/** First mock file for `name` in the configured directories, or null. */ +function findMock(name) { + // Tool names become file names below. Refuse arbitrary names so a malformed MCP request + // cannot make this local replay server read files outside the selected mock directories. + if (typeof name !== 'string' || !/^[A-Za-z][A-Za-z0-9]*$/.test(name)) { + return null; + } + for (const dir of mockDirs) { + const file = join(dir, `${name}.md`); + if (existsSync(file)) { + return readFileSync(file, 'utf8'); + } + } + return null; +} + +/** Recorded mocks may carry a front matter block with the expected arguments; the body is the response. */ +function mockBody(text) { + return text.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/, ''); +} + +function send(message) { + process.stdout.write(`${JSON.stringify(message)}\n`); +} + +function trace(entry) { + if (tracePath) { + appendFileSync(tracePath, `${JSON.stringify(entry)}\n`); + } +} + +function handle(request) { + const { id, method, params } = request; + if (method === 'initialize') { + return { + protocolVersion: params?.protocolVersion ?? '2024-11-05', + capabilities: { tools: { listChanged: false } }, + serverInfo: { name: 'spring-tools-mcp', version: '0.0.0-eval' }, + ...(process.env.EVAL_INSTRUCTIONS ? { instructions: process.env.EVAL_INSTRUCTIONS } : {}), + }; + } + if (method === 'ping') { + return {}; + } + if (method === 'tools/list') { + for (const dir of mockDirs) { + const file = join(dir, '_tools.json'); + if (existsSync(file)) { + return JSON.parse(readFileSync(file, 'utf8')); + } + } + throw new Error(`no recorded tools/list (_tools.json) in ${mockDirs.join(delimiter)}`); + } + if (method === 'tools/call') { + const name = params?.name; + trace({ tool: name, input: JSON.stringify(params?.arguments ?? {}) }); + if (typeof name !== 'string' || !/^[A-Za-z][A-Za-z0-9]*$/.test(name)) { + return { isError: true, content: [{ type: 'text', text: 'invalid tool name' }] }; + } + const mock = findMock(name); + if (mock === null) { + return { isError: true, content: [{ type: 'text', text: `no recorded response for ${name}` }] }; + } + return { content: [{ type: 'text', text: mockBody(mock).trim() }] }; + } + if (method?.startsWith('notifications/')) { + return null; + } + const error = new Error(`unsupported method ${method}`); + error.code = -32601; + throw error; +} + +let buffer = ''; +process.stdin.setEncoding('utf8'); +process.stdin.on('data', (chunk) => { + buffer += chunk; + let newline; + while ((newline = buffer.indexOf('\n')) !== -1) { + const line = buffer.slice(0, newline).trim(); + buffer = buffer.slice(newline + 1); + if (!line) { + continue; + } + let request; + try { + request = JSON.parse(line); + } catch { + continue; + } + try { + const result = handle(request); + if (request.id !== undefined && result !== null) { + send({ jsonrpc: '2.0', id: request.id, result }); + } + } catch (error) { + if (request.id !== undefined) { + send({ jsonrpc: '2.0', id: request.id, error: { code: error.code ?? -32603, message: error.message } }); + } + } + } +}); diff --git a/claude-plugins/tools/evals/run-with-copilot.mjs b/claude-plugins/tools/evals/run-with-copilot.mjs new file mode 100644 index 0000000000..26ffe02e30 --- /dev/null +++ b/claude-plugins/tools/evals/run-with-copilot.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 + *******************************************************************************/ + +// Runs the plugin's eval suite (claude-plugins/spring-tools/evals) with GitHub Copilot CLI, the +// same way `claude plugin eval` runs it with Claude Code: +// +// node claude-plugins/tools/evals/run-with-copilot.mjs [--case ] [--model ] [--keep] +// +// Each case gets a throwaway workspace with the sf7-validation fixture and a throwaway copy of the +// plugin whose MCP server is mock-mcp-server.mjs, so no language server and no network are needed. +// The trace is read back from the Copilot debug log (tool calls) and the mock server (MCP calls), +// then the recorded graders are applied: `tool_used` and `regex` locally, `llm` through one extra +// Copilot call that answers PASS or FAIL. + +import { spawnSync } from 'node:child_process'; +import { appendFileSync, cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { delimiter, dirname, join, resolve } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +import { PLUGIN_DIR, MCP_SERVER_NAME, parseFrontMatter } from '../lib/plugin-config.mjs'; +import { combineToolTraces, copilotAgentId, toolGradePasses } from '../lib/eval-grading.mjs'; + +const here = dirname(fileURLToPath(import.meta.url)); +const repoRoot = resolve(here, '..', '..', '..'); +const pluginDir = join(repoRoot, PLUGIN_DIR); +const evalsDir = join(pluginDir, 'evals'); +const fixture = join(repoRoot, 'headless-services/spring-boot-language-server/src/test/resources/test-projects/sf7-validation'); +const mcpToolNames = new Set(JSON.parse(readFileSync(join(evalsDir, 'mocks', MCP_SERVER_NAME, '_tools.json'), 'utf8')).tools.map(({ name }) => name)); + +const args = process.argv.slice(2); +const only = valueOf('--case'); +const model = valueOf('--model'); +const keep = args.includes('--keep'); + +function valueOf(flag) { + const index = args.indexOf(flag); + return index === -1 ? undefined : args[index + 1]; +} + +function readCase(name) { + const text = readFileSync(join(evalsDir, name, 'prompt.md'), 'utf8'); + const front = parseFrontMatter(text) ?? {}; + const prompt = text.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/, '').trim(); + const gradersDir = join(evalsDir, name, 'graders'); + const graders = readdirSync(gradersDir).filter((f) => f.endsWith('.md')).map((file) => { + const graderText = readFileSync(join(gradersDir, file), 'utf8'); + return { file, ...parseFrontMatter(graderText), rubric: graderText.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/, '').trim() }; + }); + return { name, front, prompt, graders }; +} + +/** Copy of the plugin whose MCP server replays the recorded mocks of this case. */ +function stagePlugin(root, caseName, tracePath) { + const staged = join(root, 'plugin'); + cpSync(pluginDir, staged, { recursive: true, filter: (src) => !src.includes(`${join(PLUGIN_DIR, 'language-server')}`) }); + const caseMocks = join(evalsDir, caseName, 'mocks', MCP_SERVER_NAME); + const mockDirs = [existsSync(caseMocks) ? caseMocks : null, join(evalsDir, 'mocks', MCP_SERVER_NAME)].filter(Boolean); + const mcp = JSON.parse(readFileSync(join(staged, 'mcp.json'), 'utf8')); + mcp.mcpServers[MCP_SERVER_NAME] = { + type: 'stdio', + command: 'node', + args: [join(here, 'mock-mcp-server.mjs')], + env: { EVAL_MOCK_DIRS: mockDirs.join(delimiter), EVAL_TRACE: tracePath }, + }; + writeFileSync(join(staged, 'mcp.json'), `${JSON.stringify(mcp, null, 2)}\n`); + // The session hook only downloads the language server, which the mocked run never starts. + rmSync(join(staged, 'com.github.copilot', 'hooks'), { recursive: true, force: true }); + return staged; +} + +/** Runs one Copilot prompt and returns { answer, trace }. */ +function runCopilot({ prompt, plugin, workspace, logs, agent }) { + const copilotArgs = [ + '--plugin-dir', plugin, + '--allow-all-tools', '--allow-all-mcp-server-instructions', + '--no-ask-user', '--no-custom-instructions', '--disable-builtin-mcps', + '--log-level', 'debug', '--log-dir', logs, + '-p', prompt, '--silent', + ]; + if (agent) { + copilotArgs.push('--agent', agent); + } + if (model) { + copilotArgs.push('--model', model); + } + const result = spawnSync('copilot', copilotArgs, { cwd: workspace, encoding: 'utf8', timeout: 600000, env: { ...process.env, COPILOT_DISABLE_TELEMETRY: '1' } }); + return { answer: result.stdout ?? '', stderr: result.stderr ?? '', status: result.status }; +} + +/** Tool calls Copilot made, read back from its debug log. */ +function logTrace(logs) { + const entries = []; + for (const file of existsSync(logs) ? readdirSync(logs) : []) { + const text = readFileSync(join(logs, file), 'utf8'); + for (const match of text.matchAll(/"name":\s*"([\w.-]+)",\s*"arguments":\s*"((?:[^"\\]|\\.)*)"/g)) { + entries.push({ tool: match[1], input: match[2].replace(/\\"/g, '"').replace(/\\\\/g, '\\') }); + } + } + return entries; +} + +/** A second, cheap Copilot call that judges the answer against the rubric of an `llm` grader. */ +function llmVerdict(grader, answer, workspace) { + const prompt = [ + 'You are grading the answer of an AI assistant against a rubric. Do not use any tools.', + 'Reply with exactly one word: PASS or FAIL.', + '', '## Rubric', grader.rubric, + '', '## Answer', answer.slice(0, 12000), + ].join('\n'); + // Prompt mode requires an explicit permission mode. Keep the judge read-only even then. + const result = spawnSync('copilot', ['--allow-all-tools', '--available-tools=view', '--no-ask-user', '--no-custom-instructions', '--disable-builtin-mcps', '-p', prompt, '--silent'], { cwd: workspace, encoding: 'utf8', timeout: 300000 }); + const verdict = (result.stdout ?? '').trim().toUpperCase(); + return { pass: result.status === 0 && verdict === 'PASS', raw: verdict.slice(0, 200) }; +} + +function gradeCase(testCase, answer, trace, workspace) { + const results = []; + for (const grader of testCase.graders) { + const weight = Number(grader.weight ?? 1); + if (grader.type === 'tool_used') { + results.push({ file: grader.file, weight, pass: toolGradePasses(grader, trace), detail: grader.tool }); + } else if (grader.type === 'regex') { + const flags = grader.flags ?? ''; + results.push({ file: grader.file, weight, pass: new RegExp(grader.pattern, flags).test(answer), detail: grader.pattern }); + } else if (grader.type === 'llm') { + const verdict = llmVerdict(grader, answer, workspace); + results.push({ file: grader.file, weight, pass: verdict.pass, detail: verdict.raw }); + } else { + results.push({ file: grader.file, weight, pass: false, detail: `unsupported grader type '${grader.type}'` }); + } + } + return results; +} + +const caseNames = readdirSync(evalsDir) + .filter((d) => existsSync(join(evalsDir, d, 'prompt.md'))) + .filter((d) => !only || d === only) + .sort(); +if (caseNames.length === 0) { + console.error(only ? `no eval case named '${only}'` : 'no eval cases found'); + process.exit(2); +} +if (spawnSync('copilot', ['--version'], { encoding: 'utf8' }).status !== 0) { + console.error('GitHub Copilot CLI is not available on the PATH'); + process.exit(2); +} + +const root = mkdtempSync(join(tmpdir(), 'spring-tools-evals-')); +const summary = []; +let failed = 0; +try { + for (const name of caseNames) { + const testCase = readCase(name); + const caseRoot = join(root, name); + const workspace = join(caseRoot, 'workspace'); + const logs = join(caseRoot, 'logs'); + mkdirSync(workspace, { recursive: true }); + mkdirSync(logs, { recursive: true }); + cpSync(fixture, join(workspace, 'sf7-validation'), { recursive: true, filter: (src) => !/[/\\](target|build)([/\\]|$)/.test(src) }); + const tracePath = join(caseRoot, 'mcp-trace.jsonl'); + writeFileSync(tracePath, ''); + const plugin = stagePlugin(caseRoot, name, tracePath); + + // Copilot selects a custom agent through --agent instead of a delegation tool. + const agentGrader = testCase.graders.find((g) => g.type === 'tool_used' && g.tool === 'Agent'); + // Copilot custom-agent IDs are derived from the agent filename, not plugin-qualified. + const agent = agentGrader ? copilotAgentId(agentGrader.input_match) : undefined; + + const { answer, stderr, status } = runCopilot({ prompt: testCase.prompt, plugin, workspace, logs, agent }); + const mockTrace = readFileSync(tracePath, 'utf8').split('\n').filter(Boolean) + .map((line) => JSON.parse(line)); + const trace = [ + ...combineToolTraces(logTrace(logs), mockTrace, mcpToolNames), + ...(agent ? [{ tool: 'agent', input: JSON.stringify({ agent }) }] : []), + ]; + writeFileSync(join(caseRoot, 'answer.txt'), answer); + const results = status === 0 + ? gradeCase(testCase, answer, trace, workspace) + : [{ file: 'run', weight: 1, pass: false, detail: `copilot exited with ${status}: ${stderr.trim().slice(-300)}` }]; + + const total = results.reduce((sum, r) => sum + r.weight, 0); + const scored = results.filter((r) => r.pass).reduce((sum, r) => sum + r.weight, 0); + const pass = results.every((r) => r.pass); + failed += pass ? 0 : 1; + summary.push({ name, pass, scored, total, results, dir: caseRoot }); + console.log(`${pass ? 'PASS' : 'FAIL'} ${name} (${scored}/${total})`); + for (const result of results.filter((r) => !r.pass)) { + console.log(` - ${result.file}: ${result.detail}`); + } + } +} finally { + if (!keep) { + rmSync(root, { recursive: true, force: true }); + } else { + console.log(`\nartifacts: ${root}`); + } +} + +if (process.env.GITHUB_STEP_SUMMARY) { + const rows = summary.map((s) => `| ${s.name} | ${s.pass ? 'pass' : 'fail'} | ${s.scored}/${s.total} |`).join('\n'); + appendFileSync(process.env.GITHUB_STEP_SUMMARY, `\n### Copilot CLI evals\n\n| case | result | score |\n| --- | --- | --- |\n${rows}\n`); +} +console.log(`\n${summary.length - failed}/${summary.length} cases passed`); +process.exit(failed === 0 ? 0 : 1); diff --git a/claude-plugins/tools/lib/eval-grading.mjs b/claude-plugins/tools/lib/eval-grading.mjs new file mode 100644 index 0000000000..b768e7e538 --- /dev/null +++ b/claude-plugins/tools/lib/eval-grading.mjs @@ -0,0 +1,52 @@ +/******************************************************************************* + * 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 { MCP_SERVER_NAME, SCOPED_TOOL_PREFIX } from './plugin-config.mjs'; + +const TOOL_ALIASES = { Read: ['view'], Skill: ['skill'], Glob: ['glob'], Grep: ['grep'], Bash: ['bash'], Agent: ['agent'] }; + +/** Copilot selects plugin-provided agents by the file-derived id, without a plugin namespace. */ +export function copilotAgentId(inputMatch) { + return typeof inputMatch === 'string' && /^[\w-]+$/.test(inputMatch) ? inputMatch : undefined; +} + +/** Count trace entries matching a grader's tool name and optional JSON-input pattern. */ +export function countToolMatches(grader, trace) { + const wanted = grader.tool.startsWith(SCOPED_TOOL_PREFIX) + ? [`${MCP_SERVER_NAME}-${grader.tool.slice(SCOPED_TOOL_PREFIX.length)}`] + : (TOOL_ALIASES[grader.tool] ?? [grader.tool]); + const pattern = grader.input_match ? new RegExp(grader.input_match) : null; + return trace.filter((entry) => wanted.includes(entry.tool) && (!pattern || pattern.test(entry.input))).length; +} + +/** Apply the eval grader's inclusive min/max occurrence bounds (default: at least one). */ +export function toolGradePasses(grader, trace) { + const count = countToolMatches(grader, trace); + const min = grader.min === undefined ? 1 : Number(grader.min); + const max = grader.max === undefined ? Number.POSITIVE_INFINITY : Number(grader.max); + return Number.isFinite(min) && min >= 0 && !Number.isNaN(max) && max >= min && count >= min && count <= max; +} + +/** Prefer the mock server's authoritative MCP trace over duplicate MCP entries in Copilot's logs. */ +export function combineToolTraces(logEntries, mockEntries, mcpToolNames) { + const isMcpToolLogEntry = (tool) => { + const candidates = [ + tool, + tool.startsWith(`${MCP_SERVER_NAME}-`) ? tool.slice(MCP_SERVER_NAME.length + 1) : null, + tool.split('__').at(-1), + ]; + return candidates.some((candidate) => mcpToolNames.has(candidate)); + }; + return [ + ...logEntries.filter((entry) => !isMcpToolLogEntry(entry.tool)), + ...mockEntries.map((entry) => ({ ...entry, tool: `${MCP_SERVER_NAME}-${entry.tool}` })), + ]; +} diff --git a/claude-plugins/tools/sync-agent-adapters.mjs b/claude-plugins/tools/sync-agent-adapters.mjs new file mode 100644 index 0000000000..4289775905 --- /dev/null +++ b/claude-plugins/tools/sync-agent-adapters.mjs @@ -0,0 +1,69 @@ +#!/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 + *******************************************************************************/ + +// Regenerates host-specific reviewer wrappers from the portable spring-review skill. +// Run with --write after changing skills/spring-review/SKILL.md. + +import { readFileSync, writeFileSync } from 'node:fs'; +import { dirname, join } from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const here = dirname(fileURLToPath(import.meta.url)); +const plugin = join(here, '..', 'spring-tools'); +const write = process.argv.includes('--write'); + +function splitFrontMatter(text, file) { + const match = text.match(/^(---\r?\n[\s\S]*?\r?\n---\r?\n)([\s\S]*)$/); + if (!match) throw new Error(`${file} has no YAML front matter`); + return { frontMatter: match[1], body: match[2].trim() }; +} + +const skill = splitFrontMatter(readFileSync(join(plugin, 'skills/spring-review/SKILL.md'), 'utf8'), 'spring-review/SKILL.md'); +const claudeFile = join(plugin, 'agents/spring-reviewer.md'); +const copilotFile = join(plugin, 'com.github.copilot/agents/spring-reviewer.agent.md'); +const openCodeFile = join(plugin, 'opencode/agents/spring-reviewer.md'); +const claude = splitFrontMatter(readFileSync(claudeFile, 'utf8'), 'agents/spring-reviewer.md'); +const copilot = splitFrontMatter(readFileSync(copilotFile, 'utf8'), 'Copilot spring-reviewer.agent.md'); + +const openCodeFrontMatter = `--- +description: Reviews Spring Boot projects with Spring Tools diagnostics, bean wiring, endpoints and architecture. Read-only reviewer subagent. +mode: subagent +permission: + read: allow + glob: allow + grep: allow + edit: deny + bash: deny + "spring-tools_*": allow +--- +`; + +const outputs = [ + [claudeFile, claude.frontMatter, skill.body], + [copilotFile, copilot.frontMatter, skill.body], + [openCodeFile, openCodeFrontMatter, skill.body], +]; +const mismatches = []; +for (const [file, frontMatter, body] of outputs) { + const expected = `${frontMatter}${body}\n`; + let actual; + try { actual = readFileSync(file, 'utf8'); } catch { actual = ''; } + if (actual !== expected) { + if (write) { + writeFileSync(file, expected); + } else { + mismatches.push(file.slice(plugin.length + 1)); + } + } +} +if (mismatches.length) { + console.error(`reviewer adapters drifted from skills/spring-review/SKILL.md: ${mismatches.join(', ')}`); + process.exit(1); +} +console.log(write ? 'reviewer adapters generated' : 'reviewer adapters match shared spring-review skill'); diff --git a/claude-plugins/tools/test/eval-grading.test.mjs b/claude-plugins/tools/test/eval-grading.test.mjs new file mode 100644 index 0000000000..13897d63f1 --- /dev/null +++ b/claude-plugins/tools/test/eval-grading.test.mjs @@ -0,0 +1,31 @@ +/******************************************************************************* + * 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 assert from 'node:assert/strict'; +import { test } from 'node:test'; + +import { combineToolTraces, countToolMatches } from '../lib/eval-grading.mjs'; + +test('MCP calls from Copilot logs are not counted twice when the mock server traced them', () => { + const trace = combineToolTraces( + [ + { tool: 'spring-tools-mcp-getProjectList', input: '{"page":1}' }, + { tool: 'view', input: '{"file_path":"README.md"}' }, + ], + [{ tool: 'getProjectList', input: '{"page":1}' }], + new Set(['getProjectList']), + ); + + assert.equal(countToolMatches({ + tool: 'mcp__plugin_spring-tools_spring-tools-mcp__getProjectList', + }, trace), 1); + assert.equal(trace.filter((entry) => entry.tool === 'view').length, 1); +}); From e9064ccf0864abd5daf7059c47dd6de058969712 Mon Sep 17 00:00:00 2001 From: Patrick Baumgartner Date: Mon, 23 Nov 2026 07:10:02 +0100 Subject: [PATCH 4/5] GH-2031: Sync cross-host evals and reviewer adapters Signed-off-by: Patrick Baumgartner --- .../com.github.copilot/agents/spring-reviewer.agent.md | 6 +++++- .../spring-tools/opencode/agents/spring-reviewer.md | 6 +++++- claude-plugins/tools/evals/run-with-copilot.mjs | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/claude-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md b/claude-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md index d93dcfa916..fe481854cd 100644 --- a/claude-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md +++ b/claude-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md @@ -10,6 +10,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. @@ -19,8 +21,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/opencode/agents/spring-reviewer.md b/claude-plugins/spring-tools/opencode/agents/spring-reviewer.md index e71f9defc3..32b8074b41 100644 --- a/claude-plugins/spring-tools/opencode/agents/spring-reviewer.md +++ b/claude-plugins/spring-tools/opencode/agents/spring-reviewer.md @@ -13,6 +13,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. @@ -22,8 +24,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/evals/run-with-copilot.mjs b/claude-plugins/tools/evals/run-with-copilot.mjs index 26ffe02e30..ec3208aa5f 100644 --- a/claude-plugins/tools/evals/run-with-copilot.mjs +++ b/claude-plugins/tools/evals/run-with-copilot.mjs @@ -10,7 +10,7 @@ * Broadcom - initial API and implementation *******************************************************************************/ -// Runs the plugin's eval suite (claude-plugins/spring-tools/evals) with GitHub Copilot CLI, the +// Runs the plugin's external eval suite (claude-plugins/tools/evals) with GitHub Copilot CLI, the // same way `claude plugin eval` runs it with Claude Code: // // node claude-plugins/tools/evals/run-with-copilot.mjs [--case ] [--model ] [--keep] @@ -33,7 +33,7 @@ import { combineToolTraces, copilotAgentId, toolGradePasses } from '../lib/eval- const here = dirname(fileURLToPath(import.meta.url)); const repoRoot = resolve(here, '..', '..', '..'); const pluginDir = join(repoRoot, PLUGIN_DIR); -const evalsDir = join(pluginDir, 'evals'); +const evalsDir = here; const fixture = join(repoRoot, 'headless-services/spring-boot-language-server/src/test/resources/test-projects/sf7-validation'); const mcpToolNames = new Set(JSON.parse(readFileSync(join(evalsDir, 'mocks', MCP_SERVER_NAME, '_tools.json'), 'utf8')).tools.map(({ name }) => name)); From 519e22cef913311d7dca783a7daa04e6135dcd3b Mon Sep 17 00:00:00 2001 From: Patrick Baumgartner Date: Fri, 9 Oct 2026 19:24:42 +0200 Subject: [PATCH 5/5] GH-2033: Rename claude-plugins to agent-plugins Fixes gh-2033 Signed-off-by: Patrick Baumgartner --- .agents/plugins/marketplace.json | 2 +- .../convert-openrewrite-to-jdt/SKILL.md | 4 +- ...lugin-check.yml => agent-plugin-check.yml} | 34 +- .github/workflows/release-standalone-ls.yml | 4 +- .github/workflows/snapshot-standalone-ls.yml | 10 +- CLAUDE.md => AGENTS.md | 26 +- README-dev-env.md | 52 ++ README.md | 2 +- RELEASE.md | 26 +- .../.claude-plugin/marketplace.json | 0 .../research-notes/TODO_quickfixes.md | 4 +- .../spring-tools/.claude-plugin/plugin.json | 0 .../spring-tools/.gitignore | 0 .../spring-tools/README.md | 86 ++-- .../spring-tools/agents/spring-reviewer.md | 0 .../agents/spring-reviewer.agent.md | 0 .../com.github.copilot/hooks/hooks.json | 0 .../API_VERSIONING_NOT_CONFIGURED.md | 0 ...ONING_STRATEGY_CONFIGURATION_DUPLICATED.md | 0 ..._PATH_SEGMENT_CONFIGURED_IN_COMBINATION.md | 0 .../explanations/API_VERSION_SYNTAX_ERROR.md | 0 .../BOOT_VERSION_VALIDATION_CODE.md | 0 .../spring-tools/explanations/CRON_FIELD.md | 0 .../spring-tools/explanations/CRON_SYNTAX.md | 0 .../explanations/DOMAIN_ID_FOR_REPOSITORY.md | 0 .../EXTRACT_REQUEST_MAPPING_PARENT_PATH.md | 0 .../FACTORIES_KEY_NOT_SUPPORTED.md | 0 .../spring-tools/explanations/HQL_SYNTAX.md | 0 .../HTTP_SECURITY_AUTHORIZE_HTTP_REQUESTS.md | 0 .../JAVA_AUTOWIRED_CONSTRUCTOR.md | 0 .../JAVA_BEAN_NOT_REGISTERED_IN_AOT.md | 0 ...JAVA_BEAN_POST_PROCESSOR_IGNORED_IN_AOT.md | 0 .../explanations/JAVA_CONCRETE_BEAN_TYPE.md | 0 .../JAVA_CONSTRUCTOR_PARAMETER_INJECTION.md | 0 .../JAVA_FINAL_AUTOWIRED_FIELD.md | 0 .../explanations/JAVA_LAMBDA_DSL.md | 0 .../JAVA_PRECISE_REQUEST_MAPPING.md | 0 .../explanations/JAVA_PRECISE_SCOPE.md | 0 .../explanations/JAVA_PUBLIC_BEAN_METHOD.md | 0 .../explanations/JAVA_REPOSITORY.md | 0 .../JAVA_SPEL_EXPRESSION_SYNTAX.md | 0 .../JAVA_TEST_SPRING_EXTENSION.md | 0 .../explanations/JAVA_TYPE_NOT_SUPPORTED.md | 0 .../JAVA_UNRESOLVED_PLACEHOLDER.md | 0 .../spring-tools/explanations/JPQL_SYNTAX.md | 0 .../MISSING_CONFIGURATION_ANNOTATION.md | 0 .../MISSING_VALIDATED_ANNOTATION.md | 0 .../explanations/MODEL_ATTRIBUTE_NAMES.md | 0 .../MODULITH_APPLICATION_MODULE_LISTENER.md | 0 .../MODULITH_TYPE_REF_VIOLATION.md | 0 .../PATH_IN_CONTROLLER_ANNOTATION.md | 0 .../PROPERTY_PLACE_HOLDER_SYNTAX.md | 0 .../explanations/PROP_DEPRECATED.md | 0 .../explanations/PROP_DUPLICATE_KEY.md | 0 .../PROP_EXPECTED_DOT_OR_LBRACK.md | 0 .../PROP_INVALID_BEAN_NAVIGATION.md | 0 .../PROP_INVALID_BEAN_PROPERTY.md | 0 .../PROP_INVALID_INDEXED_NAVIGATION.md | 0 .../PROP_NON_INTEGER_IN_BRACKETS.md | 0 .../explanations/PROP_NO_MATCHING_RBRACK.md | 0 .../explanations/PROP_PLACEHOLDER_SYNTAX.md | 0 .../explanations/PROP_SYNTAX_ERROR.md | 0 .../explanations/PROP_UNKNOWN_PROPERTY.md | 0 .../PROP_UNRESOLVED_PLACEHOLDER.md | 0 .../explanations/PROP_VALUE_TYPE_MISMATCH.md | 0 .../REGISTRAR_BEAN_DECLARATION.md | 0 .../REGISTRAR_BEAN_INVALID_ANNOTATION.md | 0 .../REST_CONTROLLER_COMBINATION.md | 0 .../SPRING_AI_TOOL_DESCRIPTION_TOO_SHORT.md | 0 .../SPRING_AI_TOOL_MISSING_DESCRIPTION.md | 0 .../SPRING_DATA_STRING_PROPERTY_REFERENCE.md | 0 .../SPRING_JUNIT_CONFIG_COMBINATION.md | 0 .../spring-tools/explanations/SQL_SYNTAX.md | 0 .../VALUE_CLASSPATH_RESOURCE_TYPE.md | 0 .../explanations/WEB_ANNOTATION_NAMES.md | 0 .../WEB_CONFIGURER_CONFIGURATION.md | 0 .../WEB_SECURITY_CONFIGURER_ADAPTER.md | 0 .../explanations/YAML_DEPRECATED_ERROR.md | 0 .../explanations/YAML_DEPRECATED_WARNING.md | 0 .../explanations/YAML_DUPLICATE_KEY.md | 0 .../YAML_EXPECT_BEAN_PROPERTY_NAME.md | 0 .../explanations/YAML_EXPECT_MAPPING.md | 0 .../explanations/YAML_EXPECT_SCALAR.md | 0 .../YAML_EXPECT_TYPE_FOUND_MAPPING.md | 0 .../YAML_EXPECT_TYPE_FOUND_SEQUENCE.md | 0 .../YAML_INVALID_BEAN_PROPERTY.md | 0 .../explanations/YAML_PLACEHOLDER_SYNTAX.md | 0 .../explanations/YAML_SHOULD_ESCAPE.md | 0 .../explanations/YAML_SYNTAX_ERROR.md | 0 .../explanations/YAML_UNKNOWN_PROPERTY.md | 0 .../YAML_UNRESOLVED_PLACEHOLDER.md | 0 .../explanations/YAML_VALUE_TYPE_MISMATCH.md | 0 .../explanations/YamlSchemaProblem.md | 0 .../spring-tools/hooks/hooks.json | 0 .../spring-tools/install.js | 0 .../spring-tools/launcher.js | 0 .../spring-tools/mcp.json | 0 .../opencode/agents/spring-reviewer.md | 0 .../spring-tools/opencode/opencode.jsonc | 0 .../spring-tools/plugin.json | 0 .../spring-tools/skills/architecture/SKILL.md | 0 .../spring-tools/skills/beans/SKILL.md | 0 .../create-spring-boot-project/SKILL.md | 0 .../spring-tools/skills/endpoints/SKILL.md | 0 .../spring-tools/skills/project-info/SKILL.md | 0 .../spring-tools/skills/quickfix/SKILL.md | 0 .../spring-tools/skills/refresh/SKILL.md | 0 .../skills/spring-review/SKILL.md | 0 .../skills/spring-versions/SKILL.md | 0 .../spring-tools/skills/validate/SKILL.md | 0 .../tools/check-explanations.mjs | 4 +- .../tools/check-plugin-config.mjs | 11 +- .../tools/evals/.gitignore | 0 .../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 .../tools/evals/mcp-tools-covered/prompt.md | 0 .../tools/evals/mock-mcp-server.mjs | 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 .../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 | 0 .../tools/evals/run-with-copilot.mjs | 4 +- .../graders/skill-fired.md | 0 .../tools/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/lib/eval-grading.mjs | 0 .../tools/lib/plugin-config.mjs | 36 +- agent-plugins/tools/package.json | 15 + .../tools/smoke/mcp-smoke.mjs | 8 +- .../tools/sync-agent-adapters.mjs | 0 .../tools/test/eval-grading.test.mjs | 0 .../tools/test/explanations.test.mjs | 0 .../tools/test/fixtures/bad-agent.md | 0 .../tools/test/fixtures/bad-hooks.json | 0 .../research-notes/TODO_quickfixes.md | 0 .../spring-tools/explanations/GOOD_CODE.md | 0 .../spring-tools/explanations/ORPHAN_CODE.md | 0 .../spring-tools/explanations/REF_TARGET.md | 0 .../ide/vscode/boot/java/FakeProblemType.java | 2 +- .../tools/test/fixtures/bad-skill.md | 0 .../tools/test/install.test.mjs | 4 +- .../tools/test/launcher.test.mjs | 0 .../tools/test/plugin-config.test.mjs | 451 ++++++++++++++++++ .../update-local-jars.sh | 6 +- claude-plugins/tools/package.json | 15 - .../tools/test/plugin-config.test.mjs | 148 ------ 239 files changed, 661 insertions(+), 301 deletions(-) rename .github/workflows/{claude-plugin-check.yml => agent-plugin-check.yml} (87%) rename CLAUDE.md => AGENTS.md (83%) rename {claude-plugins => agent-plugins}/.claude-plugin/marketplace.json (100%) rename {claude-plugins => agent-plugins}/research-notes/TODO_quickfixes.md (97%) rename {claude-plugins => agent-plugins}/spring-tools/.claude-plugin/plugin.json (100%) rename {claude-plugins => agent-plugins}/spring-tools/.gitignore (100%) rename {claude-plugins => agent-plugins}/spring-tools/README.md (77%) rename {claude-plugins => agent-plugins}/spring-tools/agents/spring-reviewer.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/com.github.copilot/hooks/hooks.json (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/API_VERSIONING_NOT_CONFIGURED.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/API_VERSIONING_STRATEGY_CONFIGURATION_DUPLICATED.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/API_VERSIONING_VIA_PATH_SEGMENT_CONFIGURED_IN_COMBINATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/API_VERSION_SYNTAX_ERROR.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/BOOT_VERSION_VALIDATION_CODE.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/CRON_FIELD.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/CRON_SYNTAX.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/DOMAIN_ID_FOR_REPOSITORY.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/EXTRACT_REQUEST_MAPPING_PARENT_PATH.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/FACTORIES_KEY_NOT_SUPPORTED.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/HQL_SYNTAX.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/HTTP_SECURITY_AUTHORIZE_HTTP_REQUESTS.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_AUTOWIRED_CONSTRUCTOR.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_BEAN_NOT_REGISTERED_IN_AOT.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_BEAN_POST_PROCESSOR_IGNORED_IN_AOT.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_CONCRETE_BEAN_TYPE.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_CONSTRUCTOR_PARAMETER_INJECTION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_FINAL_AUTOWIRED_FIELD.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_LAMBDA_DSL.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_PRECISE_REQUEST_MAPPING.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_PRECISE_SCOPE.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_PUBLIC_BEAN_METHOD.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_REPOSITORY.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_SPEL_EXPRESSION_SYNTAX.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_TEST_SPRING_EXTENSION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_TYPE_NOT_SUPPORTED.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JAVA_UNRESOLVED_PLACEHOLDER.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/JPQL_SYNTAX.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/MISSING_CONFIGURATION_ANNOTATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/MISSING_VALIDATED_ANNOTATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/MODEL_ATTRIBUTE_NAMES.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/MODULITH_APPLICATION_MODULE_LISTENER.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/MODULITH_TYPE_REF_VIOLATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PATH_IN_CONTROLLER_ANNOTATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROPERTY_PLACE_HOLDER_SYNTAX.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_DEPRECATED.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_DUPLICATE_KEY.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_EXPECTED_DOT_OR_LBRACK.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_INVALID_BEAN_NAVIGATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_INVALID_BEAN_PROPERTY.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_INVALID_INDEXED_NAVIGATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_NON_INTEGER_IN_BRACKETS.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_NO_MATCHING_RBRACK.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_PLACEHOLDER_SYNTAX.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_SYNTAX_ERROR.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_UNKNOWN_PROPERTY.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_UNRESOLVED_PLACEHOLDER.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/PROP_VALUE_TYPE_MISMATCH.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/REGISTRAR_BEAN_DECLARATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/REGISTRAR_BEAN_INVALID_ANNOTATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/REST_CONTROLLER_COMBINATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/SPRING_AI_TOOL_DESCRIPTION_TOO_SHORT.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/SPRING_AI_TOOL_MISSING_DESCRIPTION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/SPRING_DATA_STRING_PROPERTY_REFERENCE.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/SPRING_JUNIT_CONFIG_COMBINATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/SQL_SYNTAX.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/VALUE_CLASSPATH_RESOURCE_TYPE.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/WEB_ANNOTATION_NAMES.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/WEB_CONFIGURER_CONFIGURATION.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/WEB_SECURITY_CONFIGURER_ADAPTER.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_DEPRECATED_ERROR.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_DEPRECATED_WARNING.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_DUPLICATE_KEY.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_EXPECT_BEAN_PROPERTY_NAME.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_EXPECT_MAPPING.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_EXPECT_SCALAR.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_EXPECT_TYPE_FOUND_MAPPING.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_EXPECT_TYPE_FOUND_SEQUENCE.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_INVALID_BEAN_PROPERTY.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_PLACEHOLDER_SYNTAX.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_SHOULD_ESCAPE.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_SYNTAX_ERROR.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_UNKNOWN_PROPERTY.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_UNRESOLVED_PLACEHOLDER.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YAML_VALUE_TYPE_MISMATCH.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/explanations/YamlSchemaProblem.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/hooks/hooks.json (100%) rename {claude-plugins => agent-plugins}/spring-tools/install.js (100%) rename {claude-plugins => agent-plugins}/spring-tools/launcher.js (100%) rename {claude-plugins => agent-plugins}/spring-tools/mcp.json (100%) rename {claude-plugins => agent-plugins}/spring-tools/opencode/agents/spring-reviewer.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/opencode/opencode.jsonc (100%) rename {claude-plugins => agent-plugins}/spring-tools/plugin.json (100%) rename {claude-plugins => agent-plugins}/spring-tools/skills/architecture/SKILL.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/skills/beans/SKILL.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/skills/create-spring-boot-project/SKILL.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/skills/endpoints/SKILL.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/skills/project-info/SKILL.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/skills/quickfix/SKILL.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/skills/refresh/SKILL.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/skills/spring-review/SKILL.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/skills/spring-versions/SKILL.md (100%) rename {claude-plugins => agent-plugins}/spring-tools/skills/validate/SKILL.md (100%) rename {claude-plugins => agent-plugins}/tools/check-explanations.mjs (99%) rename {claude-plugins => agent-plugins}/tools/check-plugin-config.mjs (93%) rename {claude-plugins => agent-plugins}/tools/evals/.gitignore (100%) rename {claude-plugins => agent-plugins}/tools/evals/architecture-describes-components/graders/describes-stereotypes.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/architecture-describes-components/graders/lists-the-components.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/architecture-describes-components/graders/skill-fired.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/architecture-describes-components/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/beans-explains-wiring/graders/describes-wiring.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/beans-explains-wiring/graders/names-the-bean-type.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/beans-explains-wiring/graders/skill-fired.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/beans-explains-wiring/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/create-project-routes-to-skill/graders/skill-fired.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/create-project-routes-to-skill/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/endpoints-lists-request-mappings/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/ignores-unrelated-request/graders/answers-the-question.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/ignores-unrelated-request/graders/no-project-lookup.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/ignores-unrelated-request/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/file-changed.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/file-deleted.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/find-beans-by-type.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-bean-details.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-generations.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-logical-structure.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-project-list.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-releases.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mcp-tools-covered/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mock-mcp-server.mjs (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/_tools.json (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/fileChanged.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/fileDeleted.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/findBeansByType.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getBeanDetails.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getGenerations.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getJavaVersion.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getProjectList.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getReleases.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getRequestMappings.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getStereotypesList.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/project-info-reports-versions/graders/skill-fired.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/project-info-reports-versions/graders/used-java-version-tool.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/project-info-reports-versions/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/quickfix-explains-diagnostic-code/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/record-mocks.mjs (97%) rename {claude-plugins => agent-plugins}/tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/refresh-reindexes-workspace/graders/skill-fired.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/refresh-reindexes-workspace/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/reviewer-agent-reviews-project/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/run-claude-evals.mjs (100%) rename {claude-plugins => agent-plugins}/tools/evals/run-with-copilot.mjs (98%) rename {claude-plugins => agent-plugins}/tools/evals/spring-review-skill/graders/skill-fired.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/spring-review-skill/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/spring-versions-checks-support/graders/names-both-versions.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/spring-versions-checks-support/graders/skill-fired.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/spring-versions-checks-support/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/validate-finds-spring-problems/graders/skill-fired.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md (100%) rename {claude-plugins => agent-plugins}/tools/evals/validate-finds-spring-problems/prompt.md (100%) rename {claude-plugins => agent-plugins}/tools/lib/eval-grading.mjs (100%) rename {claude-plugins => agent-plugins}/tools/lib/plugin-config.mjs (95%) create mode 100644 agent-plugins/tools/package.json rename {claude-plugins => agent-plugins}/tools/smoke/mcp-smoke.mjs (98%) rename {claude-plugins => agent-plugins}/tools/sync-agent-adapters.mjs (100%) rename {claude-plugins => agent-plugins}/tools/test/eval-grading.test.mjs (100%) rename {claude-plugins => agent-plugins}/tools/test/explanations.test.mjs (100%) rename {claude-plugins => agent-plugins}/tools/test/fixtures/bad-agent.md (100%) rename {claude-plugins => agent-plugins}/tools/test/fixtures/bad-hooks.json (100%) rename {claude-plugins/tools/test/fixtures/bad-repo/claude-plugins => agent-plugins/tools/test/fixtures/bad-repo/agent-plugins}/research-notes/TODO_quickfixes.md (100%) rename {claude-plugins/tools/test/fixtures/bad-repo/claude-plugins => agent-plugins/tools/test/fixtures/bad-repo/agent-plugins}/spring-tools/explanations/GOOD_CODE.md (100%) rename {claude-plugins/tools/test/fixtures/bad-repo/claude-plugins => agent-plugins/tools/test/fixtures/bad-repo/agent-plugins}/spring-tools/explanations/ORPHAN_CODE.md (100%) rename {claude-plugins/tools/test/fixtures/bad-repo/claude-plugins => agent-plugins/tools/test/fixtures/bad-repo/agent-plugins}/spring-tools/explanations/REF_TARGET.md (100%) rename {claude-plugins => agent-plugins}/tools/test/fixtures/bad-repo/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/FakeProblemType.java (92%) rename {claude-plugins => agent-plugins}/tools/test/fixtures/bad-skill.md (100%) rename {claude-plugins => agent-plugins}/tools/test/install.test.mjs (99%) rename {claude-plugins => agent-plugins}/tools/test/launcher.test.mjs (100%) create mode 100644 agent-plugins/tools/test/plugin-config.test.mjs rename {claude-plugins => agent-plugins}/update-local-jars.sh (86%) delete mode 100644 claude-plugins/tools/package.json delete mode 100644 claude-plugins/tools/test/plugin-config.test.mjs diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json index 92e4c74e59..056d5a9a83 100644 --- a/.agents/plugins/marketplace.json +++ b/.agents/plugins/marketplace.json @@ -8,7 +8,7 @@ "name": "spring-tools", "source": { "source": "local", - "path": "./claude-plugins/spring-tools" + "path": "./agent-plugins/spring-tools" }, "policy": { "installation": "AVAILABLE", diff --git a/.claude/skills/convert-openrewrite-to-jdt/SKILL.md b/.claude/skills/convert-openrewrite-to-jdt/SKILL.md index 1e4cc94214..83315a7492 100644 --- a/.claude/skills/convert-openrewrite-to-jdt/SKILL.md +++ b/.claude/skills/convert-openrewrite-to-jdt/SKILL.md @@ -112,12 +112,12 @@ engine* differ between the two mechanisms: ./mvnw -q -o test -pl commons/commons-rewrite # if you removed a recipe/test from this module ``` -12. **Plugin docs** — if `claude-plugins/spring-tools/explanations/.md` +12. **Plugin docs** — if `agent-plugins/spring-tools/explanations/.md` exists for this diagnostic, check its before/after examples still match; usually no change is needed since that file documents observable behavior, not implementation. 13. **Copyright header** — add/bump the current year in the EPL header of every file - you touch, per this repo's root `CLAUDE.md`. + you touch, per this repo's root `AGENTS.md`. ## Key files diff --git a/.github/workflows/claude-plugin-check.yml b/.github/workflows/agent-plugin-check.yml similarity index 87% rename from .github/workflows/claude-plugin-check.yml rename to .github/workflows/agent-plugin-check.yml index 6649d3168d..b573ec04f0 100644 --- a/.github/workflows/claude-plugin-check.yml +++ b/.github/workflows/agent-plugin-check.yml @@ -1,6 +1,6 @@ -name: Claude Plugin Check +name: Agent Plugin Check -# Keeps the Claude Code plugin under claude-plugins/spring-tools consistent with the +# Keeps the agent plugin under agent-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 @@ -11,24 +11,26 @@ on: branches: - main paths: - - 'claude-plugins/**' + - 'agent-plugins/**' + - '.agents/plugins/marketplace.json' - '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' + - '.github/workflows/agent-plugin-check.yml' pull_request: paths: - - 'claude-plugins/**' + - 'agent-plugins/**' + - '.agents/plugins/marketplace.json' - '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' + - '.github/workflows/agent-plugin-check.yml' workflow_dispatch: inputs: run-evals: @@ -40,7 +42,7 @@ permissions: contents: read concurrency: - group: claude-plugin-check-${{ github.ref }} + group: agent-plugin-check-${{ github.ref }} cancel-in-progress: true jobs: @@ -53,11 +55,11 @@ jobs: 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 + run: node agent-plugins/tools/check-explanations.mjs --require-all --todo - name: Check plugin configuration and cross-host adapters - run: node claude-plugins/tools/check-plugin-config.mjs --cross-host + run: node agent-plugins/tools/check-plugin-config.mjs --cross-host - name: Run plugin tooling tests - run: node --test --test-reporter=spec 'claude-plugins/tools/test/*.test.mjs' + run: node --test --test-reporter=spec 'agent-plugins/tools/test/*.test.mjs' documentation-links: name: Documentation links resolve @@ -70,7 +72,7 @@ jobs: 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 + run: node agent-plugins/tools/check-explanations.mjs --require-all --links plugin-manifest: name: Plugin manifest validates with the Claude Code CLI @@ -85,7 +87,7 @@ jobs: - 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 + "$RUNNER_TEMP/claude-code/node_modules/.bin/claude" plugin validate ./agent-plugins/spring-tools --strict mcp-smoke: name: End-to-end MCP smoke test against a freshly built language server @@ -103,9 +105,9 @@ jobs: 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 + run: ./agent-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 + run: node agent-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 @@ -135,7 +137,7 @@ jobs: echo '::error::the ANTHROPIC_API_KEY secret is not set; the eval suite needs model access' exit 1 fi - node claude-plugins/tools/evals/run-claude-evals.mjs \ + node agent-plugins/tools/evals/run-claude-evals.mjs \ --trust-plugin \ --json "$RUNNER_TEMP/eval-results.json" \ --threshold 0.8 \ @@ -149,5 +151,5 @@ jobs: name: plugin-eval-results path: | ${{ runner.temp }}/eval-results.json - claude-plugins/tools/evals/results/report.html + agent-plugins/tools/evals/results/report.html if-no-files-found: ignore diff --git a/.github/workflows/release-standalone-ls.yml b/.github/workflows/release-standalone-ls.yml index a43a9aa3f1..539092414f 100644 --- a/.github/workflows/release-standalone-ls.yml +++ b/.github/workflows/release-standalone-ls.yml @@ -81,7 +81,7 @@ jobs: --arg ref "$ref" \ ' .plugins |= if map(.name == $name) | any then - map(if .name == $name then .version=$version | .source.ref=$ref else . end) + map(if .name == $name then .version=$version | .source.ref=$ref | .source.path="agent-plugins/spring-tools" else . end) else . + [{ "name": $name, @@ -89,7 +89,7 @@ jobs: "source": { "source": "git-subdir", "url": "https://github.com/spring-projects/spring-tools.git", - "path": "claude-plugins/spring-tools", + "path": "agent-plugins/spring-tools", "ref": $ref }, "description": "Spring Boot Language Server", diff --git a/.github/workflows/snapshot-standalone-ls.yml b/.github/workflows/snapshot-standalone-ls.yml index 802116d6b0..fe35b2a67c 100644 --- a/.github/workflows/snapshot-standalone-ls.yml +++ b/.github/workflows/snapshot-standalone-ls.yml @@ -54,11 +54,11 @@ jobs: # Keep both the Claude Code manifest and the portable Agent Plugins manifest in sync. tmp=$(mktemp) - jq --arg v "$version" '.version = $v' claude-plugins/spring-tools/.claude-plugin/plugin.json > "$tmp" && mv "$tmp" claude-plugins/spring-tools/.claude-plugin/plugin.json + jq --arg v "$version" '.version = $v' agent-plugins/spring-tools/.claude-plugin/plugin.json > "$tmp" && mv "$tmp" agent-plugins/spring-tools/.claude-plugin/plugin.json tmp=$(mktemp) - jq --arg v "$version" '.version = $v' claude-plugins/spring-tools/plugin.json > "$tmp" && mv "$tmp" claude-plugins/spring-tools/plugin.json + jq --arg v "$version" '.version = $v' agent-plugins/spring-tools/plugin.json > "$tmp" && mv "$tmp" agent-plugins/spring-tools/plugin.json - git add claude-plugins/spring-tools/.claude-plugin/plugin.json claude-plugins/spring-tools/plugin.json + git add agent-plugins/spring-tools/.claude-plugin/plugin.json agent-plugins/spring-tools/plugin.json if ! git diff --cached --quiet; then git commit -m "Update agent plugin versions to $version" fi @@ -82,7 +82,7 @@ jobs: --arg sha "$sha" \ ' .plugins |= if map(.name == $name) | any then - map(if .name == $name then .version=$version | .source.sha=$sha | .source.ref="claude-snapshot" else . end) + map(if .name == $name then .version=$version | .source.sha=$sha | .source.ref="claude-snapshot" | .source.path="agent-plugins/spring-tools" else . end) else . + [{ "name": $name, @@ -90,7 +90,7 @@ jobs: "source": { "source": "git-subdir", "url": "https://github.com/spring-projects/spring-tools.git", - "path": "claude-plugins/spring-tools", + "path": "agent-plugins/spring-tools", "ref": "claude-snapshot", "sha": $sha }, diff --git a/CLAUDE.md b/AGENTS.md similarity index 83% rename from CLAUDE.md rename to AGENTS.md index eb2f643b3a..e601244885 100644 --- a/CLAUDE.md +++ b/AGENTS.md @@ -1,6 +1,6 @@ -# CLAUDE.md +# AGENTS.md -This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. +This file provides guidance to AI coding agents (Claude Code, Codex, GitHub Copilot, OpenCode and others) when working with code in this repository. ## Repository Overview @@ -30,7 +30,7 @@ sts4/ │ ├── commons-vscode/ # Shared TypeScript utilities │ └── boot-dev-pack/ # Extension pack bundling Spring Boot extensions ├── nodejs-packages/ # Shared Node.js utilities -└── claude-plugins/ # Claude Code plugin (standalone LS + MCP server) +└── agent-plugins/ # Agent plugin (standalone LS + MCP server) for Claude Code, Codex, GitHub Copilot and OpenCode ├── 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 @@ -85,23 +85,27 @@ npm run vsce-pre-release-package `preinstall.sh` packs `commons-vscode` locally, then builds the Spring Boot language server fat JAR and extracts it into `language-server/`. -### Claude Code Plugin +### Agent Plugin -The `claude-plugins/spring-tools` plugin uses the **standalone** language server (no JDT LS, uses Jandex for type indexing): +The `agent-plugins/spring-tools` plugin uses the **standalone** language server (no JDT LS, uses Jandex for type indexing): ```bash -cd claude-plugins +cd agent-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`. 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`): +The same plugin source serves every host: `plugin.json` and `mcp.json` for Claude Code, `com.github.copilot/` for GitHub Copilot, `opencode/` for OpenCode, and `.agents/plugins/marketplace.json` as the Codex catalog pointing to it (not a second implementation). Plugin JavaScript uses four-space indentation; plugin tests use Node's `node:test` with `*.test.mjs` filenames. + +Every diagnostic code needs a playbook `agent-plugins/spring-tools/explanations/.md` and a row in `agent-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 `agent-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 +node agent-plugins/tools/check-explanations.mjs --require-all --todo --links +node agent-plugins/tools/check-plugin-config.mjs +npm --prefix agent-plugins/tools test ``` +After changing `launcher.js`, `install.js`, `hooks/hooks.json` or the standalone LS, run the end-to-end MCP smoke test (needs the rebuilt JAR from `update-local-jars.sh` and Java 21+): `node agent-plugins/tools/smoke/mcp-smoke.mjs`. + ## Running Tests ```bash @@ -148,7 +152,7 @@ IDE Client (VSCode/Eclipse) ←—LSP over stdio/socket—→ Java Language Serv ``` - The full Spring Boot LS (`spring-boot-language-server`) requires JDT Language Server in the same process for Java type resolution -- The standalone variant (`spring-boot-language-server-standalone`) resolves types via Maven/Gradle classpath + Jandex indexing — used by the Claude Code plugin +- The standalone variant (`spring-boot-language-server-standalone`) resolves types via Maven/Gradle classpath + Jandex indexing — used by the agent plugin - In the plugin the LSP transport is disabled (`-Dlanguageserver.enabled=false`), so no document is ever "open": the `getProjectDiagnostics` MCP tool only sees what the indexers produce — Java diagnostics from `SpringIndexerJava`, config-file diagnostics (`application*`, `bootstrap*`, `*.factories`) from `SpringIndexerConfigFiles`, plus the build-file version validation ### Key Commons Modules diff --git a/README-dev-env.md b/README-dev-env.md index 27897ab3fc..0291637777 100644 --- a/README-dev-env.md +++ b/README-dev-env.md @@ -1,5 +1,57 @@ # Spring Tools - Dev Environment Setup +## Build commands + +Run each block from the repository root. Java sources target Java 21; CI uses JDK 25. + +### Java language servers + +```bash +cd headless-services +./mvnw clean install +# Build a server and its dependencies: +./mvnw clean install -pl spring-boot-language-server -am +# Run one test after dependencies have been installed: +./mvnw test -pl spring-boot-language-server -Dtest=BootLanguageServerTest +``` + +### Eclipse integrations and distribution + +Select a target-platform profile supported by the module's parent POM. + +```bash +cd eclipse-language-servers +./mvnw -Pe440 clean install +``` + +```bash +cd eclipse-distribution +./mvnw -Pe440 -Psnapshot clean package +``` + +### VS Code extension + +```bash +cd vscode-extensions/vscode-spring-boot +./scripts/preinstall.sh +npm install +npm run check-types +npm run lint +npm run compile +npm run watch +``` + +The preinstall script builds shared dependencies and the language server JAR. +Use `npm run vsce-package` to package the extension. + +### Agent plugin + +The IDE language server integrates with JDT LS. The agent plugin instead uses +the standalone server with Maven/Gradle classpath resolution and Jandex indexing; +its file watcher keeps MCP diagnostics current without open editor documents. +See the [plugin guide](agent-plugins/spring-tools/README.md) for building a local +JAR, smoke tests, playbook checks, and behavioral evals. + ## Running the Spring Tools Java Language Server locally Import the headless-services modules into your workspace as existing Maven projects. diff --git a/README.md b/README.md index 5dbc18ce81..cda5749221 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Depending on your development environment, you can choose between: - __Visual Studio Code:__ We provide extensions for Visual Studio Code if you prefer this lightweight editor for your development. - __Cursor:__ We provide extensions for Cursor if you prefer this lightweight editor for agentic development. -- __AI coding agents:__ The Spring Tools Language Server agent plugin provides Spring-aware MCP tools and skills for Claude Code, GitHub Copilot CLI and Codex; OpenCode can connect to the same server over MCP. +- __AI coding agents:__ The [Spring Tools Language Server agent plugin](agent-plugins/spring-tools/README.md) provides Spring-aware MCP tools and skills for Claude Code, GitHub Copilot CLI and Codex; OpenCode can connect to the same server over MCP. - __Spring Tools for Eclipse distribution:__ a ready-to-use distribution of the latest Eclipse Desktop IDE, prepackaged with Spring Tools and a few additional third-party extensions. Download, unpack, and start. - __Spring Tools for Eclipse extensions:__ you can install the Spring Tools for Eclipse into an existing Eclipse Desktop IDE installation and use it from there. - __Eclipse Theia:__ You can install the same extensions into Theia-based environments like gitpod. diff --git a/RELEASE.md b/RELEASE.md index e3d37225df..9064ead49f 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -6,12 +6,12 @@ schedules: - **Eclipse track** — Eclipse LS Extensions → Eclipse Distribution → Test → Publish - **VSCode track** — VSCode Extensions RC → Test → Publish -- **Claude Code plugin track** — Test locally → Release (build + publish) +- **agent plugin track** — Test locally → Release (build + publish) The Eclipse and VSCode tracks each have their own release-candidate loop: if testing turns up a problem in one track, only that track's release step is re-spun. The other track keeps whatever candidate it already has and does -not need to be rebuilt. The Claude Code plugin track has no candidate/staging +not need to be rebuilt. The agent plugin track has no candidate/staging step at all — see below. Every step below except "Test" is a GitHub Actions workflow, triggered via @@ -94,18 +94,19 @@ stateDiagram-v2 PublishVSCode --> [*] ``` -## Claude Code Plugin Track +## Agent Plugin Track -The `spring-tools` Claude Code plugin (`claude-plugins/spring-tools`) bundles -the standalone Spring Boot language server (Jandex-based, no JDT LS) as an -MCP server for Claude Code. Its release process is different from the other +The `spring-tools` [agent plugin](agent-plugins/spring-tools/README.md) downloads +and launches the standalone Spring Boot language server (Jandex-based, no JDT LS) +as an MCP server for Claude Code, GitHub Copilot CLI, Codex, and OpenCode. +Its release process is different from the other two tracks: there is no RC/staging step — the release workflow builds *and* publishes atomically in one shot, so verification has to happen locally *before* that workflow is dispatched. | # | Step | Workflow | Key inputs | |---|------|----------|------------| -| 1 | Test locally | — manual | Run [`claude-plugins/update-local-jars.sh`](claude-plugins/update-local-jars.sh) to build the standalone LS jar from the current `headless-services` snapshot and drop it into `spring-tools/language-server/`, then run the automated checks from the repository root — `node claude-plugins/tools/check-explanations.mjs --require-all --todo --links`, `node claude-plugins/tools/check-plugin-config.mjs`, `node --test 'claude-plugins/tools/test/*.test.mjs'` and the end-to-end `node claude-plugins/tools/smoke/mcp-smoke.mjs` (the same checks CI runs in [`claude-plugin-check.yml`](.github/workflows/claude-plugin-check.yml)), run the behavioral eval suite with a logged-in Claude Code (`cd claude-plugins/spring-tools && claude plugin eval . --no-publish`, or dispatch the `plugin-evals` job of that workflow) — and exercise the plugin through the local `spring-tools-local` marketplace ([`claude-plugins/.claude-plugin/marketplace.json`](claude-plugins/.claude-plugin/marketplace.json)) | +| 1 | Test locally | — manual | Run [`agent-plugins/update-local-jars.sh`](agent-plugins/update-local-jars.sh) to build the standalone LS jar from the current `headless-services` snapshot and drop it into `spring-tools/language-server/`, then run the automated checks from the repository root — `node agent-plugins/tools/check-explanations.mjs --require-all --todo --links`, `node agent-plugins/tools/check-plugin-config.mjs`, `node --test 'agent-plugins/tools/test/*.test.mjs'` and the end-to-end `node agent-plugins/tools/smoke/mcp-smoke.mjs` (the same checks CI runs in [`agent-plugin-check.yml`](.github/workflows/agent-plugin-check.yml)), run the behavioral eval suite with a logged-in Claude Code (`cd agent-plugins/spring-tools && claude plugin eval . --no-publish`, or dispatch the `plugin-evals` job of that workflow) — and exercise the plugin through the local `spring-tools-local` marketplace ([`agent-plugins/.claude-plugin/marketplace.json`](agent-plugins/.claude-plugin/marketplace.json)) | | 2 | Release (build + publish) | [`release-standalone-ls.yml`](.github/workflows/release-standalone-ls.yml) | `dist: release` — builds the standalone LS jar, uploads it to the CDN, tags the repo `v`, and updates the release marketplace's `marketplace.json` to point at that tag | (Nightly/on-demand snapshot builds of the plugin are handled separately by @@ -143,7 +144,7 @@ stateDiagram-v2 TestVSCode --> PublishVSCode : pass PublishVSCode --> [*] } - state "Claude Code Plugin Track" as ClaudePlugin { + state "Agent Plugin Track" as ClaudePlugin { [*] --> TestLocally TestLocally --> TestLocally : issues found TestLocally --> ReleaseAndPublish : pass @@ -189,10 +190,11 @@ next **minor**: [`vscode-extensions/vscode-spring-boot/package.json`](vscode-extensions/vscode-spring-boot/package.json). Extensions that weren't released (`vscode-concourse`, `vscode-manifest-yaml`, `vscode-bosh`, `boot-dev-pack`) are left alone. -- **Claude Code plugin** — bump `version` in - [`claude-plugins/spring-tools/.claude-plugin/plugin.json`](claude-plugins/spring-tools/.claude-plugin/plugin.json) +- **agent plugin** — bump `version` in + [`agent-plugins/spring-tools/.claude-plugin/plugin.json`](agent-plugins/spring-tools/.claude-plugin/plugin.json) + and [`agent-plugins/spring-tools/plugin.json`](agent-plugins/spring-tools/plugin.json) to match the new `headless-services` version. This is exactly what makes - the [Claude Code Plugin Track](#claude-code-plugin-track) work: it leaves + the [Agent Plugin Track](#agent-plugin-track) work: it leaves `main` on a version that has never been tagged, ready for the next `release-standalone-ls.yml` run. @@ -213,7 +215,7 @@ cycle** — adopt the new target platform: `snapshot-all.yml`. `gh-hosted-eclipse-distro-build.yml` and `eclipse-ls-extensions-build.yml` themselves don't need changes — they're reusable workflows that just take `eclipse_profile` as an input. -- Also worth checking: `CLAUDE.md`'s "Eclipse profile options" line is +- Also worth checking: `AGENTS.md`'s "Eclipse profile options" line is currently stale (`e439`/`e440`) relative to what the poms and release workflows actually build (`e440`/`e441`) — keep it in sync when adopting a new train. diff --git a/claude-plugins/.claude-plugin/marketplace.json b/agent-plugins/.claude-plugin/marketplace.json similarity index 100% rename from claude-plugins/.claude-plugin/marketplace.json rename to agent-plugins/.claude-plugin/marketplace.json diff --git a/claude-plugins/research-notes/TODO_quickfixes.md b/agent-plugins/research-notes/TODO_quickfixes.md similarity index 97% rename from claude-plugins/research-notes/TODO_quickfixes.md rename to agent-plugins/research-notes/TODO_quickfixes.md index dc32a70299..4c9dfd5f29 100644 --- a/claude-plugins/research-notes/TODO_quickfixes.md +++ b/agent-plugins/research-notes/TODO_quickfixes.md @@ -1,8 +1,8 @@ # Spring Tools Validation Problem Types & Quick Fixes -This document tracks all validation problem types defined in the Spring Tools language server, their corresponding quick fix implementations (JDT refactoring or OpenRewrite recipe), and whether they have an explanation playbook in the Claude plugin (`claude-plugins/spring-tools/explanations/.md`). +This document tracks all validation problem types defined in the Spring Tools language server, their corresponding quick fix implementations (JDT refactoring or OpenRewrite recipe), and whether they have an explanation playbook in the Claude plugin (`agent-plugins/spring-tools/explanations/.md`). -The table is kept in sync with the source and the playbook files by `node claude-plugins/tools/check-explanations.mjs --require-all --todo` (also run in CI): every code found in the `*ProblemType` enums and the `BOOT_VERSION_VALIDATION_CODE` constant must have a row here, every row must name an existing code, and the Playbook column must match the files on disk. +The table is kept in sync with the source and the playbook files by `node agent-plugins/tools/check-explanations.mjs --require-all --todo` (also run in CI): every code found in the `*ProblemType` enums and the `BOOT_VERSION_VALIDATION_CODE` constant must have a row here, every row must name an existing code, and the Playbook column must match the files on disk. When a new problem type is added to the language server, add a row to the matching section below, write the playbook (see the "Explanation playbooks" section of the plugin README for the structure and the authoring checklist), and run the checker. diff --git a/claude-plugins/spring-tools/.claude-plugin/plugin.json b/agent-plugins/spring-tools/.claude-plugin/plugin.json similarity index 100% rename from claude-plugins/spring-tools/.claude-plugin/plugin.json rename to agent-plugins/spring-tools/.claude-plugin/plugin.json diff --git a/claude-plugins/spring-tools/.gitignore b/agent-plugins/spring-tools/.gitignore similarity index 100% rename from claude-plugins/spring-tools/.gitignore rename to agent-plugins/spring-tools/.gitignore diff --git a/claude-plugins/spring-tools/README.md b/agent-plugins/spring-tools/README.md similarity index 77% rename from claude-plugins/spring-tools/README.md rename to agent-plugins/spring-tools/README.md index fac375c392..3d829b8b63 100644 --- a/claude-plugins/spring-tools/README.md +++ b/agent-plugins/spring-tools/README.md @@ -77,17 +77,19 @@ Then, ask Claude a test query to verify the MCP integration. For example: Claude calls the `getProjectDiagnostics` MCP tool and summarizes the exact Spring Boot warnings and quick fixes it reports. Note that the MCP server is available within a few seconds, but the project itself only shows up in `getProjectList` once the language server has resolved the Maven/Gradle project model - a few seconds with a warm dependency cache, up to a couple of minutes on a cold one. The `validate` skill retries `getProjectList` while the list is still empty. +The published marketplace URLs retain the historical `claude-plugins` path for compatibility. The shared plugin source lives under `agent-plugins/` in this repository. + ### 5. Local Testing -We maintain a local marketplace configuration (`claude-plugins/.claude-plugin/marketplace.json`) to make testing the plugin directly from the source tree easy. +We maintain a local marketplace configuration (`agent-plugins/.claude-plugin/marketplace.json`) to make testing the plugin directly from the source tree easy. -1. Run the update script to build the standalone language server JAR and copy it into the source plugin directory for local development (run this from the `claude-plugins` directory): +1. Run the update script to build the standalone language server JAR and copy it into the source plugin directory for local development (run this from the `agent-plugins` directory): ```bash ./update-local-jars.sh ``` -2. Add the local `claude-plugins` directory as a marketplace (run this from the repository root): +2. Add the local `agent-plugins` directory as a marketplace (run this from the repository root): ```bash - claude plugin marketplace add ./claude-plugins + claude plugin marketplace add ./agent-plugins ``` 3. Install the plugin from your new local marketplace: ```bash @@ -96,60 +98,27 @@ We maintain a local marketplace configuration (`claude-plugins/.claude-plugin/ma 4. Start Claude Code with the locally built JAR selected explicitly (run from the repository root): ```bash - SPRING_TOOLS_LS_JAR="$PWD/claude-plugins/spring-tools/language-server/spring-boot-language-server-standalone-exec.jar" claude + SPRING_TOOLS_LS_JAR="$PWD/agent-plugins/spring-tools/language-server/spring-boot-language-server-standalone-exec.jar" claude ``` Normal installs keep the downloaded JAR in persistent, versioned plugin data; this environment override is only for local development and avoids downloading the published JAR. ## Codex and GitHub Copilot CLI -The root `plugin.json` and `mcp.json` are the portable Agent Plugins package. This repository includes a Codex marketplace catalog at [`.agents/plugins/marketplace.json`](../../.agents/plugins/marketplace.json). Register the checkout once, then install the plugin: +The plugin’s `plugin.json` and `mcp.json` form the portable Agent Plugins package. This repository includes a Codex marketplace catalog at [`.agents/plugins/marketplace.json`](../../.agents/plugins/marketplace.json). Register the checkout once, then install the plugin: ```bash codex plugin marketplace add /path/to/spring-tools codex plugin add spring-tools@spring-tools-local ``` -Use `/plugins` in Codex to manage the installed plugin. This checkout's catalog is repo-scoped. To use it from a different project, register this checkout as a marketplace with `codex plugin marketplace add /path/to/spring-tools`. If you maintain a separate repo-scoped catalog, keep the plugin copy inside that repository and set `source.path` to its `./`-relative path. GitHub Copilot CLI can install directly from this repository's plugin subdirectory: +Use `/plugins` in Codex to manage the installed plugin. GitHub Copilot CLI can install directly from this repository's plugin subdirectory: ```bash -copilot plugin install spring-projects/spring-tools:claude-plugins/spring-tools +copilot plugin install spring-projects/spring-tools:agent-plugins/spring-tools ``` Both hosts get the shared `skills/` and launch the same `launcher.js`. The host-specific `com.github.copilot/` directory supplies Copilot's agent front matter and session-start hook. Its reviewer limits tools to read/search and this plugin's MCP server. The root Agent Plugins files are also the Codex entry point, so those capabilities do not need a second copy. -### Codex local development and explicit workspace configuration - -A source checkout can declare a release version whose JAR and checksum have not been published yet. Installing the plugin copies its files into the Codex cache; it does not build the language server or retain access to the source checkout. A checksum download returning HTTP 404 cannot be fixed by increasing the startup timeout. - -Build the local JAR first, from the Spring Tools repository root: - -```bash -./claude-plugins/update-local-jars.sh -``` - -For local development, keep the plugin enabled for its skills, disable its bundled MCP server, and configure an explicit stdio server in the Spring Boot workspace's `.codex/config.toml`. Replace the absolute paths below with your checkout and project paths: - -```toml -[plugins."spring-tools@spring-tools-local".mcp_servers.spring-tools-mcp] -enabled = false - -[mcp_servers.spring-tools-mcp] -command = "node" -args = ["/absolute/path/to/spring-tools/claude-plugins/spring-tools/launcher.js"] -cwd = "/absolute/path/to/your-spring-boot-project" -startup_timeout_sec = 120 - -[mcp_servers.spring-tools-mcp.env] -SPRING_TOOLS_LS_JAR = "/absolute/path/to/spring-tools/claude-plugins/spring-tools/language-server/spring-boot-language-server-standalone-exec.jar" -SPRING_TOOLS_PROJECT_DIR = "/absolute/path/to/your-spring-boot-project" -``` - -Use the marketplace identifier you installed if it differs from `spring-tools-local`. Restart Codex in the trusted project after saving the configuration, then check `/mcp` and ask for the project list. The launcher should log the selected project path and `Using language server JAR from SPRING_TOOLS_LS_JAR`. - -Codex supports explicit `env`, forwarded `env_vars`, and `cwd` for configured stdio servers; see the [Codex MCP documentation](https://developers.openai.com/codex/mcp/). Do not rely on exporting `SPRING_TOOLS_*` only in the parent shell: the host may filter those variables. A plugin process can also start in its cache directory without a workspace path. The launcher refuses to index that directory and requires an explicit project path when detection fails. Configure `SPRING_TOOLS_JAVA` in the server's `env` as well if Java 21+ is not on its `PATH`. - -For published releases, omit `SPRING_TOOLS_LS_JAR` to use the checksum-verified download. A source-build fallback needs `SPRING_TOOLS_SOURCE_DIR` set in the server's `env` to the Spring Tools checkout; building ahead of time avoids doing a Maven build during the MCP startup timeout. Keep the release JAR and its `.sha256` file published together at the versioned URL produced by `install.js`; do not bypass checksum verification or silently substitute a snapshot for a release. - ## OpenCode OpenCode does not load Agent Plugins packages directly. Its ready-to-merge MCP config is [`opencode/opencode.jsonc`](opencode/opencode.jsonc), and its read-only reviewer adapter is in [`opencode/agents/spring-reviewer.md`](opencode/agents/spring-reviewer.md). Set `SPRING_TOOLS_PLUGIN_ROOT` to the installed plugin directory, then merge the config fragment into your existing `opencode.json` or `opencode.jsonc`: @@ -267,8 +236,6 @@ The language server keeps its index current in two ways. It **watches** the work ## Troubleshooting -- **Codex reports `connection closed: initialize response`** — inspect the MCP server stderr for the underlying launcher error. HTTP 404 for the JAR's `.sha256` means the required artifact is unavailable; use a local JAR for an unpublished checkout as described in [Codex local development](#codex-local-development-and-explicit-workspace-configuration). `No Spring Tools source checkout found` means the cached plugin cannot build a fallback without `SPRING_TOOLS_SOURCE_DIR`. An undetected workspace needs `SPRING_TOOLS_PROJECT_DIR` in the server environment. - - **`spring-tools-mcp` shows as failed in `/mcp`** — on the very first start the ~100 MB JAR has to be downloaded; if that takes longer than Claude Code's MCP startup timeout the server is marked failed. Reconnect it from `/mcp` (the download continues/completes in the background) or start Claude Code again; raise `MCP_TIMEOUT` on slow connections. - **`No Java 21+ runtime found`** on stderr — the launcher lists every candidate it tried with the version it found. Install a JDK 21+ and expose it via `PATH`, `JAVA_HOME` or `SPRING_TOOLS_JAVA`. - **`getProjectList` is empty** — the Maven/Gradle model is still resolving (up to a couple of minutes on a cold dependency cache); the `validate` skill retries. Use the `project-info` skill to check it; if a project still doesn't appear (for example it lives outside the host's workspace), use the `refresh` skill. In Claude Code, the corresponding commands are `/spring-tools:project-info`, `/add-dir`, and `/spring-tools:refresh`. @@ -287,51 +254,54 @@ The codes come from the `*ProblemType` enums of the language server (`Boot2JavaP ### Keeping the playbooks consistent -`claude-plugins/tools/` contains a Node.js checker and tests (Node 20+, no dependencies) that keep the playbooks and the plugin configuration in sync with the language server. Run them from the repository root: +`agent-plugins/tools/` contains a Node.js checker and tests (Node 20+, no dependencies) that keep the playbooks and the plugin configuration in sync with the language server. Run them from the repository root: ```bash # every code has a playbook, no orphan files, structure/cross-references valid, TODO table in sync -node claude-plugins/tools/check-explanations.mjs --require-all --todo +node agent-plugins/tools/check-explanations.mjs --require-all --todo # additionally verify that every documentation link returns HTTP 200 -node claude-plugins/tools/check-explanations.mjs --require-all --links +node agent-plugins/tools/check-explanations.mjs --require-all --links # only a subset (e.g. while writing a new playbook) -node claude-plugins/tools/check-explanations.mjs --codes JAVA_PUBLIC_BEAN_METHOD,JAVA_LAMBDA_DSL --links +node agent-plugins/tools/check-explanations.mjs --codes JAVA_PUBLIC_BEAN_METHOD,JAVA_LAMBDA_DSL --links + +# Run the offline playbook and plugin configuration checks together +npm --prefix agent-plugins/tools run check # hooks, skills and agents reference only MCP tools the language server offers, every tool is reachable # through a skill or hook, skills grant exactly the tools they document, the eval suite mocks every tool -node claude-plugins/tools/check-plugin-config.mjs +node agent-plugins/tools/check-plugin-config.mjs # tests: checker behaviour (incl. negative-control fixtures), hooks/skills/agents/manifest consistency with the MCP tools, # installer (against a local mock CDN) and launcher (Java selection, JVM arguments, server instructions) -node --test --test-reporter=spec 'claude-plugins/tools/test/*.test.mjs' +node --test --test-reporter=spec 'agent-plugins/tools/test/*.test.mjs' # end-to-end: start launcher.js over MCP stdio like Claude Code does, index a sample project, exercise the # diagnostics/bean/endpoint/structure tools, edit files with and without notifying the server (file watcher), # create a project after startup and verify it is discovered (needs the JAR + Java 21+) -node claude-plugins/tools/smoke/mcp-smoke.mjs +node agent-plugins/tools/smoke/mcp-smoke.mjs ``` -The GitHub Actions workflow `.github/workflows/claude-plugin-check.yml` runs the same checks for changes under `claude-plugins/`, the `*ProblemType` enums, the MCP tool sources and the standalone language server, validates the manifest with `claude plugin validate --strict`, and runs the smoke test against a freshly built language server. +The GitHub Actions workflow `.github/workflows/agent-plugin-check.yml` runs the same checks for changes to `.agents/plugins/marketplace.json`, under `agent-plugins/`, the `*ProblemType` enums, the MCP tool sources and the standalone language server, validates the manifest with `claude plugin validate --strict`, and runs the smoke test against a freshly built language server. When a new MCP tool is added to the language server, give it a home: mention it in the skill that covers its use case (its `allowed-tools` list and body) or in `hooks/hooks.json`; `check-plugin-config.mjs` fails until every tool is reachable through a skill or hook. ### Behavioral evals -`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. +`agent-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/`. +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 `agent-plugins/tools/evals/results/`. ```bash # runs every case three times with the plugin and three times without it, judged with your Claude Code credentials -node claude-plugins/tools/evals/run-claude-evals.mjs --no-publish +node agent-plugins/tools/evals/run-claude-evals.mjs --no-publish # one case, one arm, one run - cheap while iterating on a skill description -node claude-plugins/tools/evals/run-claude-evals.mjs --case validate-finds-spring-problems --runs 1 --ablation none --no-publish +node agent-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 +node agent-plugins/tools/evals/record-mocks.mjs ``` Every run and every `llm` grader is a model call on your account (Claude Code 2.1.269+, logged in or `ANTHROPIC_API_KEY`). `check-plugin-config.mjs` keeps the suite consistent offline: every tool has a mock, `_tools.json` matches the server's tool list, graders reference only existing tools/skills/agents, and every skill and agent has a case. The `create-project-routes-to-skill` case checks routing only — eval runs don't grant `Bash`, so the skill can't download from start.spring.io there. @@ -377,9 +347,9 @@ spring-tools/ └── 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 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 agent-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, and the `evals/` suite, recorder and runner. +The sibling directory `agent-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 runners. ## How it works diff --git a/claude-plugins/spring-tools/agents/spring-reviewer.md b/agent-plugins/spring-tools/agents/spring-reviewer.md similarity index 100% rename from claude-plugins/spring-tools/agents/spring-reviewer.md rename to agent-plugins/spring-tools/agents/spring-reviewer.md diff --git a/claude-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md b/agent-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md similarity index 100% rename from claude-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md rename to agent-plugins/spring-tools/com.github.copilot/agents/spring-reviewer.agent.md diff --git a/claude-plugins/spring-tools/com.github.copilot/hooks/hooks.json b/agent-plugins/spring-tools/com.github.copilot/hooks/hooks.json similarity index 100% rename from claude-plugins/spring-tools/com.github.copilot/hooks/hooks.json rename to agent-plugins/spring-tools/com.github.copilot/hooks/hooks.json diff --git a/claude-plugins/spring-tools/explanations/API_VERSIONING_NOT_CONFIGURED.md b/agent-plugins/spring-tools/explanations/API_VERSIONING_NOT_CONFIGURED.md similarity index 100% rename from claude-plugins/spring-tools/explanations/API_VERSIONING_NOT_CONFIGURED.md rename to agent-plugins/spring-tools/explanations/API_VERSIONING_NOT_CONFIGURED.md diff --git a/claude-plugins/spring-tools/explanations/API_VERSIONING_STRATEGY_CONFIGURATION_DUPLICATED.md b/agent-plugins/spring-tools/explanations/API_VERSIONING_STRATEGY_CONFIGURATION_DUPLICATED.md similarity index 100% rename from claude-plugins/spring-tools/explanations/API_VERSIONING_STRATEGY_CONFIGURATION_DUPLICATED.md rename to agent-plugins/spring-tools/explanations/API_VERSIONING_STRATEGY_CONFIGURATION_DUPLICATED.md diff --git a/claude-plugins/spring-tools/explanations/API_VERSIONING_VIA_PATH_SEGMENT_CONFIGURED_IN_COMBINATION.md b/agent-plugins/spring-tools/explanations/API_VERSIONING_VIA_PATH_SEGMENT_CONFIGURED_IN_COMBINATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/API_VERSIONING_VIA_PATH_SEGMENT_CONFIGURED_IN_COMBINATION.md rename to agent-plugins/spring-tools/explanations/API_VERSIONING_VIA_PATH_SEGMENT_CONFIGURED_IN_COMBINATION.md diff --git a/claude-plugins/spring-tools/explanations/API_VERSION_SYNTAX_ERROR.md b/agent-plugins/spring-tools/explanations/API_VERSION_SYNTAX_ERROR.md similarity index 100% rename from claude-plugins/spring-tools/explanations/API_VERSION_SYNTAX_ERROR.md rename to agent-plugins/spring-tools/explanations/API_VERSION_SYNTAX_ERROR.md diff --git a/claude-plugins/spring-tools/explanations/BOOT_VERSION_VALIDATION_CODE.md b/agent-plugins/spring-tools/explanations/BOOT_VERSION_VALIDATION_CODE.md similarity index 100% rename from claude-plugins/spring-tools/explanations/BOOT_VERSION_VALIDATION_CODE.md rename to agent-plugins/spring-tools/explanations/BOOT_VERSION_VALIDATION_CODE.md diff --git a/claude-plugins/spring-tools/explanations/CRON_FIELD.md b/agent-plugins/spring-tools/explanations/CRON_FIELD.md similarity index 100% rename from claude-plugins/spring-tools/explanations/CRON_FIELD.md rename to agent-plugins/spring-tools/explanations/CRON_FIELD.md diff --git a/claude-plugins/spring-tools/explanations/CRON_SYNTAX.md b/agent-plugins/spring-tools/explanations/CRON_SYNTAX.md similarity index 100% rename from claude-plugins/spring-tools/explanations/CRON_SYNTAX.md rename to agent-plugins/spring-tools/explanations/CRON_SYNTAX.md diff --git a/claude-plugins/spring-tools/explanations/DOMAIN_ID_FOR_REPOSITORY.md b/agent-plugins/spring-tools/explanations/DOMAIN_ID_FOR_REPOSITORY.md similarity index 100% rename from claude-plugins/spring-tools/explanations/DOMAIN_ID_FOR_REPOSITORY.md rename to agent-plugins/spring-tools/explanations/DOMAIN_ID_FOR_REPOSITORY.md diff --git a/claude-plugins/spring-tools/explanations/EXTRACT_REQUEST_MAPPING_PARENT_PATH.md b/agent-plugins/spring-tools/explanations/EXTRACT_REQUEST_MAPPING_PARENT_PATH.md similarity index 100% rename from claude-plugins/spring-tools/explanations/EXTRACT_REQUEST_MAPPING_PARENT_PATH.md rename to agent-plugins/spring-tools/explanations/EXTRACT_REQUEST_MAPPING_PARENT_PATH.md diff --git a/claude-plugins/spring-tools/explanations/FACTORIES_KEY_NOT_SUPPORTED.md b/agent-plugins/spring-tools/explanations/FACTORIES_KEY_NOT_SUPPORTED.md similarity index 100% rename from claude-plugins/spring-tools/explanations/FACTORIES_KEY_NOT_SUPPORTED.md rename to agent-plugins/spring-tools/explanations/FACTORIES_KEY_NOT_SUPPORTED.md diff --git a/claude-plugins/spring-tools/explanations/HQL_SYNTAX.md b/agent-plugins/spring-tools/explanations/HQL_SYNTAX.md similarity index 100% rename from claude-plugins/spring-tools/explanations/HQL_SYNTAX.md rename to agent-plugins/spring-tools/explanations/HQL_SYNTAX.md diff --git a/claude-plugins/spring-tools/explanations/HTTP_SECURITY_AUTHORIZE_HTTP_REQUESTS.md b/agent-plugins/spring-tools/explanations/HTTP_SECURITY_AUTHORIZE_HTTP_REQUESTS.md similarity index 100% rename from claude-plugins/spring-tools/explanations/HTTP_SECURITY_AUTHORIZE_HTTP_REQUESTS.md rename to agent-plugins/spring-tools/explanations/HTTP_SECURITY_AUTHORIZE_HTTP_REQUESTS.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_AUTOWIRED_CONSTRUCTOR.md b/agent-plugins/spring-tools/explanations/JAVA_AUTOWIRED_CONSTRUCTOR.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_AUTOWIRED_CONSTRUCTOR.md rename to agent-plugins/spring-tools/explanations/JAVA_AUTOWIRED_CONSTRUCTOR.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_BEAN_NOT_REGISTERED_IN_AOT.md b/agent-plugins/spring-tools/explanations/JAVA_BEAN_NOT_REGISTERED_IN_AOT.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_BEAN_NOT_REGISTERED_IN_AOT.md rename to agent-plugins/spring-tools/explanations/JAVA_BEAN_NOT_REGISTERED_IN_AOT.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_BEAN_POST_PROCESSOR_IGNORED_IN_AOT.md b/agent-plugins/spring-tools/explanations/JAVA_BEAN_POST_PROCESSOR_IGNORED_IN_AOT.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_BEAN_POST_PROCESSOR_IGNORED_IN_AOT.md rename to agent-plugins/spring-tools/explanations/JAVA_BEAN_POST_PROCESSOR_IGNORED_IN_AOT.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_CONCRETE_BEAN_TYPE.md b/agent-plugins/spring-tools/explanations/JAVA_CONCRETE_BEAN_TYPE.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_CONCRETE_BEAN_TYPE.md rename to agent-plugins/spring-tools/explanations/JAVA_CONCRETE_BEAN_TYPE.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_CONSTRUCTOR_PARAMETER_INJECTION.md b/agent-plugins/spring-tools/explanations/JAVA_CONSTRUCTOR_PARAMETER_INJECTION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_CONSTRUCTOR_PARAMETER_INJECTION.md rename to agent-plugins/spring-tools/explanations/JAVA_CONSTRUCTOR_PARAMETER_INJECTION.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_FINAL_AUTOWIRED_FIELD.md b/agent-plugins/spring-tools/explanations/JAVA_FINAL_AUTOWIRED_FIELD.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_FINAL_AUTOWIRED_FIELD.md rename to agent-plugins/spring-tools/explanations/JAVA_FINAL_AUTOWIRED_FIELD.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_LAMBDA_DSL.md b/agent-plugins/spring-tools/explanations/JAVA_LAMBDA_DSL.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_LAMBDA_DSL.md rename to agent-plugins/spring-tools/explanations/JAVA_LAMBDA_DSL.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_PRECISE_REQUEST_MAPPING.md b/agent-plugins/spring-tools/explanations/JAVA_PRECISE_REQUEST_MAPPING.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_PRECISE_REQUEST_MAPPING.md rename to agent-plugins/spring-tools/explanations/JAVA_PRECISE_REQUEST_MAPPING.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_PRECISE_SCOPE.md b/agent-plugins/spring-tools/explanations/JAVA_PRECISE_SCOPE.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_PRECISE_SCOPE.md rename to agent-plugins/spring-tools/explanations/JAVA_PRECISE_SCOPE.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_PUBLIC_BEAN_METHOD.md b/agent-plugins/spring-tools/explanations/JAVA_PUBLIC_BEAN_METHOD.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_PUBLIC_BEAN_METHOD.md rename to agent-plugins/spring-tools/explanations/JAVA_PUBLIC_BEAN_METHOD.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_REPOSITORY.md b/agent-plugins/spring-tools/explanations/JAVA_REPOSITORY.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_REPOSITORY.md rename to agent-plugins/spring-tools/explanations/JAVA_REPOSITORY.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_SPEL_EXPRESSION_SYNTAX.md b/agent-plugins/spring-tools/explanations/JAVA_SPEL_EXPRESSION_SYNTAX.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_SPEL_EXPRESSION_SYNTAX.md rename to agent-plugins/spring-tools/explanations/JAVA_SPEL_EXPRESSION_SYNTAX.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_TEST_SPRING_EXTENSION.md b/agent-plugins/spring-tools/explanations/JAVA_TEST_SPRING_EXTENSION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_TEST_SPRING_EXTENSION.md rename to agent-plugins/spring-tools/explanations/JAVA_TEST_SPRING_EXTENSION.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_TYPE_NOT_SUPPORTED.md b/agent-plugins/spring-tools/explanations/JAVA_TYPE_NOT_SUPPORTED.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_TYPE_NOT_SUPPORTED.md rename to agent-plugins/spring-tools/explanations/JAVA_TYPE_NOT_SUPPORTED.md diff --git a/claude-plugins/spring-tools/explanations/JAVA_UNRESOLVED_PLACEHOLDER.md b/agent-plugins/spring-tools/explanations/JAVA_UNRESOLVED_PLACEHOLDER.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JAVA_UNRESOLVED_PLACEHOLDER.md rename to agent-plugins/spring-tools/explanations/JAVA_UNRESOLVED_PLACEHOLDER.md diff --git a/claude-plugins/spring-tools/explanations/JPQL_SYNTAX.md b/agent-plugins/spring-tools/explanations/JPQL_SYNTAX.md similarity index 100% rename from claude-plugins/spring-tools/explanations/JPQL_SYNTAX.md rename to agent-plugins/spring-tools/explanations/JPQL_SYNTAX.md diff --git a/claude-plugins/spring-tools/explanations/MISSING_CONFIGURATION_ANNOTATION.md b/agent-plugins/spring-tools/explanations/MISSING_CONFIGURATION_ANNOTATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/MISSING_CONFIGURATION_ANNOTATION.md rename to agent-plugins/spring-tools/explanations/MISSING_CONFIGURATION_ANNOTATION.md diff --git a/claude-plugins/spring-tools/explanations/MISSING_VALIDATED_ANNOTATION.md b/agent-plugins/spring-tools/explanations/MISSING_VALIDATED_ANNOTATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/MISSING_VALIDATED_ANNOTATION.md rename to agent-plugins/spring-tools/explanations/MISSING_VALIDATED_ANNOTATION.md diff --git a/claude-plugins/spring-tools/explanations/MODEL_ATTRIBUTE_NAMES.md b/agent-plugins/spring-tools/explanations/MODEL_ATTRIBUTE_NAMES.md similarity index 100% rename from claude-plugins/spring-tools/explanations/MODEL_ATTRIBUTE_NAMES.md rename to agent-plugins/spring-tools/explanations/MODEL_ATTRIBUTE_NAMES.md diff --git a/claude-plugins/spring-tools/explanations/MODULITH_APPLICATION_MODULE_LISTENER.md b/agent-plugins/spring-tools/explanations/MODULITH_APPLICATION_MODULE_LISTENER.md similarity index 100% rename from claude-plugins/spring-tools/explanations/MODULITH_APPLICATION_MODULE_LISTENER.md rename to agent-plugins/spring-tools/explanations/MODULITH_APPLICATION_MODULE_LISTENER.md diff --git a/claude-plugins/spring-tools/explanations/MODULITH_TYPE_REF_VIOLATION.md b/agent-plugins/spring-tools/explanations/MODULITH_TYPE_REF_VIOLATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/MODULITH_TYPE_REF_VIOLATION.md rename to agent-plugins/spring-tools/explanations/MODULITH_TYPE_REF_VIOLATION.md diff --git a/claude-plugins/spring-tools/explanations/PATH_IN_CONTROLLER_ANNOTATION.md b/agent-plugins/spring-tools/explanations/PATH_IN_CONTROLLER_ANNOTATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PATH_IN_CONTROLLER_ANNOTATION.md rename to agent-plugins/spring-tools/explanations/PATH_IN_CONTROLLER_ANNOTATION.md diff --git a/claude-plugins/spring-tools/explanations/PROPERTY_PLACE_HOLDER_SYNTAX.md b/agent-plugins/spring-tools/explanations/PROPERTY_PLACE_HOLDER_SYNTAX.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROPERTY_PLACE_HOLDER_SYNTAX.md rename to agent-plugins/spring-tools/explanations/PROPERTY_PLACE_HOLDER_SYNTAX.md diff --git a/claude-plugins/spring-tools/explanations/PROP_DEPRECATED.md b/agent-plugins/spring-tools/explanations/PROP_DEPRECATED.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_DEPRECATED.md rename to agent-plugins/spring-tools/explanations/PROP_DEPRECATED.md diff --git a/claude-plugins/spring-tools/explanations/PROP_DUPLICATE_KEY.md b/agent-plugins/spring-tools/explanations/PROP_DUPLICATE_KEY.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_DUPLICATE_KEY.md rename to agent-plugins/spring-tools/explanations/PROP_DUPLICATE_KEY.md diff --git a/claude-plugins/spring-tools/explanations/PROP_EXPECTED_DOT_OR_LBRACK.md b/agent-plugins/spring-tools/explanations/PROP_EXPECTED_DOT_OR_LBRACK.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_EXPECTED_DOT_OR_LBRACK.md rename to agent-plugins/spring-tools/explanations/PROP_EXPECTED_DOT_OR_LBRACK.md diff --git a/claude-plugins/spring-tools/explanations/PROP_INVALID_BEAN_NAVIGATION.md b/agent-plugins/spring-tools/explanations/PROP_INVALID_BEAN_NAVIGATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_INVALID_BEAN_NAVIGATION.md rename to agent-plugins/spring-tools/explanations/PROP_INVALID_BEAN_NAVIGATION.md diff --git a/claude-plugins/spring-tools/explanations/PROP_INVALID_BEAN_PROPERTY.md b/agent-plugins/spring-tools/explanations/PROP_INVALID_BEAN_PROPERTY.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_INVALID_BEAN_PROPERTY.md rename to agent-plugins/spring-tools/explanations/PROP_INVALID_BEAN_PROPERTY.md diff --git a/claude-plugins/spring-tools/explanations/PROP_INVALID_INDEXED_NAVIGATION.md b/agent-plugins/spring-tools/explanations/PROP_INVALID_INDEXED_NAVIGATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_INVALID_INDEXED_NAVIGATION.md rename to agent-plugins/spring-tools/explanations/PROP_INVALID_INDEXED_NAVIGATION.md diff --git a/claude-plugins/spring-tools/explanations/PROP_NON_INTEGER_IN_BRACKETS.md b/agent-plugins/spring-tools/explanations/PROP_NON_INTEGER_IN_BRACKETS.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_NON_INTEGER_IN_BRACKETS.md rename to agent-plugins/spring-tools/explanations/PROP_NON_INTEGER_IN_BRACKETS.md diff --git a/claude-plugins/spring-tools/explanations/PROP_NO_MATCHING_RBRACK.md b/agent-plugins/spring-tools/explanations/PROP_NO_MATCHING_RBRACK.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_NO_MATCHING_RBRACK.md rename to agent-plugins/spring-tools/explanations/PROP_NO_MATCHING_RBRACK.md diff --git a/claude-plugins/spring-tools/explanations/PROP_PLACEHOLDER_SYNTAX.md b/agent-plugins/spring-tools/explanations/PROP_PLACEHOLDER_SYNTAX.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_PLACEHOLDER_SYNTAX.md rename to agent-plugins/spring-tools/explanations/PROP_PLACEHOLDER_SYNTAX.md diff --git a/claude-plugins/spring-tools/explanations/PROP_SYNTAX_ERROR.md b/agent-plugins/spring-tools/explanations/PROP_SYNTAX_ERROR.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_SYNTAX_ERROR.md rename to agent-plugins/spring-tools/explanations/PROP_SYNTAX_ERROR.md diff --git a/claude-plugins/spring-tools/explanations/PROP_UNKNOWN_PROPERTY.md b/agent-plugins/spring-tools/explanations/PROP_UNKNOWN_PROPERTY.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_UNKNOWN_PROPERTY.md rename to agent-plugins/spring-tools/explanations/PROP_UNKNOWN_PROPERTY.md diff --git a/claude-plugins/spring-tools/explanations/PROP_UNRESOLVED_PLACEHOLDER.md b/agent-plugins/spring-tools/explanations/PROP_UNRESOLVED_PLACEHOLDER.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_UNRESOLVED_PLACEHOLDER.md rename to agent-plugins/spring-tools/explanations/PROP_UNRESOLVED_PLACEHOLDER.md diff --git a/claude-plugins/spring-tools/explanations/PROP_VALUE_TYPE_MISMATCH.md b/agent-plugins/spring-tools/explanations/PROP_VALUE_TYPE_MISMATCH.md similarity index 100% rename from claude-plugins/spring-tools/explanations/PROP_VALUE_TYPE_MISMATCH.md rename to agent-plugins/spring-tools/explanations/PROP_VALUE_TYPE_MISMATCH.md diff --git a/claude-plugins/spring-tools/explanations/REGISTRAR_BEAN_DECLARATION.md b/agent-plugins/spring-tools/explanations/REGISTRAR_BEAN_DECLARATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/REGISTRAR_BEAN_DECLARATION.md rename to agent-plugins/spring-tools/explanations/REGISTRAR_BEAN_DECLARATION.md diff --git a/claude-plugins/spring-tools/explanations/REGISTRAR_BEAN_INVALID_ANNOTATION.md b/agent-plugins/spring-tools/explanations/REGISTRAR_BEAN_INVALID_ANNOTATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/REGISTRAR_BEAN_INVALID_ANNOTATION.md rename to agent-plugins/spring-tools/explanations/REGISTRAR_BEAN_INVALID_ANNOTATION.md diff --git a/claude-plugins/spring-tools/explanations/REST_CONTROLLER_COMBINATION.md b/agent-plugins/spring-tools/explanations/REST_CONTROLLER_COMBINATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/REST_CONTROLLER_COMBINATION.md rename to agent-plugins/spring-tools/explanations/REST_CONTROLLER_COMBINATION.md diff --git a/claude-plugins/spring-tools/explanations/SPRING_AI_TOOL_DESCRIPTION_TOO_SHORT.md b/agent-plugins/spring-tools/explanations/SPRING_AI_TOOL_DESCRIPTION_TOO_SHORT.md similarity index 100% rename from claude-plugins/spring-tools/explanations/SPRING_AI_TOOL_DESCRIPTION_TOO_SHORT.md rename to agent-plugins/spring-tools/explanations/SPRING_AI_TOOL_DESCRIPTION_TOO_SHORT.md diff --git a/claude-plugins/spring-tools/explanations/SPRING_AI_TOOL_MISSING_DESCRIPTION.md b/agent-plugins/spring-tools/explanations/SPRING_AI_TOOL_MISSING_DESCRIPTION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/SPRING_AI_TOOL_MISSING_DESCRIPTION.md rename to agent-plugins/spring-tools/explanations/SPRING_AI_TOOL_MISSING_DESCRIPTION.md diff --git a/claude-plugins/spring-tools/explanations/SPRING_DATA_STRING_PROPERTY_REFERENCE.md b/agent-plugins/spring-tools/explanations/SPRING_DATA_STRING_PROPERTY_REFERENCE.md similarity index 100% rename from claude-plugins/spring-tools/explanations/SPRING_DATA_STRING_PROPERTY_REFERENCE.md rename to agent-plugins/spring-tools/explanations/SPRING_DATA_STRING_PROPERTY_REFERENCE.md diff --git a/claude-plugins/spring-tools/explanations/SPRING_JUNIT_CONFIG_COMBINATION.md b/agent-plugins/spring-tools/explanations/SPRING_JUNIT_CONFIG_COMBINATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/SPRING_JUNIT_CONFIG_COMBINATION.md rename to agent-plugins/spring-tools/explanations/SPRING_JUNIT_CONFIG_COMBINATION.md diff --git a/claude-plugins/spring-tools/explanations/SQL_SYNTAX.md b/agent-plugins/spring-tools/explanations/SQL_SYNTAX.md similarity index 100% rename from claude-plugins/spring-tools/explanations/SQL_SYNTAX.md rename to agent-plugins/spring-tools/explanations/SQL_SYNTAX.md diff --git a/claude-plugins/spring-tools/explanations/VALUE_CLASSPATH_RESOURCE_TYPE.md b/agent-plugins/spring-tools/explanations/VALUE_CLASSPATH_RESOURCE_TYPE.md similarity index 100% rename from claude-plugins/spring-tools/explanations/VALUE_CLASSPATH_RESOURCE_TYPE.md rename to agent-plugins/spring-tools/explanations/VALUE_CLASSPATH_RESOURCE_TYPE.md diff --git a/claude-plugins/spring-tools/explanations/WEB_ANNOTATION_NAMES.md b/agent-plugins/spring-tools/explanations/WEB_ANNOTATION_NAMES.md similarity index 100% rename from claude-plugins/spring-tools/explanations/WEB_ANNOTATION_NAMES.md rename to agent-plugins/spring-tools/explanations/WEB_ANNOTATION_NAMES.md diff --git a/claude-plugins/spring-tools/explanations/WEB_CONFIGURER_CONFIGURATION.md b/agent-plugins/spring-tools/explanations/WEB_CONFIGURER_CONFIGURATION.md similarity index 100% rename from claude-plugins/spring-tools/explanations/WEB_CONFIGURER_CONFIGURATION.md rename to agent-plugins/spring-tools/explanations/WEB_CONFIGURER_CONFIGURATION.md diff --git a/claude-plugins/spring-tools/explanations/WEB_SECURITY_CONFIGURER_ADAPTER.md b/agent-plugins/spring-tools/explanations/WEB_SECURITY_CONFIGURER_ADAPTER.md similarity index 100% rename from claude-plugins/spring-tools/explanations/WEB_SECURITY_CONFIGURER_ADAPTER.md rename to agent-plugins/spring-tools/explanations/WEB_SECURITY_CONFIGURER_ADAPTER.md diff --git a/claude-plugins/spring-tools/explanations/YAML_DEPRECATED_ERROR.md b/agent-plugins/spring-tools/explanations/YAML_DEPRECATED_ERROR.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_DEPRECATED_ERROR.md rename to agent-plugins/spring-tools/explanations/YAML_DEPRECATED_ERROR.md diff --git a/claude-plugins/spring-tools/explanations/YAML_DEPRECATED_WARNING.md b/agent-plugins/spring-tools/explanations/YAML_DEPRECATED_WARNING.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_DEPRECATED_WARNING.md rename to agent-plugins/spring-tools/explanations/YAML_DEPRECATED_WARNING.md diff --git a/claude-plugins/spring-tools/explanations/YAML_DUPLICATE_KEY.md b/agent-plugins/spring-tools/explanations/YAML_DUPLICATE_KEY.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_DUPLICATE_KEY.md rename to agent-plugins/spring-tools/explanations/YAML_DUPLICATE_KEY.md diff --git a/claude-plugins/spring-tools/explanations/YAML_EXPECT_BEAN_PROPERTY_NAME.md b/agent-plugins/spring-tools/explanations/YAML_EXPECT_BEAN_PROPERTY_NAME.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_EXPECT_BEAN_PROPERTY_NAME.md rename to agent-plugins/spring-tools/explanations/YAML_EXPECT_BEAN_PROPERTY_NAME.md diff --git a/claude-plugins/spring-tools/explanations/YAML_EXPECT_MAPPING.md b/agent-plugins/spring-tools/explanations/YAML_EXPECT_MAPPING.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_EXPECT_MAPPING.md rename to agent-plugins/spring-tools/explanations/YAML_EXPECT_MAPPING.md diff --git a/claude-plugins/spring-tools/explanations/YAML_EXPECT_SCALAR.md b/agent-plugins/spring-tools/explanations/YAML_EXPECT_SCALAR.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_EXPECT_SCALAR.md rename to agent-plugins/spring-tools/explanations/YAML_EXPECT_SCALAR.md diff --git a/claude-plugins/spring-tools/explanations/YAML_EXPECT_TYPE_FOUND_MAPPING.md b/agent-plugins/spring-tools/explanations/YAML_EXPECT_TYPE_FOUND_MAPPING.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_EXPECT_TYPE_FOUND_MAPPING.md rename to agent-plugins/spring-tools/explanations/YAML_EXPECT_TYPE_FOUND_MAPPING.md diff --git a/claude-plugins/spring-tools/explanations/YAML_EXPECT_TYPE_FOUND_SEQUENCE.md b/agent-plugins/spring-tools/explanations/YAML_EXPECT_TYPE_FOUND_SEQUENCE.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_EXPECT_TYPE_FOUND_SEQUENCE.md rename to agent-plugins/spring-tools/explanations/YAML_EXPECT_TYPE_FOUND_SEQUENCE.md diff --git a/claude-plugins/spring-tools/explanations/YAML_INVALID_BEAN_PROPERTY.md b/agent-plugins/spring-tools/explanations/YAML_INVALID_BEAN_PROPERTY.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_INVALID_BEAN_PROPERTY.md rename to agent-plugins/spring-tools/explanations/YAML_INVALID_BEAN_PROPERTY.md diff --git a/claude-plugins/spring-tools/explanations/YAML_PLACEHOLDER_SYNTAX.md b/agent-plugins/spring-tools/explanations/YAML_PLACEHOLDER_SYNTAX.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_PLACEHOLDER_SYNTAX.md rename to agent-plugins/spring-tools/explanations/YAML_PLACEHOLDER_SYNTAX.md diff --git a/claude-plugins/spring-tools/explanations/YAML_SHOULD_ESCAPE.md b/agent-plugins/spring-tools/explanations/YAML_SHOULD_ESCAPE.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_SHOULD_ESCAPE.md rename to agent-plugins/spring-tools/explanations/YAML_SHOULD_ESCAPE.md diff --git a/claude-plugins/spring-tools/explanations/YAML_SYNTAX_ERROR.md b/agent-plugins/spring-tools/explanations/YAML_SYNTAX_ERROR.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_SYNTAX_ERROR.md rename to agent-plugins/spring-tools/explanations/YAML_SYNTAX_ERROR.md diff --git a/claude-plugins/spring-tools/explanations/YAML_UNKNOWN_PROPERTY.md b/agent-plugins/spring-tools/explanations/YAML_UNKNOWN_PROPERTY.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_UNKNOWN_PROPERTY.md rename to agent-plugins/spring-tools/explanations/YAML_UNKNOWN_PROPERTY.md diff --git a/claude-plugins/spring-tools/explanations/YAML_UNRESOLVED_PLACEHOLDER.md b/agent-plugins/spring-tools/explanations/YAML_UNRESOLVED_PLACEHOLDER.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_UNRESOLVED_PLACEHOLDER.md rename to agent-plugins/spring-tools/explanations/YAML_UNRESOLVED_PLACEHOLDER.md diff --git a/claude-plugins/spring-tools/explanations/YAML_VALUE_TYPE_MISMATCH.md b/agent-plugins/spring-tools/explanations/YAML_VALUE_TYPE_MISMATCH.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YAML_VALUE_TYPE_MISMATCH.md rename to agent-plugins/spring-tools/explanations/YAML_VALUE_TYPE_MISMATCH.md diff --git a/claude-plugins/spring-tools/explanations/YamlSchemaProblem.md b/agent-plugins/spring-tools/explanations/YamlSchemaProblem.md similarity index 100% rename from claude-plugins/spring-tools/explanations/YamlSchemaProblem.md rename to agent-plugins/spring-tools/explanations/YamlSchemaProblem.md diff --git a/claude-plugins/spring-tools/hooks/hooks.json b/agent-plugins/spring-tools/hooks/hooks.json similarity index 100% rename from claude-plugins/spring-tools/hooks/hooks.json rename to agent-plugins/spring-tools/hooks/hooks.json diff --git a/claude-plugins/spring-tools/install.js b/agent-plugins/spring-tools/install.js similarity index 100% rename from claude-plugins/spring-tools/install.js rename to agent-plugins/spring-tools/install.js diff --git a/claude-plugins/spring-tools/launcher.js b/agent-plugins/spring-tools/launcher.js similarity index 100% rename from claude-plugins/spring-tools/launcher.js rename to agent-plugins/spring-tools/launcher.js diff --git a/claude-plugins/spring-tools/mcp.json b/agent-plugins/spring-tools/mcp.json similarity index 100% rename from claude-plugins/spring-tools/mcp.json rename to agent-plugins/spring-tools/mcp.json diff --git a/claude-plugins/spring-tools/opencode/agents/spring-reviewer.md b/agent-plugins/spring-tools/opencode/agents/spring-reviewer.md similarity index 100% rename from claude-plugins/spring-tools/opencode/agents/spring-reviewer.md rename to agent-plugins/spring-tools/opencode/agents/spring-reviewer.md diff --git a/claude-plugins/spring-tools/opencode/opencode.jsonc b/agent-plugins/spring-tools/opencode/opencode.jsonc similarity index 100% rename from claude-plugins/spring-tools/opencode/opencode.jsonc rename to agent-plugins/spring-tools/opencode/opencode.jsonc diff --git a/claude-plugins/spring-tools/plugin.json b/agent-plugins/spring-tools/plugin.json similarity index 100% rename from claude-plugins/spring-tools/plugin.json rename to agent-plugins/spring-tools/plugin.json diff --git a/claude-plugins/spring-tools/skills/architecture/SKILL.md b/agent-plugins/spring-tools/skills/architecture/SKILL.md similarity index 100% rename from claude-plugins/spring-tools/skills/architecture/SKILL.md rename to agent-plugins/spring-tools/skills/architecture/SKILL.md diff --git a/claude-plugins/spring-tools/skills/beans/SKILL.md b/agent-plugins/spring-tools/skills/beans/SKILL.md similarity index 100% rename from claude-plugins/spring-tools/skills/beans/SKILL.md rename to agent-plugins/spring-tools/skills/beans/SKILL.md diff --git a/claude-plugins/spring-tools/skills/create-spring-boot-project/SKILL.md b/agent-plugins/spring-tools/skills/create-spring-boot-project/SKILL.md similarity index 100% rename from claude-plugins/spring-tools/skills/create-spring-boot-project/SKILL.md rename to agent-plugins/spring-tools/skills/create-spring-boot-project/SKILL.md diff --git a/claude-plugins/spring-tools/skills/endpoints/SKILL.md b/agent-plugins/spring-tools/skills/endpoints/SKILL.md similarity index 100% rename from claude-plugins/spring-tools/skills/endpoints/SKILL.md rename to agent-plugins/spring-tools/skills/endpoints/SKILL.md diff --git a/claude-plugins/spring-tools/skills/project-info/SKILL.md b/agent-plugins/spring-tools/skills/project-info/SKILL.md similarity index 100% rename from claude-plugins/spring-tools/skills/project-info/SKILL.md rename to agent-plugins/spring-tools/skills/project-info/SKILL.md diff --git a/claude-plugins/spring-tools/skills/quickfix/SKILL.md b/agent-plugins/spring-tools/skills/quickfix/SKILL.md similarity index 100% rename from claude-plugins/spring-tools/skills/quickfix/SKILL.md rename to agent-plugins/spring-tools/skills/quickfix/SKILL.md diff --git a/claude-plugins/spring-tools/skills/refresh/SKILL.md b/agent-plugins/spring-tools/skills/refresh/SKILL.md similarity index 100% rename from claude-plugins/spring-tools/skills/refresh/SKILL.md rename to agent-plugins/spring-tools/skills/refresh/SKILL.md diff --git a/claude-plugins/spring-tools/skills/spring-review/SKILL.md b/agent-plugins/spring-tools/skills/spring-review/SKILL.md similarity index 100% rename from claude-plugins/spring-tools/skills/spring-review/SKILL.md rename to agent-plugins/spring-tools/skills/spring-review/SKILL.md diff --git a/claude-plugins/spring-tools/skills/spring-versions/SKILL.md b/agent-plugins/spring-tools/skills/spring-versions/SKILL.md similarity index 100% rename from claude-plugins/spring-tools/skills/spring-versions/SKILL.md rename to agent-plugins/spring-tools/skills/spring-versions/SKILL.md diff --git a/claude-plugins/spring-tools/skills/validate/SKILL.md b/agent-plugins/spring-tools/skills/validate/SKILL.md similarity index 100% rename from claude-plugins/spring-tools/skills/validate/SKILL.md rename to agent-plugins/spring-tools/skills/validate/SKILL.md diff --git a/claude-plugins/tools/check-explanations.mjs b/agent-plugins/tools/check-explanations.mjs similarity index 99% rename from claude-plugins/tools/check-explanations.mjs rename to agent-plugins/tools/check-explanations.mjs index 7b93ca12a8..b55b714e92 100644 --- a/claude-plugins/tools/check-explanations.mjs +++ b/agent-plugins/tools/check-explanations.mjs @@ -33,8 +33,8 @@ export const VERSION_VALIDATOR_FILE = 'headless-services/spring-boot-language-se // ApplicationYamlProblemType constant. The code is only collected while that dependency exists. export const YAML_AST_RECONCILER_FILE = 'headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/yaml/reconcile/ApplicationYamlASTReconciler.java'; export const YAML_SCHEMA_PROBLEMS_FILE = 'headless-services/commons/commons-yaml/src/main/java/org/springframework/ide/vscode/commons/yaml/reconcile/YamlSchemaProblems.java'; -export const EXPLANATIONS_DIR = 'claude-plugins/spring-tools/explanations'; -export const TODO_FILE = 'claude-plugins/research-notes/TODO_quickfixes.md'; +export const EXPLANATIONS_DIR = 'agent-plugins/spring-tools/explanations'; +export const TODO_FILE = 'agent-plugins/research-notes/TODO_quickfixes.md'; const DOC_LINK = /https:\/\/(?:docs\.spring\.io|spring\.io|github\.com\/spring-projects)\//; const URL_PATTERN = /https?:\/\/[^\s)>\]"'`]+/g; diff --git a/claude-plugins/tools/check-plugin-config.mjs b/agent-plugins/tools/check-plugin-config.mjs similarity index 93% rename from claude-plugins/tools/check-plugin-config.mjs rename to agent-plugins/tools/check-plugin-config.mjs index 5e37339c21..4dd8be8b07 100644 --- a/claude-plugins/tools/check-plugin-config.mjs +++ b/agent-plugins/tools/check-plugin-config.mjs @@ -11,10 +11,10 @@ *******************************************************************************/ // Checks the plugin configuration against the language server's MCP tools: -// node claude-plugins/tools/check-plugin-config.mjs [--cross-host] +// node agent-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. +// --cross-host also validates Copilot, OpenCode and Codex adapters and manifests. import { existsSync, readdirSync, readFileSync } from 'node:fs'; import { dirname, join, resolve } from 'node:path'; @@ -25,6 +25,7 @@ import { PLUGIN_DIR, checkAgent, checkAgentPluginManifest, + checkCodexMarketplace, checkCopilotAgent, checkCopilotHooks, checkEvals, @@ -120,9 +121,13 @@ if (crossHost) { } 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')); +const marketplace = JSON.parse(readFileSync(join(repoRoot, 'agent-plugins', '.claude-plugin', 'marketplace.json'), 'utf8')); errors.push(...checkManifest(pluginJson, marketplace, repoRoot)); if (crossHost) { + errors.push(...checkCodexMarketplace( + JSON.parse(readFileSync(join(repoRoot, '.agents', 'plugins', 'marketplace.json'), 'utf8')), + repoRoot, + )); errors.push(...checkAgentPluginManifest( JSON.parse(readFileSync(join(pluginDir, 'plugin.json'), 'utf8')), JSON.parse(readFileSync(join(pluginDir, 'mcp.json'), 'utf8')), diff --git a/claude-plugins/tools/evals/.gitignore b/agent-plugins/tools/evals/.gitignore similarity index 100% rename from claude-plugins/tools/evals/.gitignore rename to agent-plugins/tools/evals/.gitignore diff --git a/claude-plugins/tools/evals/architecture-describes-components/graders/describes-stereotypes.md b/agent-plugins/tools/evals/architecture-describes-components/graders/describes-stereotypes.md similarity index 100% rename from claude-plugins/tools/evals/architecture-describes-components/graders/describes-stereotypes.md rename to agent-plugins/tools/evals/architecture-describes-components/graders/describes-stereotypes.md diff --git a/claude-plugins/tools/evals/architecture-describes-components/graders/lists-the-components.md b/agent-plugins/tools/evals/architecture-describes-components/graders/lists-the-components.md similarity index 100% rename from claude-plugins/tools/evals/architecture-describes-components/graders/lists-the-components.md rename to agent-plugins/tools/evals/architecture-describes-components/graders/lists-the-components.md diff --git a/claude-plugins/tools/evals/architecture-describes-components/graders/skill-fired.md b/agent-plugins/tools/evals/architecture-describes-components/graders/skill-fired.md similarity index 100% rename from claude-plugins/tools/evals/architecture-describes-components/graders/skill-fired.md rename to agent-plugins/tools/evals/architecture-describes-components/graders/skill-fired.md diff --git a/claude-plugins/tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md b/agent-plugins/tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md similarity index 100% rename from claude-plugins/tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md rename to agent-plugins/tools/evals/architecture-describes-components/graders/used-stereotypes-tool.md diff --git a/claude-plugins/tools/evals/architecture-describes-components/prompt.md b/agent-plugins/tools/evals/architecture-describes-components/prompt.md similarity index 100% rename from claude-plugins/tools/evals/architecture-describes-components/prompt.md rename to agent-plugins/tools/evals/architecture-describes-components/prompt.md diff --git a/claude-plugins/tools/evals/beans-explains-wiring/graders/describes-wiring.md b/agent-plugins/tools/evals/beans-explains-wiring/graders/describes-wiring.md similarity index 100% rename from claude-plugins/tools/evals/beans-explains-wiring/graders/describes-wiring.md rename to agent-plugins/tools/evals/beans-explains-wiring/graders/describes-wiring.md diff --git a/claude-plugins/tools/evals/beans-explains-wiring/graders/names-the-bean-type.md b/agent-plugins/tools/evals/beans-explains-wiring/graders/names-the-bean-type.md similarity index 100% rename from claude-plugins/tools/evals/beans-explains-wiring/graders/names-the-bean-type.md rename to agent-plugins/tools/evals/beans-explains-wiring/graders/names-the-bean-type.md diff --git a/claude-plugins/tools/evals/beans-explains-wiring/graders/skill-fired.md b/agent-plugins/tools/evals/beans-explains-wiring/graders/skill-fired.md similarity index 100% rename from claude-plugins/tools/evals/beans-explains-wiring/graders/skill-fired.md rename to agent-plugins/tools/evals/beans-explains-wiring/graders/skill-fired.md diff --git a/claude-plugins/tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md b/agent-plugins/tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md similarity index 100% rename from claude-plugins/tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md rename to agent-plugins/tools/evals/beans-explains-wiring/graders/used-bean-usage-tool.md diff --git a/claude-plugins/tools/evals/beans-explains-wiring/prompt.md b/agent-plugins/tools/evals/beans-explains-wiring/prompt.md similarity index 100% rename from claude-plugins/tools/evals/beans-explains-wiring/prompt.md rename to agent-plugins/tools/evals/beans-explains-wiring/prompt.md diff --git a/claude-plugins/tools/evals/create-project-routes-to-skill/graders/skill-fired.md b/agent-plugins/tools/evals/create-project-routes-to-skill/graders/skill-fired.md similarity index 100% rename from claude-plugins/tools/evals/create-project-routes-to-skill/graders/skill-fired.md rename to agent-plugins/tools/evals/create-project-routes-to-skill/graders/skill-fired.md diff --git a/claude-plugins/tools/evals/create-project-routes-to-skill/prompt.md b/agent-plugins/tools/evals/create-project-routes-to-skill/prompt.md similarity index 100% rename from claude-plugins/tools/evals/create-project-routes-to-skill/prompt.md rename to agent-plugins/tools/evals/create-project-routes-to-skill/prompt.md diff --git a/claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md b/agent-plugins/tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md similarity index 100% rename from claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md rename to agent-plugins/tools/evals/endpoints-lists-request-mappings/graders/lists-greeting-endpoint.md diff --git a/claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md b/agent-plugins/tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md similarity index 100% rename from claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md rename to agent-plugins/tools/evals/endpoints-lists-request-mappings/graders/names-the-controller.md diff --git a/claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md b/agent-plugins/tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md similarity index 100% rename from claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md rename to agent-plugins/tools/evals/endpoints-lists-request-mappings/graders/skill-fired.md diff --git a/claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md b/agent-plugins/tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md similarity index 100% rename from claude-plugins/tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md rename to agent-plugins/tools/evals/endpoints-lists-request-mappings/graders/used-request-mappings-tool.md diff --git a/claude-plugins/tools/evals/endpoints-lists-request-mappings/prompt.md b/agent-plugins/tools/evals/endpoints-lists-request-mappings/prompt.md similarity index 100% rename from claude-plugins/tools/evals/endpoints-lists-request-mappings/prompt.md rename to agent-plugins/tools/evals/endpoints-lists-request-mappings/prompt.md diff --git a/claude-plugins/tools/evals/ignores-unrelated-request/graders/answers-the-question.md b/agent-plugins/tools/evals/ignores-unrelated-request/graders/answers-the-question.md similarity index 100% rename from claude-plugins/tools/evals/ignores-unrelated-request/graders/answers-the-question.md rename to agent-plugins/tools/evals/ignores-unrelated-request/graders/answers-the-question.md diff --git a/claude-plugins/tools/evals/ignores-unrelated-request/graders/no-project-lookup.md b/agent-plugins/tools/evals/ignores-unrelated-request/graders/no-project-lookup.md similarity index 100% rename from claude-plugins/tools/evals/ignores-unrelated-request/graders/no-project-lookup.md rename to agent-plugins/tools/evals/ignores-unrelated-request/graders/no-project-lookup.md diff --git a/claude-plugins/tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md b/agent-plugins/tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md similarity index 100% rename from claude-plugins/tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md rename to agent-plugins/tools/evals/ignores-unrelated-request/graders/no-skill-invoked.md diff --git a/claude-plugins/tools/evals/ignores-unrelated-request/prompt.md b/agent-plugins/tools/evals/ignores-unrelated-request/prompt.md similarity index 100% rename from claude-plugins/tools/evals/ignores-unrelated-request/prompt.md rename to agent-plugins/tools/evals/ignores-unrelated-request/prompt.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/capture-logical-structure-baseline.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/clear-logical-structure-baseline.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/file-changed.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/file-changed.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/file-changed.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/file-changed.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/file-deleted.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/file-deleted.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/file-deleted.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/file-deleted.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/find-beans-by-type.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/find-beans-by-type.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/find-beans-by-type.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/find-beans-by-type.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/find-components-by-stereotype.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/find-request-mappings-by-method.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-bean-details.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-bean-details.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-bean-details.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-bean-details.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-generations.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-generations.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-generations.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-generations.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-latest-boot-versions.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-list-components-and-stereotypes.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-baseline-history.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure-changes.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-logical-structure.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-project-list.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-project-list.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-project-list.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-project-list.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-releases.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-releases.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-releases.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-releases.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-resolved-project-classpath.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-spring-boot-version.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-stereotypes-list.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-structure-dependencies.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md b/agent-plugins/tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md rename to agent-plugins/tools/evals/mcp-tools-covered/graders/get-upcoming-releases.md diff --git a/claude-plugins/tools/evals/mcp-tools-covered/prompt.md b/agent-plugins/tools/evals/mcp-tools-covered/prompt.md similarity index 100% rename from claude-plugins/tools/evals/mcp-tools-covered/prompt.md rename to agent-plugins/tools/evals/mcp-tools-covered/prompt.md diff --git a/claude-plugins/tools/evals/mock-mcp-server.mjs b/agent-plugins/tools/evals/mock-mcp-server.mjs similarity index 100% rename from claude-plugins/tools/evals/mock-mcp-server.mjs rename to agent-plugins/tools/evals/mock-mcp-server.mjs diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/_tools.json b/agent-plugins/tools/evals/mocks/spring-tools-mcp/_tools.json similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/_tools.json rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/_tools.json diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/captureLogicalStructureBaseline.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/clearLogicalStructureBaseline.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/fileChanged.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/fileChanged.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/fileChanged.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/fileChanged.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/fileDeleted.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/fileDeleted.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/fileDeleted.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/fileDeleted.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/findBeansByType.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/findBeansByType.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/findBeansByType.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/findBeansByType.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/findComponentsByStereotype.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/findRequestMappingsByMethod.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getBeanDetails.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getBeanDetails.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getBeanDetails.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getBeanDetails.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getBeanUsageInfo.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getGenerations.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getGenerations.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getGenerations.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getGenerations.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getJavaVersion.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getJavaVersion.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getJavaVersion.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getJavaVersion.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getLatestBootVersionsFromMavenRepo.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getLatestReleaseInformation.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getListOfComponentsAndTheirStereotypes.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructure.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureBaselineHistory.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getLogicalStructureChanges.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getProjectDiagnostics.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getProjectList.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getProjectList.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getProjectList.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getProjectList.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getReleases.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getReleases.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getReleases.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getReleases.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getRequestMappings.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getRequestMappings.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getRequestMappings.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getRequestMappings.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getResolvedProjectClasspath.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getSpringBootVersion.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getStereotypesList.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getStereotypesList.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getStereotypesList.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getStereotypesList.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getStructureDependencies.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/getUpcomingReleases.md diff --git a/claude-plugins/tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md b/agent-plugins/tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md similarity index 100% rename from claude-plugins/tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md rename to agent-plugins/tools/evals/mocks/spring-tools-mcp/refreshWorkspace.md diff --git a/claude-plugins/tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md b/agent-plugins/tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md similarity index 100% rename from claude-plugins/tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md rename to agent-plugins/tools/evals/project-info-reports-versions/graders/reports-project-and-versions.md diff --git a/claude-plugins/tools/evals/project-info-reports-versions/graders/skill-fired.md b/agent-plugins/tools/evals/project-info-reports-versions/graders/skill-fired.md similarity index 100% rename from claude-plugins/tools/evals/project-info-reports-versions/graders/skill-fired.md rename to agent-plugins/tools/evals/project-info-reports-versions/graders/skill-fired.md diff --git a/claude-plugins/tools/evals/project-info-reports-versions/graders/used-java-version-tool.md b/agent-plugins/tools/evals/project-info-reports-versions/graders/used-java-version-tool.md similarity index 100% rename from claude-plugins/tools/evals/project-info-reports-versions/graders/used-java-version-tool.md rename to agent-plugins/tools/evals/project-info-reports-versions/graders/used-java-version-tool.md diff --git a/claude-plugins/tools/evals/project-info-reports-versions/prompt.md b/agent-plugins/tools/evals/project-info-reports-versions/prompt.md similarity index 100% rename from claude-plugins/tools/evals/project-info-reports-versions/prompt.md rename to agent-plugins/tools/evals/project-info-reports-versions/prompt.md diff --git a/claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md b/agent-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md similarity index 100% rename from claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md rename to agent-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/explains-and-fixes.md diff --git a/claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md b/agent-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md similarity index 100% rename from claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md rename to agent-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/read-the-playbook.md diff --git a/claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md b/agent-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md similarity index 100% rename from claude-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md rename to agent-plugins/tools/evals/quickfix-explains-diagnostic-code/graders/skill-fired.md diff --git a/claude-plugins/tools/evals/quickfix-explains-diagnostic-code/prompt.md b/agent-plugins/tools/evals/quickfix-explains-diagnostic-code/prompt.md similarity index 100% rename from claude-plugins/tools/evals/quickfix-explains-diagnostic-code/prompt.md rename to agent-plugins/tools/evals/quickfix-explains-diagnostic-code/prompt.md diff --git a/claude-plugins/tools/evals/record-mocks.mjs b/agent-plugins/tools/evals/record-mocks.mjs similarity index 97% rename from claude-plugins/tools/evals/record-mocks.mjs rename to agent-plugins/tools/evals/record-mocks.mjs index ef287efce7..a93e8a7b32 100644 --- a/claude-plugins/tools/evals/record-mocks.mjs +++ b/agent-plugins/tools/evals/record-mocks.mjs @@ -15,10 +15,10 @@ // project, calls every tool the eval cases may use and writes the answers as // 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 +// Needs the language server JAR in the plugin (agent-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 ] +// node agent-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'; @@ -30,7 +30,7 @@ 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 pluginDir = join(repoRoot, 'agent-plugins', 'spring-tools'); const { defaultInstallDir } = createRequire(import.meta.url)(join(pluginDir, 'install.js')); const mocksDir = join(here, 'mocks', 'spring-tools-mcp'); // Case-level override: the fixture only yields version diagnostics by itself, so the validate case @@ -46,7 +46,7 @@ const projectSrc = resolve(option('--project-src') ?? join(repoRoot, 'headless-s 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`); + console.error(`language server JAR not found at ${jarPath}; build the local test JAR with agent-plugins/update-local-jars.sh or set SPRING_TOOLS_LS_JAR`); process.exit(2); } diff --git a/claude-plugins/tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md b/agent-plugins/tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md similarity index 100% rename from claude-plugins/tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md rename to agent-plugins/tools/evals/refresh-reindexes-workspace/graders/confirms-refresh.md diff --git a/claude-plugins/tools/evals/refresh-reindexes-workspace/graders/skill-fired.md b/agent-plugins/tools/evals/refresh-reindexes-workspace/graders/skill-fired.md similarity index 100% rename from claude-plugins/tools/evals/refresh-reindexes-workspace/graders/skill-fired.md rename to agent-plugins/tools/evals/refresh-reindexes-workspace/graders/skill-fired.md diff --git a/claude-plugins/tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md b/agent-plugins/tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md similarity index 100% rename from claude-plugins/tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md rename to agent-plugins/tools/evals/refresh-reindexes-workspace/graders/used-refresh-tool.md diff --git a/claude-plugins/tools/evals/refresh-reindexes-workspace/prompt.md b/agent-plugins/tools/evals/refresh-reindexes-workspace/prompt.md similarity index 100% rename from claude-plugins/tools/evals/refresh-reindexes-workspace/prompt.md rename to agent-plugins/tools/evals/refresh-reindexes-workspace/prompt.md diff --git a/claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md b/agent-plugins/tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md similarity index 100% rename from claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md rename to agent-plugins/tools/evals/reviewer-agent-reviews-project/graders/delegated-to-reviewer.md diff --git a/claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md b/agent-plugins/tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md similarity index 100% rename from claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md rename to agent-plugins/tools/evals/reviewer-agent-reviews-project/graders/names-the-finding.md diff --git a/claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md b/agent-plugins/tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md similarity index 100% rename from claude-plugins/tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md rename to agent-plugins/tools/evals/reviewer-agent-reviews-project/graders/relays-findings.md diff --git a/claude-plugins/tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md b/agent-plugins/tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md similarity index 100% rename from claude-plugins/tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md rename to agent-plugins/tools/evals/reviewer-agent-reviews-project/mocks/spring-tools-mcp/getProjectDiagnostics.md diff --git a/claude-plugins/tools/evals/reviewer-agent-reviews-project/prompt.md b/agent-plugins/tools/evals/reviewer-agent-reviews-project/prompt.md similarity index 100% rename from claude-plugins/tools/evals/reviewer-agent-reviews-project/prompt.md rename to agent-plugins/tools/evals/reviewer-agent-reviews-project/prompt.md diff --git a/claude-plugins/tools/evals/run-claude-evals.mjs b/agent-plugins/tools/evals/run-claude-evals.mjs similarity index 100% rename from claude-plugins/tools/evals/run-claude-evals.mjs rename to agent-plugins/tools/evals/run-claude-evals.mjs diff --git a/claude-plugins/tools/evals/run-with-copilot.mjs b/agent-plugins/tools/evals/run-with-copilot.mjs similarity index 98% rename from claude-plugins/tools/evals/run-with-copilot.mjs rename to agent-plugins/tools/evals/run-with-copilot.mjs index ec3208aa5f..d8b231d949 100644 --- a/claude-plugins/tools/evals/run-with-copilot.mjs +++ b/agent-plugins/tools/evals/run-with-copilot.mjs @@ -10,10 +10,10 @@ * Broadcom - initial API and implementation *******************************************************************************/ -// Runs the plugin's external eval suite (claude-plugins/tools/evals) with GitHub Copilot CLI, the +// Runs the plugin's external eval suite (agent-plugins/tools/evals) with GitHub Copilot CLI, the // same way `claude plugin eval` runs it with Claude Code: // -// node claude-plugins/tools/evals/run-with-copilot.mjs [--case ] [--model ] [--keep] +// node agent-plugins/tools/evals/run-with-copilot.mjs [--case ] [--model ] [--keep] // // Each case gets a throwaway workspace with the sf7-validation fixture and a throwaway copy of the // plugin whose MCP server is mock-mcp-server.mjs, so no language server and no network are needed. diff --git a/claude-plugins/tools/evals/spring-review-skill/graders/skill-fired.md b/agent-plugins/tools/evals/spring-review-skill/graders/skill-fired.md similarity index 100% rename from claude-plugins/tools/evals/spring-review-skill/graders/skill-fired.md rename to agent-plugins/tools/evals/spring-review-skill/graders/skill-fired.md diff --git a/claude-plugins/tools/evals/spring-review-skill/prompt.md b/agent-plugins/tools/evals/spring-review-skill/prompt.md similarity index 100% rename from claude-plugins/tools/evals/spring-review-skill/prompt.md rename to agent-plugins/tools/evals/spring-review-skill/prompt.md diff --git a/claude-plugins/tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md b/agent-plugins/tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md similarity index 100% rename from claude-plugins/tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md rename to agent-plugins/tools/evals/spring-versions-checks-support/graders/gives-oss-support-end.md diff --git a/claude-plugins/tools/evals/spring-versions-checks-support/graders/names-both-versions.md b/agent-plugins/tools/evals/spring-versions-checks-support/graders/names-both-versions.md similarity index 100% rename from claude-plugins/tools/evals/spring-versions-checks-support/graders/names-both-versions.md rename to agent-plugins/tools/evals/spring-versions-checks-support/graders/names-both-versions.md diff --git a/claude-plugins/tools/evals/spring-versions-checks-support/graders/skill-fired.md b/agent-plugins/tools/evals/spring-versions-checks-support/graders/skill-fired.md similarity index 100% rename from claude-plugins/tools/evals/spring-versions-checks-support/graders/skill-fired.md rename to agent-plugins/tools/evals/spring-versions-checks-support/graders/skill-fired.md diff --git a/claude-plugins/tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md b/agent-plugins/tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md similarity index 100% rename from claude-plugins/tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md rename to agent-plugins/tools/evals/spring-versions-checks-support/graders/used-release-information-tool.md diff --git a/claude-plugins/tools/evals/spring-versions-checks-support/prompt.md b/agent-plugins/tools/evals/spring-versions-checks-support/prompt.md similarity index 100% rename from claude-plugins/tools/evals/spring-versions-checks-support/prompt.md rename to agent-plugins/tools/evals/spring-versions-checks-support/prompt.md diff --git a/claude-plugins/tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md b/agent-plugins/tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md similarity index 100% rename from claude-plugins/tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md rename to agent-plugins/tools/evals/validate-finds-spring-problems/graders/names-the-diagnostic.md diff --git a/claude-plugins/tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md b/agent-plugins/tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md similarity index 100% rename from claude-plugins/tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md rename to agent-plugins/tools/evals/validate-finds-spring-problems/graders/reports-diagnostics.md diff --git a/claude-plugins/tools/evals/validate-finds-spring-problems/graders/skill-fired.md b/agent-plugins/tools/evals/validate-finds-spring-problems/graders/skill-fired.md similarity index 100% rename from claude-plugins/tools/evals/validate-finds-spring-problems/graders/skill-fired.md rename to agent-plugins/tools/evals/validate-finds-spring-problems/graders/skill-fired.md diff --git a/claude-plugins/tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md b/agent-plugins/tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md similarity index 100% rename from claude-plugins/tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md rename to agent-plugins/tools/evals/validate-finds-spring-problems/graders/used-diagnostics-tool.md diff --git a/claude-plugins/tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md b/agent-plugins/tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md similarity index 100% rename from claude-plugins/tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md rename to agent-plugins/tools/evals/validate-finds-spring-problems/mocks/spring-tools-mcp/getProjectDiagnostics.md diff --git a/claude-plugins/tools/evals/validate-finds-spring-problems/prompt.md b/agent-plugins/tools/evals/validate-finds-spring-problems/prompt.md similarity index 100% rename from claude-plugins/tools/evals/validate-finds-spring-problems/prompt.md rename to agent-plugins/tools/evals/validate-finds-spring-problems/prompt.md diff --git a/claude-plugins/tools/lib/eval-grading.mjs b/agent-plugins/tools/lib/eval-grading.mjs similarity index 100% rename from claude-plugins/tools/lib/eval-grading.mjs rename to agent-plugins/tools/lib/eval-grading.mjs diff --git a/claude-plugins/tools/lib/plugin-config.mjs b/agent-plugins/tools/lib/plugin-config.mjs similarity index 95% rename from claude-plugins/tools/lib/plugin-config.mjs rename to agent-plugins/tools/lib/plugin-config.mjs index 8ad76fccff..8b4390785d 100644 --- a/claude-plugins/tools/lib/plugin-config.mjs +++ b/agent-plugins/tools/lib/plugin-config.mjs @@ -10,16 +10,16 @@ *******************************************************************************/ // Consistency rules between the plugin configuration (manifests, hooks, skills, -// agents) and the MCP tools implemented by the language server. The plugin is loaded by two -// clients: Claude Code reads `.claude-plugin/plugin.json`, `hooks/hooks.json` and `agents/`, -// GitHub Copilot CLI reads the Agent Plugins 1.0 manifests (`plugin.json`, `mcp.json`) and the -// `com.github.copilot/` directory. Both sets must stay in sync. +// agents) and the MCP tools implemented by the language server. The plugin shares configuration across hosts: +// Claude Code reads `.claude-plugin/plugin.json`, `hooks/hooks.json` and `agents/`, +// GitHub Copilot CLI and Codex read the Agent Plugins 1.0 manifests (`plugin.json`, `mcp.json`) and the +// `com.github.copilot/` directory supplies Copilot-specific adapters. Shared fields must stay in sync. import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs'; import { basename, join } from 'node:path'; export const MCP_SOURCES_DIR = 'headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/mcp'; -export const PLUGIN_DIR = 'claude-plugins/spring-tools'; +export const PLUGIN_DIR = 'agent-plugins/spring-tools'; export const MCP_SERVER_NAME = 'spring-tools-mcp'; export const PLUGIN_NAME = 'spring-tools'; export const HOOK_SERVER = `plugin:${PLUGIN_NAME}:${MCP_SERVER_NAME}`; @@ -458,7 +458,7 @@ export function checkEvals(evalsDir, tools, skillNames, agentNames) { const mocked = new Set(readdirSync(suiteMocks).filter((f) => f.endsWith('.md')).map((f) => basename(f, '.md'))); const unmocked = [...tools.keys()].filter((t) => !mocked.has(t)).sort(); if (unmocked.length) { - errors.push(`evals: tools without a suite-wide mock (re-run claude-plugins/tools/evals/record-mocks.mjs): ${unmocked.join(', ')}`); + errors.push(`evals: tools without a suite-wide mock (re-run agent-plugins/tools/evals/record-mocks.mjs): ${unmocked.join(', ')}`); } const toolsJson = join(suiteMocks, '_tools.json'); if (!existsSync(toolsJson)) { @@ -484,6 +484,28 @@ export function checkEvals(evalsDir, tools, skillNames, agentNames) { return errors; } +/** Validates this repository's Codex catalog against the shared portable plugin. */ +export function checkCodexMarketplace(catalog, root) { + const errors = []; + const entries = (catalog.plugins ?? []).filter((entry) => entry.name === PLUGIN_NAME); + if (entries.length !== 1) { + errors.push(`Codex marketplace must contain exactly one '${PLUGIN_NAME}' entry`); + return errors; + } + const source = entries[0].source; + if (source?.source !== 'local' || source.path !== `./${PLUGIN_DIR}`) { + errors.push(`Codex marketplace source must be local with path './${PLUGIN_DIR}'`); + return errors; + } + const manifestPath = join(root, PLUGIN_DIR, 'plugin.json'); + if (!existsSync(manifestPath)) { + errors.push('Codex marketplace source has no portable plugin.json'); + } else if (JSON.parse(readFileSync(manifestPath, 'utf8')).name !== entries[0].name) { + errors.push('Codex marketplace plugin name differs from portable plugin.json'); + } + return errors; +} + /** Validates plugin.json and the local marketplace; returns error strings. */ export function checkManifest(pluginJson, marketplaceJson, root) { const errors = []; @@ -510,7 +532,7 @@ export function checkManifest(pluginJson, marketplaceJson, root) { const entry = (marketplaceJson.plugins ?? []).find((p) => p.name === PLUGIN_NAME); if (!entry) { errors.push(`marketplace.json has no plugin named '${PLUGIN_NAME}'`); - } else if (typeof entry.source !== 'string' || !existsSync(join(root, 'claude-plugins', entry.source, '.claude-plugin', 'plugin.json'))) { + } else if (typeof entry.source !== 'string' || !existsSync(join(root, 'agent-plugins', entry.source, '.claude-plugin', 'plugin.json'))) { errors.push(`marketplace.json source '${entry.source}' does not point at a plugin directory`); } return errors; diff --git a/agent-plugins/tools/package.json b/agent-plugins/tools/package.json new file mode 100644 index 0000000000..7c94584181 --- /dev/null +++ b/agent-plugins/tools/package.json @@ -0,0 +1,15 @@ +{ + "name": "spring-tools-agent-plugin-tools", + "version": "0.0.0", + "private": true, + "description": "Development checks for the Spring Tools agent plugin (explanation playbooks, plugin configuration). Not part of the published plugin.", + "license": "EPL-1.0", + "engines": { + "node": ">=20" + }, + "scripts": { + "check": "node check-explanations.mjs --require-all --todo && node check-plugin-config.mjs", + "check:links": "node check-explanations.mjs --require-all --links", + "test": "node --test --test-reporter=tap \"test/*.test.mjs\"" + } +} diff --git a/claude-plugins/tools/smoke/mcp-smoke.mjs b/agent-plugins/tools/smoke/mcp-smoke.mjs similarity index 98% rename from claude-plugins/tools/smoke/mcp-smoke.mjs rename to agent-plugins/tools/smoke/mcp-smoke.mjs index 22ee729680..0b2c5b1192 100644 --- a/claude-plugins/tools/smoke/mcp-smoke.mjs +++ b/agent-plugins/tools/smoke/mcp-smoke.mjs @@ -12,10 +12,10 @@ // 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 +// Needs the language server JAR in the plugin (agent-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] +// node agent-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. @@ -29,7 +29,7 @@ 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 pluginDir = join(repoRoot, 'agent-plugins', 'spring-tools'); const JAR_NAME = 'spring-boot-language-server-standalone-exec.jar'; const { defaultInstallDir } = createRequire(import.meta.url)(join(pluginDir, 'install.js')); @@ -43,7 +43,7 @@ const keep = args.includes('--keep'); 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`); + console.error(`language server JAR not found at ${jarPath}; build the local test JAR with agent-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'))) { diff --git a/claude-plugins/tools/sync-agent-adapters.mjs b/agent-plugins/tools/sync-agent-adapters.mjs similarity index 100% rename from claude-plugins/tools/sync-agent-adapters.mjs rename to agent-plugins/tools/sync-agent-adapters.mjs diff --git a/claude-plugins/tools/test/eval-grading.test.mjs b/agent-plugins/tools/test/eval-grading.test.mjs similarity index 100% rename from claude-plugins/tools/test/eval-grading.test.mjs rename to agent-plugins/tools/test/eval-grading.test.mjs diff --git a/claude-plugins/tools/test/explanations.test.mjs b/agent-plugins/tools/test/explanations.test.mjs similarity index 100% rename from claude-plugins/tools/test/explanations.test.mjs rename to agent-plugins/tools/test/explanations.test.mjs diff --git a/claude-plugins/tools/test/fixtures/bad-agent.md b/agent-plugins/tools/test/fixtures/bad-agent.md similarity index 100% rename from claude-plugins/tools/test/fixtures/bad-agent.md rename to agent-plugins/tools/test/fixtures/bad-agent.md diff --git a/claude-plugins/tools/test/fixtures/bad-hooks.json b/agent-plugins/tools/test/fixtures/bad-hooks.json similarity index 100% rename from claude-plugins/tools/test/fixtures/bad-hooks.json rename to agent-plugins/tools/test/fixtures/bad-hooks.json diff --git a/claude-plugins/tools/test/fixtures/bad-repo/claude-plugins/research-notes/TODO_quickfixes.md b/agent-plugins/tools/test/fixtures/bad-repo/agent-plugins/research-notes/TODO_quickfixes.md similarity index 100% rename from claude-plugins/tools/test/fixtures/bad-repo/claude-plugins/research-notes/TODO_quickfixes.md rename to agent-plugins/tools/test/fixtures/bad-repo/agent-plugins/research-notes/TODO_quickfixes.md diff --git a/claude-plugins/tools/test/fixtures/bad-repo/claude-plugins/spring-tools/explanations/GOOD_CODE.md b/agent-plugins/tools/test/fixtures/bad-repo/agent-plugins/spring-tools/explanations/GOOD_CODE.md similarity index 100% rename from claude-plugins/tools/test/fixtures/bad-repo/claude-plugins/spring-tools/explanations/GOOD_CODE.md rename to agent-plugins/tools/test/fixtures/bad-repo/agent-plugins/spring-tools/explanations/GOOD_CODE.md diff --git a/claude-plugins/tools/test/fixtures/bad-repo/claude-plugins/spring-tools/explanations/ORPHAN_CODE.md b/agent-plugins/tools/test/fixtures/bad-repo/agent-plugins/spring-tools/explanations/ORPHAN_CODE.md similarity index 100% rename from claude-plugins/tools/test/fixtures/bad-repo/claude-plugins/spring-tools/explanations/ORPHAN_CODE.md rename to agent-plugins/tools/test/fixtures/bad-repo/agent-plugins/spring-tools/explanations/ORPHAN_CODE.md diff --git a/claude-plugins/tools/test/fixtures/bad-repo/claude-plugins/spring-tools/explanations/REF_TARGET.md b/agent-plugins/tools/test/fixtures/bad-repo/agent-plugins/spring-tools/explanations/REF_TARGET.md similarity index 100% rename from claude-plugins/tools/test/fixtures/bad-repo/claude-plugins/spring-tools/explanations/REF_TARGET.md rename to agent-plugins/tools/test/fixtures/bad-repo/agent-plugins/spring-tools/explanations/REF_TARGET.md diff --git a/claude-plugins/tools/test/fixtures/bad-repo/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/FakeProblemType.java b/agent-plugins/tools/test/fixtures/bad-repo/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/FakeProblemType.java similarity index 92% rename from claude-plugins/tools/test/fixtures/bad-repo/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/FakeProblemType.java rename to agent-plugins/tools/test/fixtures/bad-repo/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/FakeProblemType.java index 0d203c7890..8b0b7331e5 100644 --- a/claude-plugins/tools/test/fixtures/bad-repo/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/FakeProblemType.java +++ b/agent-plugins/tools/test/fixtures/bad-repo/headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/FakeProblemType.java @@ -10,7 +10,7 @@ *******************************************************************************/ package org.springframework.ide.vscode.boot.java; -// Test fixture for claude-plugins/tools: a minimal problem-type enum with three codes. +// Test fixture for agent-plugins/tools: a minimal problem-type enum with three codes. public enum FakeProblemType implements ProblemType { GOOD_CODE(WARNING, "A code with a valid playbook", "Good code"), diff --git a/claude-plugins/tools/test/fixtures/bad-skill.md b/agent-plugins/tools/test/fixtures/bad-skill.md similarity index 100% rename from claude-plugins/tools/test/fixtures/bad-skill.md rename to agent-plugins/tools/test/fixtures/bad-skill.md diff --git a/claude-plugins/tools/test/install.test.mjs b/agent-plugins/tools/test/install.test.mjs similarity index 99% rename from claude-plugins/tools/test/install.test.mjs rename to agent-plugins/tools/test/install.test.mjs index a314dbae67..11bc90ff70 100644 --- a/claude-plugins/tools/test/install.test.mjs +++ b/agent-plugins/tools/test/install.test.mjs @@ -33,7 +33,7 @@ const version = pluginVersion(pluginRoot); // (findSourceRoot would find it and kick off a real, multi-minute Maven build); give them a // pluginRoot whose parent directories hold no source checkout. const isolatedRoot = mkdtempSync(join(tmpdir(), 'spring-tools-isolated-')); -const isolatedPluginRoot = join(isolatedRoot, 'claude-plugins', 'spring-tools'); +const isolatedPluginRoot = join(isolatedRoot, 'agent-plugins', 'spring-tools'); mkdirSync(isolatedPluginRoot, { recursive: true }); writeFileSync(join(isolatedPluginRoot, 'plugin.json'), JSON.stringify({ version })); const jarBytes = randomBytes(3 * 1024 * 1024 + 123); @@ -197,7 +197,7 @@ test('falls back to building the standalone JAR from an available source checkou if (skipWithoutLoopback(t)) return; state.mode = 'missing'; const root = mkdtempSync(join(tmpdir(), 'spring-tools-source-')); - const localPlugin = join(root, 'claude-plugins', 'spring-tools'); + const localPlugin = join(root, 'agent-plugins', 'spring-tools'); const target = join(root, 'headless-services', 'spring-boot-language-server-standalone', 'target'); mkdirSync(localPlugin, { recursive: true }); mkdirSync(target, { recursive: true }); diff --git a/claude-plugins/tools/test/launcher.test.mjs b/agent-plugins/tools/test/launcher.test.mjs similarity index 100% rename from claude-plugins/tools/test/launcher.test.mjs rename to agent-plugins/tools/test/launcher.test.mjs diff --git a/agent-plugins/tools/test/plugin-config.test.mjs b/agent-plugins/tools/test/plugin-config.test.mjs new file mode 100644 index 0000000000..dc7ed48794 --- /dev/null +++ b/agent-plugins/tools/test/plugin-config.test.mjs @@ -0,0 +1,451 @@ +/******************************************************************************* + * 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 assert from 'node:assert/strict'; +import { spawnSync } from 'node:child_process'; +import { existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } 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 { + COPILOT_DIR, + HOOK_SERVER, + MCP_SCHEMA, + PLUGIN_DIR, + PLUGIN_SCHEMA, + SCOPED_TOOL_PREFIX, + checkAgent, + checkAgentPluginManifest, + checkCodexMarketplace, + checkCopilotAgent, + checkCopilotHooks, + checkEvals, + checkHooks, + checkManifest, + checkSkill, + collectMcpTools, + parseFrontMatter, + skillToolNames, + uncoveredTools, +} from '../lib/plugin-config.mjs'; +import { copilotAgentId, countToolMatches, toolGradePasses } from '../lib/eval-grading.mjs'; + +const here = dirname(fileURLToPath(import.meta.url)); +const repoRoot = join(here, '..', '..', '..'); +const pluginDir = join(repoRoot, PLUGIN_DIR); +const evalsDir = join(here, '..', 'evals'); +const tools = collectMcpTools(repoRoot); +const skillsDir = join(pluginDir, 'skills'); +const skillNames = readdirSync(skillsDir); +const skillText = (name) => readFileSync(join(skillsDir, name, 'SKILL.md'), 'utf8'); +const agentsDir = join(pluginDir, 'agents'); +const agentFiles = readdirSync(agentsDir).filter((f) => f.endsWith('.md')); + +test('the language server exposes the MCP tools the plugin relies on', () => { + for (const name of ['getProjectList', 'getProjectDiagnostics', 'fileChanged', 'fileDeleted', 'refreshWorkspace', 'getSpringBootVersion']) { + assert.ok(tools.has(name), `MCP tool ${name} not found in the language server sources`); + } + assert.deepEqual(tools.get('fileChanged'), ['filePath']); + assert.deepEqual(tools.get('getProjectDiagnostics'), ['projectName']); +}); + +test('hooks.json only calls existing MCP tools through the plugin-scoped server with matching parameters', () => { + const hooks = JSON.parse(readFileSync(join(pluginDir, 'hooks', 'hooks.json'), 'utf8')); + assert.deepEqual(checkHooks(hooks, tools, repoRoot), []); + assert.equal(hooks.hooks.PostToolUse[0].hooks[0].server, HOOK_SERVER); +}); + +test('hooks.json pre-downloads the JAR at session start and refreshes the index after commands that rewrite the tree', () => { + const hooks = JSON.parse(readFileSync(join(pluginDir, 'hooks', 'hooks.json'), 'utf8')); + const start = hooks.hooks.SessionStart.flatMap((g) => g.hooks); + assert.equal(start.length, 1); + assert.equal(start[0].type, 'command'); + assert.equal(start[0].command, 'node'); + assert.deepEqual(start[0].args, ['${CLAUDE_PLUGIN_ROOT}/install.js', '--if-missing']); + assert.ok(start[0].timeout >= 300, 'the first-run download needs more than the default hook budget on slow links'); + + const post = hooks.hooks.PostToolUse.flatMap((g) => g.hooks); + const refreshRules = post.filter((h) => h.tool === 'refreshWorkspace').map((h) => h.if); + for (const rule of ['Bash(git *)', 'Bash(rm *)', 'Bash(mv *)', 'Bash(tar *)', 'Bash(unzip *)', 'PowerShell(git *)', 'PowerShell(Remove-Item *)']) { + assert.ok(refreshRules.includes(rule), `${rule} should trigger refreshWorkspace`); + } + const fileRules = post.filter((h) => h.tool === 'fileChanged').map((h) => h.if); + for (const ext of ['java', 'kt', 'xml', 'properties', 'yml', 'yaml', 'factories', 'gradle', 'kts']) { + assert.ok(fileRules.includes(`Edit(*.${ext})`), `edits of *.${ext} should trigger fileChanged`); + } + assert.ok(post.filter((h) => h.tool === 'fileChanged').every((h) => h.input.filePath === '${tool_input.file_path}')); +}); + +test('every skill has a SKILL.md whose name matches its directory and whose tools exist', () => { + for (const dirName of skillNames) { + const file = join(skillsDir, dirName, 'SKILL.md'); + assert.ok(existsSync(file), `${dirName} has no SKILL.md`); + assert.deepEqual(checkSkill(dirName, readFileSync(file, 'utf8'), tools, skillNames), [], dirName); + } +}); + +test('every MCP tool has positive behavioral eval coverage', () => { + assert.deepEqual(checkEvals(evalsDir, tools, skillNames, agentFiles.map((file) => file.replace(/\.md$/, ''))), []); +}); + +test('eval staging combines plugin and external cases without publishing the eval suite', () => { + 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', () => { + const text = readFileSync(join(skillsDir, 'quickfix', 'SKILL.md'), 'utf8'); + const front = parseFrontMatter(text); + // Named arguments expand to an empty string when omitted; $ARGUMENTS[2] would stay literal. + assert.deepEqual(front.arguments, ['code', 'file', 'range']); + assert.ok(text.includes('${CLAUDE_PLUGIN_ROOT}/explanations/.md')); + assert.ok(text.includes('`../../explanations/.md` relative to this skill directory')); + assert.ok(!/\$ARGUMENTS\[/.test(text), 'quickfix should use the named placeholders only'); + assert.ok(front['allowed-tools'].includes(`${SCOPED_TOOL_PREFIX}getSpringBootVersion`)); +}); + +test('the validate skill pre-approves quickfix invocations that carry arguments', () => { + const front = parseFrontMatter(readFileSync(join(skillsDir, '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 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'); + assert.ok(text.includes('curl -sS https://start.spring.io | grep'), 'the body must use exactly the granted lookup command'); + assert.ok(allowed.includes(`${SCOPED_TOOL_PREFIX}refreshWorkspace`)); + assert.match(text, /refreshWorkspace/); +}); + +test('plugin.json and the local marketplace are consistent with the plugin directory', () => { + const pluginJson = JSON.parse(readFileSync(join(pluginDir, '.claude-plugin', 'plugin.json'), 'utf8')); + const marketplace = JSON.parse(readFileSync(join(repoRoot, 'agent-plugins', '.claude-plugin', 'marketplace.json'), 'utf8')); + assert.deepEqual(checkManifest(pluginJson, marketplace, repoRoot), []); +}); + +test('Codex marketplace resolves to the shared portable plugin', () => { + const catalog = JSON.parse(readFileSync(join(repoRoot, '.agents', 'plugins', 'marketplace.json'), 'utf8')); + assert.deepEqual(checkCodexMarketplace(catalog, repoRoot), []); +}); + +test('negative control: Codex catalog rejects missing, duplicate and stale entries', () => { + const entry = { name: 'spring-tools', source: { source: 'local', path: `./${PLUGIN_DIR}` } }; + assert.match(checkCodexMarketplace({ plugins: [] }, repoRoot).join('\n'), /exactly one/); + assert.match(checkCodexMarketplace({ plugins: [entry, entry] }, repoRoot).join('\n'), /exactly one/); + for (const source of [{ source: 'local', path: './missing-plugin' }, { source: 'git', path: `./${PLUGIN_DIR}` }]) { + assert.match(checkCodexMarketplace({ plugins: [{ ...entry, source }] }, repoRoot).join('\n'), /source must be local with path/); + } +}); + +test('negative control: Codex catalog detects a missing or differently named portable manifest', () => { + const root = mkdtempSync(join(tmpdir(), 'codex-catalog-')); + const catalog = { plugins: [{ name: 'spring-tools', source: { source: 'local', path: `./${PLUGIN_DIR}` } }] }; + try { + assert.match(checkCodexMarketplace(catalog, root).join('\n'), /no portable plugin.json/); + mkdirSync(join(root, PLUGIN_DIR), { recursive: true }); + writeFileSync(join(root, PLUGIN_DIR, 'plugin.json'), JSON.stringify({ name: 'other-plugin' })); + assert.match(checkCodexMarketplace(catalog, root).join('\n'), /name differs/); + } finally { + rmSync(root, { recursive: true, force: true }); + } +}); + +test('negative control: a misspelled MCP tool name in a hook is detected', () => { + const hooks = JSON.parse(readFileSync(join(here, 'fixtures', 'bad-hooks.json'), 'utf8')); + const errors = checkHooks(hooks, tools, repoRoot); + assert.match(errors.join('\n'), /unknown MCP tool 'fileChangd'/); + assert.match(errors.join('\n'), /server must be 'plugin:spring-tools:spring-tools-mcp'/); + assert.match(errors.join('\n'), /input 'path' is not a parameter of fileChanged\(filePath\)/); + assert.match(errors.join('\n'), /skips mcp_tool hooks on SessionStart/); + assert.match(errors.join('\n'), /does not exist in the plugin directory/); + assert.match(errors.join('\n'), /path placeholders belong in exec-form 'args'/); +}); + +test('negative control: a skill with an unscoped or unknown tool and a wrong name is detected', () => { + const text = readFileSync(join(here, 'fixtures', 'bad-skill.md'), 'utf8'); + const errors = checkSkill('validate', text, tools, skillNames); + assert.match(errors.join('\n'), /name 'validat' differs from directory name/); + assert.match(errors.join('\n'), /MCP tool 'mcp__spring-tools-mcp__getProjectList' is not scoped/); + assert.match(errors.join('\n'), /unknown MCP tool 'getDiagnostics'/); + assert.match(errors.join('\n'), /skill reference 'Skill\(spring-tools:nope\)' points to a missing skill/); + assert.match(errors.join('\n'), /skill reference 'Skill\(quickfix\)' must look like/); + assert.match(errors.join('\n'), /body mentions MCP tool 'getDiagnostics' which does not exist/); +}); + +test('every MCP tool of the language server is reachable through a skill or a hook', () => { + const hooks = JSON.parse(readFileSync(join(pluginDir, 'hooks', 'hooks.json'), 'utf8')); + assert.deepEqual(uncoveredTools(tools, skillNames.map(skillText), hooks), []); + assert.ok(tools.size >= 26, `expected the full tool inventory, found ${tools.size}`); + assert.ok(skillNames.length >= 9, `expected at least 9 skills, found ${skillNames.length}`); +}); + +test('the analysis skills grant exactly the tools their body walks through', () => { + const expectations = { + beans: ['getProjectList', 'getBeanDetails', 'findBeansByType', 'getBeanUsageInfo'], + endpoints: ['getProjectList', 'getRequestMappings', 'findRequestMappingsByMethod'], + architecture: ['getProjectList', 'getLogicalStructure', 'getStructureDependencies', 'getStereotypesList', 'findComponentsByStereotype', 'getListOfComponentsAndTheirStereotypes', + 'captureLogicalStructureBaseline', 'getLogicalStructureChanges', 'getLogicalStructureBaselineHistory', 'clearLogicalStructureBaseline'], + 'spring-versions': ['getProjectList', 'getSpringBootVersion', 'getLatestReleaseInformation', 'getLatestBootVersionsFromMavenRepo', 'getReleases', 'getGenerations', 'getUpcomingReleases'], + 'project-info': ['getProjectList', 'getJavaVersion', 'getSpringBootVersion', 'getResolvedProjectClasspath'], + refresh: ['refreshWorkspace', 'fileChanged', 'fileDeleted'], + }; + for (const [skill, expected] of Object.entries(expectations)) { + const text = skillText(skill); + assert.deepEqual(skillToolNames(text).sort(), [...expected].sort(), skill); + for (const name of expected) { + assert.ok(text.includes(`\`${name}\``), `${skill} body should explain when to use ${name}`); + } + } + // Skills that ask questions of the index must not be allowed to change files. + for (const skill of ['beans', 'endpoints', 'architecture', 'spring-versions', 'project-info']) { + const allowed = parseFrontMatter(skillText(skill))['allowed-tools']; + assert.ok(!allowed.some((rule) => /^(Edit|Write|Bash|NotebookEdit)\b/.test(rule)), `${skill} must stay read-only`); + } +}); + +test('the spring-versions skill separates workspace project names from Spring IO slugs', () => { + const text = skillText('spring-versions'); + assert.match(text, /spring-boot.*spring-framework/s, 'names the Spring IO slugs'); + assert.match(text, /getLatestBootVersionsFromMavenRepo[\s\S]*Gradle/, 'documents the Maven-only limitation'); +}); + +test('agents/ ships a read-only Spring reviewer whose MCP grant is scoped to the plugin server', () => { + assert.ok(agentFiles.includes('spring-reviewer.md')); + for (const file of agentFiles) { + const text = readFileSync(join(agentsDir, file), 'utf8'); + assert.deepEqual(checkAgent(file, text, tools), [], file); + } + const reviewer = parseFrontMatter(readFileSync(join(agentsDir, 'spring-reviewer.md'), 'utf8')); + const granted = String(reviewer.tools).split(',').map((s) => s.trim()); + assert.ok(granted.includes(`${SCOPED_TOOL_PREFIX}*`), 'the reviewer needs every plugin MCP tool'); + assert.ok(!granted.some((t) => /^(Edit|Write|Bash|NotebookEdit)$/.test(t)), 'a reviewer must not edit or run commands'); + assert.ok(reviewer.description.length <= 250, 'agent descriptions are shown in the agent list; keep them short'); +}); + +test('negative control: a malformed plugin agent is detected', () => { + const errors = checkAgent('spring-reviewer.md', readFileSync(join(here, 'fixtures', 'bad-agent.md'), 'utf8'), tools); + assert.match(errors.join('\n'), /name 'spring-review' differs from file name 'spring-reviewer'/); + assert.match(errors.join('\n'), /too short description/); + assert.match(errors.join('\n'), /'hooks' is ignored for agents shipped in a plugin/); + assert.match(errors.join('\n'), /MCP tool 'mcp__spring-tools-mcp__getProjectList' is not scoped/); + assert.match(errors.join('\n'), /unknown MCP tool 'getDiagnostics'/); + assert.match(errors.join('\n'), /body mentions MCP tool 'getDiagnostics'/); +}); + +test('negative control: a tool nobody grants shows up as uncovered', () => { + const extended = new Map(tools); + extended.set('getSomethingNew', ['projectName']); + const hooks = JSON.parse(readFileSync(join(pluginDir, 'hooks', 'hooks.json'), 'utf8')); + assert.deepEqual(uncoveredTools(extended, skillNames.map(skillText), hooks), ['getSomethingNew']); + assert.deepEqual(uncoveredTools(new Map([['fileChanged', ['filePath']]]), [], hooks), [], 'hooks count as coverage'); +}); + +test('check-plugin-config.mjs reports the inventory it validated', (t) => { + const result = spawnSync(process.execPath, [join(here, '..', 'check-plugin-config.mjs'), '--cross-host'], { encoding: 'utf8' }); + if (result.error?.code === 'EPERM') { + t.skip('sandbox denies child process creation'); + return; + } + assert.equal(result.status, 0, result.stderr); + assert.match(result.stdout, /^plugin config OK \(\d+ tools, \d+ skills, \d+ agent\(s\) with Copilot copies, \d+ eval case\(s\), every tool covered by a skill or hook and behavioral eval\)/); +}); + +const agentPluginManifest = () => JSON.parse(readFileSync(join(pluginDir, 'plugin.json'), 'utf8')); +const agentPluginMcp = () => JSON.parse(readFileSync(join(pluginDir, 'mcp.json'), 'utf8')); +const claudeManifest = () => JSON.parse(readFileSync(join(pluginDir, '.claude-plugin', 'plugin.json'), 'utf8')); + +test('the Agent Plugins manifests Copilot reads stay within the closed schema and in sync with the Claude manifest', () => { + const manifest = agentPluginManifest(); + const mcp = agentPluginMcp(); + assert.deepEqual(checkAgentPluginManifest(manifest, mcp, claudeManifest(), repoRoot), []); + assert.equal(manifest.$schema, PLUGIN_SCHEMA); + assert.equal(mcp.$schema, MCP_SCHEMA); + // Copilot expands ${PLUGIN_ROOT} in args only, so the command has to be a bare executable. + assert.equal(mcp.mcpServers['spring-tools-mcp'].command, 'node'); + assert.ok(mcp.mcpServers['spring-tools-mcp'].args.some((a) => a === '${PLUGIN_ROOT}/launcher.js')); +}); + +test('negative control: schema violations and drift between the two manifests are reported', () => { + const claude = claudeManifest(); + const broken = { ...agentPluginManifest(), displayName: 'Spring Tools', version: '9.9.9', author: 'Spring Tools' }; + const errors = checkAgentPluginManifest(broken, agentPluginMcp(), claude, repoRoot); + assert.ok(errors.some((e) => e.includes("'displayName' is not allowed"))); + assert.ok(errors.some((e) => e.includes('version differs'))); + assert.ok(errors.some((e) => e.includes('author must be an object'))); + const badMcp = { $schema: MCP_SCHEMA, mcpServers: { 'spring-tools-mcp': { type: 'stdio', command: '${PLUGIN_ROOT}/node', args: ['launcher.js'], env: { PLUGIN_ROOT: '/x' } } } }; + const mcpErrors = checkAgentPluginManifest(agentPluginManifest(), badMcp, claude, repoRoot); + assert.ok(mcpErrors.some((e) => e.includes("command must be 'node'"))); + assert.ok(mcpErrors.some((e) => e.includes('${PLUGIN_ROOT}/launcher.js'))); + assert.ok(mcpErrors.some((e) => e.includes("must not redefine 'PLUGIN_ROOT'"))); +}); + +test('the Copilot hooks only use command hooks with both shells and existing scripts', () => { + const hooks = JSON.parse(readFileSync(join(pluginDir, COPILOT_DIR, 'hooks', 'hooks.json'), 'utf8')); + assert.deepEqual(checkCopilotHooks(hooks, repoRoot), []); + assert.ok(hooks.hooks.sessionStart[0].bash.includes('install.js')); +}); + +test('negative control: Claude hook spellings in the Copilot hooks file are rejected', () => { + const pascalCase = { version: 1, hooks: { SessionStart: [{ type: 'command', bash: 'node x.js', powershell: 'node x.js' }] } }; + assert.ok(checkCopilotHooks(pascalCase, null).some((e) => e.includes("unknown event 'SessionStart'"))); + const mcpTool = { version: 1, hooks: { postToolUse: [{ type: 'mcp_tool', tool: 'fileChanged' }] } }; + assert.ok(checkCopilotHooks(mcpTool, null).some((e) => e.includes("only runs 'command' hooks"))); + const missingShell = { version: 1, hooks: { sessionStart: [{ type: 'command', bash: 'node x.js' }] } }; + assert.ok(checkCopilotHooks(missingShell, null).some((e) => e.includes('powershell'))); + const missingScript = { version: 1, hooks: { sessionStart: [{ type: 'command', bash: 'node "$PLUGIN_ROOT/nope.js"', powershell: 'node "$env:PLUGIN_ROOT/nope.js"' }] } }; + assert.ok(checkCopilotHooks(missingScript, repoRoot).some((e) => e.includes('nope.js'))); +}); + +test('the Copilot agent copies keep the instructions of their Claude originals', () => { + const copilotAgentsDir = join(pluginDir, COPILOT_DIR, 'agents'); + const copies = readdirSync(copilotAgentsDir).filter((f) => f.endsWith('.agent.md')); + assert.deepEqual(copies.sort(), agentFiles.map((f) => f.replace(/\.md$/, '.agent.md')).sort()); + for (const file of copies) { + const claudeText = readFileSync(join(agentsDir, file.replace(/\.agent\.md$/, '.md')), 'utf8'); + assert.deepEqual(checkCopilotAgent(file, readFileSync(join(copilotAgentsDir, file), 'utf8'), claudeText), []); + // Copilot supports `tools` as an allowlist, but not Claude-only `model` metadata. + assert.deepEqual(Object.keys(parseFrontMatter(readFileSync(join(copilotAgentsDir, file), 'utf8'))), ['name', 'description', 'tools']); + } +}); + +test('Claude, Copilot and OpenCode reviewer adapters are generated from the portable spring-review skill', () => { + const shared = skillText('spring-review').replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/, '').trim(); + const adapters = [ + readFileSync(join(agentsDir, 'spring-reviewer.md'), 'utf8'), + readFileSync(join(pluginDir, COPILOT_DIR, 'agents', 'spring-reviewer.agent.md'), 'utf8'), + readFileSync(join(pluginDir, 'opencode', 'agents', 'spring-reviewer.md'), 'utf8'), + ]; + for (const text of adapters) { + assert.equal(text.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/, '').trim(), shared); + } + const openCode = JSON.parse(readFileSync(join(pluginDir, 'opencode', 'opencode.jsonc'), 'utf8')); + assert.deepEqual(openCode.mcp['spring-tools'].command, ['node', '{env:SPRING_TOOLS_PLUGIN_ROOT}/launcher.js']); + assert.equal(openCode.mcp['spring-tools'].timeout, 120000); + assert.match(adapters[2], /mode: subagent[\s\S]*edit: deny[\s\S]*spring-tools_\*.*allow/); +}); + +test('snapshot workflow updates the portable and Claude plugin manifest versions together', () => { + const workflow = readFileSync(join(repoRoot, '.github', 'workflows', 'snapshot-standalone-ls.yml'), 'utf8'); + assert.match(workflow, /jq --arg v "\$version" '\.version = \$v' agent-plugins\/spring-tools\/\.claude-plugin\/plugin\.json/); + assert.match(workflow, /jq --arg v "\$version" '\.version = \$v' agent-plugins\/spring-tools\/plugin\.json/); + assert.match(workflow, /git add agent-plugins\/spring-tools\/\.claude-plugin\/plugin\.json agent-plugins\/spring-tools\/plugin\.json/); +}); + +test('negative control: a drifted or over-specified Copilot agent copy is reported', () => { + const claudeText = readFileSync(join(agentsDir, 'spring-reviewer.md'), 'utf8'); + const drifted = '---\nname: spring-reviewer\ndescription: Something else entirely that is long enough.\nmodel: inherit\n---\n\nDo something different.\n'; + const errors = checkCopilotAgent('spring-reviewer.agent.md', drifted, claudeText); + assert.ok(errors.some((e) => e.includes("'model' is not supported by Copilot custom agents"))); + assert.ok(errors.some((e) => e.includes('description differs'))); + assert.ok(errors.some((e) => e.includes('instructions differ'))); + assert.ok(checkCopilotAgent('ghost.agent.md', '---\nname: ghost\ndescription: x\n---\n\nbody\n', undefined).some((e) => e.includes('no matching agents/ghost.md'))); +}); + +test('the eval suite mocks every MCP tool with the recorded tools/list and covers every skill and agent with a case', () => { + const agentNames = agentFiles.map((f) => f.replace(/\.md$/, '')); + assert.deepEqual(checkEvals(evalsDir, tools, skillNames, agentNames), []); + const mocks = readdirSync(join(evalsDir, 'mocks', 'spring-tools-mcp')); + assert.ok(mocks.includes('_tools.json')); + assert.equal(mocks.filter((f) => f.endsWith('.md')).length, tools.size); + // The validate and reviewer cases get a diagnostics recording that contains a Java diagnostic. + for (const name of ['validate-finds-spring-problems', 'reviewer-agent-reviews-project']) { + const override = readFileSync(join(evalsDir, name, 'mocks', 'spring-tools-mcp', 'getProjectDiagnostics.md'), 'utf8'); + assert.match(override, /JAVA_AUTOWIRED_CONSTRUCTOR/); + assert.match(override, /expect:\n\s+projectName: sf7-validation/); + } + // Recordings must not leak the machine they were taken on. + for (const file of mocks.filter((f) => f.endsWith('.md'))) { + assert.doesNotMatch(readFileSync(join(evalsDir, 'mocks', 'spring-tools-mcp', file), 'utf8'), /\/tmp\/|\/home\//, `${file} contains a local path`); + } +}); + +test('negative control: a broken eval suite is rejected', () => { + const dir = mkdtempSync(join(tmpdir(), 'spring-tools-evals-')); + try { + mkdirSync(join(dir, 'mocks', 'spring-tools-mcp'), { recursive: true }); + writeFileSync(join(dir, 'mocks', 'spring-tools-mcp', 'getEverything.md'), 'nope\n'); + writeFileSync(join(dir, 'mocks', 'spring-tools-mcp', '_tools.json'), JSON.stringify({ tools: [{ name: 'getProjectList' }] })); + mkdirSync(join(dir, 'no-graders')); + writeFileSync(join(dir, 'no-graders', 'prompt.md'), '---\nmax_turns: 5\n---\n\nHello\n'); + mkdirSync(join(dir, 'bad-refs', 'graders'), { recursive: true }); + writeFileSync(join(dir, 'bad-refs', 'prompt.md'), 'Do the thing\n'); + writeFileSync(join(dir, 'bad-refs', 'graders', 'tool.md'), `---\ntype: tool_used\ntool: ${SCOPED_TOOL_PREFIX}getNothing\n---\n`); + writeFileSync(join(dir, 'bad-refs', 'graders', 'skill.md'), '---\ntype: tool_used\ntool: Skill\ninput_match: \'"skill"\\s*:\\s*"(?:[\\w-]+:)?nonexistent"\'\n---\n'); + writeFileSync(join(dir, 'bad-refs', 'graders', 'agent.md'), '---\ntype: tool_used\ntool: Agent\ninput_match: ghost-agent\n---\n'); + writeFileSync(join(dir, 'bad-refs', 'graders', 'untyped.md'), 'PASS if anything.\n'); + const errors = checkEvals(dir, tools, ['validate'], ['spring-reviewer']); + const expect = (pattern) => assert.ok(errors.some((e) => pattern.test(e)), `expected an error matching ${pattern}, got:\n${errors.join('\n')}`); + expect(/mock getEverything\.md answers unknown tool/); + expect(/_tools\.json differs/); + expect(/tools without a suite-wide mock/); + expect(/no-graders: no graders/); + expect(/getNothing' does not exist/); + expect(/skill 'nonexistent' does not exist/); + expect(/agent 'ghost-agent' does not exist/); + expect(/untyped\.md: no type/); + expect(/skill 'validate' has no case/); + expect(/agent 'spring-reviewer' has no case/); + } finally { + rmSync(dir, { recursive: true, force: true }); + } +}); + +test('the mock MCP server rejects tool names that could traverse out of its mock directory', (t) => { + const server = join(here, '..', 'evals', 'mock-mcp-server.mjs'); + const result = spawnSync(process.execPath, [server], { + encoding: 'utf8', + input: `${JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'tools/call', params: { name: '../../etc/passwd', arguments: {} } })}\n`, + env: { ...process.env, EVAL_MOCK_DIRS: join(here, 'fixtures') }, + }); + if (result.error?.code === 'EPERM') { + t.skip('sandbox denies child process creation'); + return; + } + assert.equal(result.status, 0, result.stderr); + const reply = JSON.parse(result.stdout.trim()); + assert.equal(reply.result.isError, true); + assert.equal(reply.result.content[0].text, 'invalid tool name'); +}); + +test('Copilot eval tool graders honor positive and negative occurrence bounds', () => { + const trace = [ + { tool: 'spring-tools-mcp-getProjectList', input: '{}' }, + { tool: 'skill', input: '{"skill":"spring-tools:validate"}' }, + ]; + assert.equal(countToolMatches({ tool: 'mcp__plugin_spring-tools_spring-tools-mcp__getProjectList' }, trace), 1); + assert.equal(toolGradePasses({ type: 'tool_used', tool: 'mcp__plugin_spring-tools_spring-tools-mcp__getProjectList' }, trace), true); + assert.equal(toolGradePasses({ type: 'tool_used', tool: 'Skill', min: 0, max: 0 }, trace), false); + assert.equal(toolGradePasses({ type: 'tool_used', tool: 'Skill', input_match: 'nope', min: 0, max: 0 }, trace), true); + assert.equal(toolGradePasses({ type: 'tool_used', tool: 'Skill', min: 2, max: 3 }, trace), false); +}); + +test('Copilot evals select custom agents using the file-derived ID without plugin namespacing', () => { + assert.equal(copilotAgentId('spring-reviewer'), 'spring-reviewer'); + assert.equal(copilotAgentId('spring-tools:spring-reviewer'), undefined); + assert.equal(copilotAgentId('spring-reviewer --evil'), undefined); +}); diff --git a/claude-plugins/update-local-jars.sh b/agent-plugins/update-local-jars.sh similarity index 86% rename from claude-plugins/update-local-jars.sh rename to agent-plugins/update-local-jars.sh index bb6708a425..7c35634511 100755 --- a/claude-plugins/update-local-jars.sh +++ b/agent-plugins/update-local-jars.sh @@ -1,15 +1,15 @@ #!/bin/bash set -e -# Go to the directory of this script (claude-plugins) +# Go to the directory of this script (agent-plugins) cd "$(dirname "$0")" echo "Building standalone language server..." cd ../headless-services ./mvnw -f pom.xml -pl spring-boot-language-server-standalone -am -DskipTests clean package -cd ../claude-plugins +cd ../agent-plugins -echo "Updating local JARs for Claude Code plugins..." +echo "Updating local JARs for agent plugins..." # 1. Update spring-tools plugin echo "Updating spring-tools plugin..." diff --git a/claude-plugins/tools/package.json b/claude-plugins/tools/package.json deleted file mode 100644 index 58191e9b92..0000000000 --- a/claude-plugins/tools/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "spring-tools-claude-plugin-tools", - "version": "0.0.0", - "private": true, - "description": "Development checks for the Spring Tools Claude Code plugin (explanation playbooks, plugin configuration). Not part of the published plugin.", - "license": "EPL-1.0", - "engines": { - "node": ">=20" - }, - "scripts": { - "check": "node check-explanations.mjs --require-all --todo", - "check:links": "node check-explanations.mjs --require-all --links", - "test": "node --test --test-reporter=tap \"test/*.test.mjs\"" - } -} diff --git a/claude-plugins/tools/test/plugin-config.test.mjs b/claude-plugins/tools/test/plugin-config.test.mjs deleted file mode 100644 index d7816f3ece..0000000000 --- a/claude-plugins/tools/test/plugin-config.test.mjs +++ /dev/null @@ -1,148 +0,0 @@ -/******************************************************************************* - * 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 assert from 'node:assert/strict'; -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, - PLUGIN_DIR, - SCOPED_TOOL_PREFIX, - checkHooks, - checkManifest, - checkSkill, - collectMcpTools, - parseFrontMatter, -} from '../lib/plugin-config.mjs'; - -const here = dirname(fileURLToPath(import.meta.url)); -const repoRoot = join(here, '..', '..', '..'); -const pluginDir = join(repoRoot, PLUGIN_DIR); -const tools = collectMcpTools(repoRoot); -const skillsDir = join(pluginDir, 'skills'); -const skillNames = readdirSync(skillsDir); - -test('the language server exposes the MCP tools the plugin relies on', () => { - for (const name of ['getProjectList', 'getProjectDiagnostics', 'fileChanged', 'fileDeleted', 'refreshWorkspace', 'getSpringBootVersion']) { - assert.ok(tools.has(name), `MCP tool ${name} not found in the language server sources`); - } - assert.deepEqual(tools.get('fileChanged'), ['filePath']); - assert.deepEqual(tools.get('getProjectDiagnostics'), ['projectName']); -}); - -test('checkHooks accepts an existing plugin MCP tool for a valid hook', () => { - const hooks = { - hooks: { - PostToolUse: [{ - matcher: 'Edit', - hooks: [{ - type: 'mcp_tool', - if: 'Edit(*.java)', - server: HOOK_SERVER, - tool: 'fileChanged', - input: { filePath: '${tool_input.file_path}' }, - }], - }], - }, - }; - assert.deepEqual(checkHooks(hooks, tools), []); -}); - -test('every skill has a SKILL.md whose name matches its directory and whose tools exist', () => { - for (const dirName of skillNames) { - const file = join(skillsDir, dirName, 'SKILL.md'); - assert.ok(existsSync(file), `${dirName} has no SKILL.md`); - assert.deepEqual(checkSkill(dirName, readFileSync(file, 'utf8'), tools, skillNames), [], dirName); - } -}); - -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(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', () => { - 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')); - assert.ok(text.includes('`../../explanations/.md` relative to this skill directory')); - assert.ok(!/\$ARGUMENTS\[/.test(text), 'quickfix should use the named placeholders only'); - assert.ok(front['allowed-tools'].includes(`${SCOPED_TOOL_PREFIX}getSpringBootVersion`)); -}); - -test('the validate skill pre-approves quickfix invocations that carry arguments', () => { - 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(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'); - assert.ok(text.includes('curl -sS https://start.spring.io | grep'), 'the body must use exactly the granted lookup command'); - assert.ok(allowed.includes(`${SCOPED_TOOL_PREFIX}refreshWorkspace`)); - assert.match(text, /refreshWorkspace/); -}); - -test('plugin.json and the local marketplace are consistent with the plugin directory', () => { - 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')); - assert.deepEqual(checkManifest(pluginJson, marketplace, repoRoot), []); -}); - -test('negative control: a misspelled MCP tool name in a hook is detected', () => { - const hooks = JSON.parse(readFileSync(join(here, 'fixtures', 'bad-hooks.json'), 'utf8')); - const errors = checkHooks(hooks, tools, repoRoot); - assert.match(errors.join('\n'), /unknown MCP tool 'fileChangd'/); - assert.match(errors.join('\n'), /server must be 'plugin:spring-tools:spring-tools-mcp'/); - assert.match(errors.join('\n'), /input 'path' is not a parameter of fileChanged\(filePath\)/); - assert.match(errors.join('\n'), /skips mcp_tool hooks on SessionStart/); - assert.match(errors.join('\n'), /does not exist in the plugin directory/); - assert.match(errors.join('\n'), /path placeholders belong in exec-form 'args'/); -}); - -test('negative control: a skill with an unscoped or unknown tool and a wrong name is detected', () => { - const text = readFileSync(join(here, 'fixtures', 'bad-skill.md'), 'utf8'); - const errors = checkSkill('validate', text, tools, skillNames); - assert.match(errors.join('\n'), /name 'validat' differs from directory name/); - assert.match(errors.join('\n'), /MCP tool 'mcp__spring-tools-mcp__getProjectList' is not scoped/); - assert.match(errors.join('\n'), /unknown MCP tool 'getDiagnostics'/); - assert.match(errors.join('\n'), /skill reference 'Skill\(spring-tools:nope\)' points to a missing skill/); - assert.match(errors.join('\n'), /skill reference 'Skill\(quickfix\)' must look like/); - assert.match(errors.join('\n'), /body mentions MCP tool 'getDiagnostics' which does not exist/); -});