Skip to content

fix: Remove @SerialName annotation for inputSchema #105

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

Merged
merged 2 commits into from
May 27, 2025

Conversation

adamglin0
Copy link
Contributor

@adamglin0 adamglin0 commented May 24, 2025

Removed incorrect @SerialName on inputSchema

Motivation and Context

Incorrect deserialization caused all tools to fail to invoke.

How Has This Been Tested?

Yes

Breaking Changes

No version has used it yet.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

https://modelcontextprotocol.io/docs/concepts/tools

Both the server code and the MCP specifications use camelCase format.


https://github.com/modelcontextprotocol/java-sdk/blob/07e7b8fd6bac47be4527f97451f8cdd95ed31a38/mcp/src/main/java/io/modelcontextprotocol/spec/McpSchema.java#L720

Other sdk also use input_schema


https://github.com/anthropics/anthropic-sdk-java
#97 should refer to the content of this repository, not mcp.

@adamglin0 adamglin0 marked this pull request as draft May 24, 2025 10:36
@adamglin0 adamglin0 marked this pull request as ready for review May 24, 2025 10:46
Copy link
Contributor

@e5l e5l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @adamglin0, thanks for the PR. LGTM

@e5l e5l enabled auto-merge (squash) May 26, 2025 08:40
@adamglin0
Copy link
Contributor Author

@e5l Thanks for the review, I think that the tests on the main branch are not passing either.

@e5l e5l disabled auto-merge May 27, 2025 06:54
@e5l e5l enabled auto-merge (squash) May 27, 2025 06:54
@e5l e5l merged commit 7ce665b into modelcontextprotocol:main May 27, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants