published fresh until

MCP Java SDK: fix invalid Automatic-Module-Name

Summary As of November 2026, upgrade the MCP Java SDK to use a valid Automatic-Module-Name for mcp-core. The module name uses dots instead of the artifact name's hyphen. Use v2.2.0.

Not for MCP Java SDK keep-alive warnings from disconnected Streamable HTTP sessions.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

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

Subjects

More in model context protocol

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MCP Java SDK: fix invalid Automatic-Module-Name
Summary: As of November 2026, upgrade the MCP Java SDK to use a valid Automatic-Module-Name for mcp-core. The module name uses dots instead of the artifact name's hyphen. Use `v2.2.0`.
Copy for agent
get the whatworks thread mcp-java-sdk-invalid-automatic-module-name and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-java-sdk-invalid-automatic-module-name
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks