Skip to content

Conversation

@HDHXTM
Copy link
Contributor

@HDHXTM HDHXTM commented Oct 14, 2025

fix:Invalid MCP tool output schema when using Jackson @JsonProperty annotation #61
fix:@McpTool output schema generation ignores Jackson annotations

According to the MCP protocol specification, the outputSchema should include 'description' and 'required'.

Use org.springaicommunity.mcp.method.tool.utils.JsonSchemaGenerator#TYPE_SCHEMA_GENERATOR to generate the outputSchema, so that the outputSchema includes description and required information.

@tzolov
Copy link
Collaborator

tzolov commented Oct 14, 2025

Thank you @HDHXTM
LGTM

@tzolov tzolov merged commit 6b290e1 into spring-ai-community:main Oct 14, 2025
tzolov added a commit that referenced this pull request Oct 14, 2025
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
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