Skip to content

GH-2032: Cover MCP tools with skills and plugin evaluations - #2068

Merged
BoykoAlex merged 2 commits into
spring-projects:mainfrom
patbaumgartner:pr/c1-mcp-coverage
Nov 24, 2026
Merged

BoykoAlex merged 2 commits into
spring-projects:mainfrom
patbaumgartner:pr/c1-mcp-coverage

Conversation

@patbaumgartner

@patbaumgartner patbaumgartner commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes gh-2032

Summary

  • Cover all 27 Spring Tools MCP tools through skills or hooks and behavioral eval cases with mock recordings.
  • Keep eval cases and recordings under claude-plugins/tools/evals, outside the published plugin; stage a temporary plugin copy when running Claude evals.
  • Add plugin configuration checks, an MCP smoke test, and the Claude Plugin Check workflow.
  • Clarify how the Spring reviewer complements diagnostics and reports their severity.

Stack

Rebased onto current main after #2066 and #2067 were merged. The downstream PRs #2069 and #2070 have been updated. Merge order: #2066 → #2067 → #2068 → #2069 → #2070.

The latest plugin-check run is marked action_required and has no jobs yet; a maintainer needs to approve it before checks can run.

Validation

  • npm --prefix claude-plugins/tools test (50 tests passed)
  • node claude-plugins/tools/check-plugin-config.mjs (27 tools, 10 skills, 13 eval cases)
  • node claude-plugins/tools/check-explanations.mjs --require-all --todo (76/76)
  • claude plugin validate ./claude-plugins/spring-tools --strict (passed; icon warning)
  • Smoke build blocked locally: Eclipse artifact repository returned HTTP 503 for LemMinX.
  • ./nohttp.sh reports the existing docker/docker-maven-settings.xml namespace URL.
  • Model-based behavioral evals were not run.

Generated by Copilot SDK via OSS Helper

@BoykoAlex BoykoAlex left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have evals folder under spring-tools folder? Aren't we include evals content in the spring-tools plugin insatlled with this? I'd probably move all contents of the spring-tools/eval folder into tools/evals.

@martinlippert looks like we'd need the anthropic api key to run tests on claude code plugin...


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 `<CODE>.md` files in the plugin's `explanations` directory, at `${CLAUDE_PLUGIN_ROOT}/explanations/<CODE>.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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't 3-6 covered by 2?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! There is overlap, but diagnostics do not provide all of the bean, endpoint, structure, and support information used in steps 3–6. I clarified that these steps complement diagnostics and that suspected findings need confirmation.


Report format:

- **Blocking**: problems that break the application context, the build or security (each with file:line and the fix).

@BoykoAlex BoykoAlex Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are those the severity ERROR, WARNING, INFO, HINT coming from the diagnsotics?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diagnostic tool reports error, warning, info, hint, or unspecified. The report headings are separate review-impact categories, not a severity mapping. I clarified that and asked the reviewer to retain the reported severity alongside each diagnostic.

@martinlippert

Copy link
Copy Markdown
Member

@martinlippert looks like we'd need the anthropic api key to run tests on claude code plugin...

Let me check on this...

@BoykoAlex

Copy link
Copy Markdown
Contributor

Hey @patbaumgartner this PR is LGTM overall. Would you have time to address the comment below:

Why do we have evals folder under spring-tools folder? Aren't we include evals content in the spring-tools plugin insatlled with this? I'd probably move all contents of the spring-tools/eval folder into tools/evals.

Rebase it on the latest and resolve conflicts and then I'll merge it.

If you're unlikely to get some time to adjust it let me know if you agree with the above comment and if yes, let me know what you'd park the tests and i can try adjusting the PR myself.

…tions

Fixes spring-projectsgh-2032

Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
@patbaumgartner

Copy link
Copy Markdown
Contributor Author

Thanks! I moved the eval cases and mock recordings to claude-plugins/tools/evals, updated the checks and recorder, and added a runner that stages a temporary plugin copy because Claude requires evals inside the plugin root. The branch is rebased onto current main. The plugin tests and offline consistency checks pass; the local smoke build was blocked by the Eclipse artifact repository returning HTTP 503. Behavioral model evals were not run.

@patbaumgartner

Copy link
Copy Markdown
Contributor Author

I have addressed the requested changes and updated the stack description. @BoykoAlex, could you please take another look and re-review? The latest Claude Plugin Check run is action_required with no jobs started. Could a maintainer approve it so the checks can run?

@BoykoAlex
BoykoAlex merged commit 504dd91 into spring-projects:main Nov 24, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cover MCP tools with skills and plugin evaluations

3 participants