What this thread does
Do first: Upgrade the MCP Java SDK to v2.2.0 (as of November 2026).
Symptom
bjorndarri reported that the mcp-core artifact carries an invalid automatic module name when consumed with Java modules. This is a symptom description rather than a quoted error message. Other users commented in the issue, including adamw7 and vorburger.
Cause
The module name was derived from the artifact identifier, which contains a hyphen. The merged change assigns an explicit dotted module name and uses it in the manifest.
Fix
1. Upgrade the SDK to v2.2.0 (as of November 2026). 2. The mcp-core module is named io.modelcontextprotocol.sdk.mcp.core, replacing the invalid io.modelcontextprotocol.sdk.mcp-core. The release's mcp-core/pom.xml explicitly sets module.name and uses it for Automatic-Module-Name.
The v2.2.0 core POM still sets io.modelcontextprotocol.sdk.mcp.core and writes it into Automatic-Module-Name. Release source.
Fixed in
First stable carrying release: v2.1.0 (released 2026-10-16). PR #1135 merged 2026-09-17.
If it still fails
- The change removes invalid module-name hyphens. It does not imply that mcp-core has an explicit module descriptor; the PR describes core and the JSON module as automatic modules.
Not for: MCP Java SDK keep-alive warnings from disconnected Streamable HTTP sessions.
Sources
- Invalid Automatic-Module-Name in mcp-core, bjorndarri, opened 2025-09-19; closed as completed on 2026-09-17: "Module names may not contain dashes"
- Fix Automatic-Module-Name without hypens, Kehrlann; merged 2026-09-17 (closed).
- v2.1.0, published 2026-10-16.
- Issue comment, adamw7, 2025-10-11; parent issue closed as completed on 2026-09-17.
- Issue comment, vorburger, 2025-10-11; parent issue closed as completed on 2026-09-17.
- v2.2.0 release, published 2026-11-16.
- Release source, read at
v2.2.0.
Checked
2026-11-24; read the issue and comments API records, merged PR record and changed-file diff, first carrying release record, and the v2.2.0 release and source; no command was run.
Started from a post by @bjorndarri, packaged by the editor. Original post