Skip to content

Conversation

@tzolov
Copy link
Collaborator

@tzolov tzolov commented Sep 15, 2025

  • Change @mcptool generateOutputSchema default from true to false
  • Add documentation for output schema generation behavior
  • Enhance return type handling in tool method callbacks:
    • Improve void/Void type detection and handling
    • Return strings directly without JSON serialization in TEXT mode
    • Better null value handling with explicit null text content
    • Serialize complex objects to JSON for text content
  • Add JsonSchemaGenerator.generateFromType() for better generic type support
  • Update all tool providers to use type-based schema generation
  • Add test coverage for:
    • List return types with complex objects
    • Output schema generation behavior
    • String vs complex object serialization
    • Flux/Mono reactive return types

BREAKING CHANGE: @mcptool generateOutputSchema now defaults to false, requiring explicit enablement for output schema generation

- Change @mcptool generateOutputSchema default from true to false
- Add documentation for output schema generation behavior
- Enhance return type handling in tool method callbacks:
  * Improve void/Void type detection and handling
  * Return strings directly without JSON serialization in TEXT mode
  * Better null value handling with explicit null text content
  * Serialize complex objects to JSON for text content
- Add JsonSchemaGenerator.generateFromType() for better generic type support
- Update all tool providers to use type-based schema generation
- Add test coverage for:
  * List return types with complex objects
  * Output schema generation behavior
  * String vs complex object serialization
  * Flux/Mono reactive return types

BREAKING CHANGE: @mcptool generateOutputSchema now defaults to false,
requiring explicit enablement for output schema generation

Signed-off-by: Christian Tzolov <[email protected]>
@tzolov tzolov added this to the 0.4.0 milestone Sep 15, 2025
@ilayaperumalg ilayaperumalg self-assigned this Sep 15, 2025
@ilayaperumalg
Copy link
Collaborator

LGTM, rebased and merged as 63ff383. Also added a test for checking a specific case of returning a list of String in an @McpTool method 9ccfd04

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