Add mcp-apps module: Spring AI 2.1.0 MCP server with MCP Apps HTML views, app-only tool callbacks, CSP declarations, SDK client tests and a Chromium harness on the official AppBridge

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4RzcCS5JCAgcxLz7T
This commit is contained in:
Claude
2026-12-05 16:43:24 +05:30
parent 8fa3c5d682
commit 508fed3b98
46 changed files with 1730 additions and 0 deletions
+2
View File
@@ -23,6 +23,7 @@ facts, so the build fails when a claim stops being true.
| `log-anomaly` | AI Log Anomaly Detection for Spring Boot: Embeddings and Clustering | a parser for Spring Boot's own log layout, template mining, an `Embedder` seam (offline hashing or any `/v1/embeddings` endpoint), k-means over normal templates, a novel-template detector and a rate-spike detector with their measured blind spots, incidents, and a summary prompt that is 0.4% of the raw window; tested on seeded synthetic logs and on a log file Spring Boot 4.2.0 wrote itself |
| `classic-ml-vs-llm` | Text Classification in Java Without an LLM: Tribuo vs Smile vs a Zero-Shot LLM | 3000 seeded synthetic support tickets in five categories; Tribuo and Smile logistic regression and Smile naive Bayes against a majority baseline, with accuracy, macro-F1, latency and model size; skewed classes, train/test duplicates, vocabulary drift and the three different answers to a ticket of unseen words; a zero-shot LLM client tested against a fake endpoint (no model was called) and a cost formula with assumed prices |
| `pr-reviewer` | Build an AI Pull Request Reviewer in Java: Spring AI, Gitea Webhooks and Inline Comments | signed webhooks, hunk-aware chunking, Spring AI structured output, a quote-based guard against wrong line numbers, de-duplication across pushes and cleanup of Gitea's leftover pending reviews; tested against a real Gitea 1.27.3 in Docker, with a scripted model and two small local models; computed cost estimates |
| `mcp-apps` | MCP Apps in Java: Serve Interactive HTML UIs from a Spring AI MCP Server | `ui://` HTML resources linked to tools through `MetaProvider`, a view that calls an app-only tool back, CSP declarations, script injection through tool data, MCP Java SDK client tests, a Playwright harness on the official `AppBridge` and a run against the ext-apps basic-host; no production host and no model involved |
## Versions (verified on Maven Central, 2026-10-11)
@@ -52,6 +53,7 @@ facts, so the build fails when a claim stops being true.
| Spring Boot (`log-anomaly`) | 4.2.0 | verified on Maven Central 2026-12-01; `log-anomaly` only. No Spring AI and no model download: the embedder and the summariser are seams, tested offline |
| Tribuo `tribuo-classification-sgd` / Smile `smile-core` | 4.3.2 / 7.3.0 | verified on Maven Central 2026-12-01; `classic-ml-vs-llm` only. Tribuo is Apache-2.0 and Java 8 bytecode; Smile 7.3.0 is GPL-3.0-or-later or a commercial licence, and its bytecode needs Java 25 |
| Spring Boot / Spring AI (`pr-reviewer`) | 4.2.0 / 2.1.0 | verified on Maven Central 2026-12-03; `pr-reviewer` only; live tests need Docker with Gitea 1.27.3 |
| Spring Boot / Spring AI / MCP Java SDK / `@modelcontextprotocol/ext-apps` (`mcp-apps`) | 4.2.0 / 2.1.0 / 2.2.0 / 2.0.4 | verified on Maven Central and npm 2026-12-05; `mcp-apps` only. The browser harness needs Node 20+ and Chromium |
| JDK | 25 LTS | |
| JUnit | 6.1.3 | |