Skip to main content

MCP 2026-07-28 for Java Developers: Migrating an MCP Server to the Stateless Spec

The MCP 2026-07-28 spec removes the initialize handshake and the session id. This post migrates a Spring AI 2.1.0 MCP server to it with one property, shows 3 of 6 calls failing behind a round-robin balancer on the old protocol and 6 of 6 succeeding on the new one, and covers input_required, requestState secrets and serving both generations during the move.

Claude Code for Java and Spring Boot Developers: CLAUDE.md, Skills, Hooks, MCP and IntelliJ

Set up Claude Code on a Spring Boot 4.2 project: a short CLAUDE.md, permission rules, hooks that block dangerous commands and run the matching test after every edit, a Stop gate, skills, project-scoped MCP servers and the IntelliJ plugin. The hook scripts and the claude mcp CLI were actually run; what Claude Code does with them is marked as documentation.

Random vs ThreadLocalRandom vs SecureRandom vs RandomGenerator in Java (When to Use Each)

Which Java random class to use, tested on JDK 25: why two outputs of java.util.Random predict the third, the three range bugs (negative remainder, abs of MIN_VALUE, modulo bias measured at 60% vs 43%), ThreadLocalRandom vs a shared Random, SecureRandom algorithms and the setSeed trap, and the 13 RandomGenerator algorithms. Every output is quoted from a committed file.