Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: ensuring the automatic module name is a valid name by replacing the - to . in artifactId #739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
themaherkhalil wants to merge 4 commits into modelcontextprotocol:main
base: main
Choose a base branch
Loading
from themaherkhalil:main

Conversation

@themaherkhalil
Copy link

@themaherkhalil themaherkhalil commented Dec 31, 2025

Currently the jar's automatic module name is invalid as it contains a - in the artifactId. If you run:

➜ 0.17.0 jar --describe-module --file mcp-core-0.17.0.jar
Unable to derive module descriptor for: mcp-core-0.17.0.jar
Automatic-Module-Name: io.modelcontextprotocol.sdk.mcp-core: Invalid module name: 'mcp-core' is not a Java identifier

This prevents other projects using modules to import the jar.

The change is to replace the - with a .

After compiling the code to build the jar, running the command will produce:

➜ target git:(main) jar --describe-module --file mcp-core-0.18.0-SNAPSHOT.jar
No module descriptor found. Derived automatic module.
io.modelcontextprotocol.sdk.mcp.core@0.18.0-SNAPSHOT automatic
requires java.base mandated
contains io.modelcontextprotocol.client
contains io.modelcontextprotocol.client.transport
contains io.modelcontextprotocol.client.transport.customizer
contains io.modelcontextprotocol.common
contains io.modelcontextprotocol.json
contains io.modelcontextprotocol.json.schema
contains io.modelcontextprotocol.server
contains io.modelcontextprotocol.server.transport
contains io.modelcontextprotocol.spec
contains io.modelcontextprotocol.util

Copy link

gbrail commented Jan 31, 2026

+1 to this! It's not possible to use anything that depends on this library, like the Google ADK, with Java modules without a fix. Thanks for opening it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /