Annotation Interface McpJsonSchemaProperty
This annotation is used to define the property of a complex JSON schema type (such as custom Java
data classes) for an MCP (Model Context Protocol) server.
By using this annotation, you can define custom JSON schema properties that are not natively supported by the MCP protocol. This allows you to use more complex data models in your MCP server.
- 作者:
- codeboyzhou
- 另请参阅:
-
可选元素概要
可选元素修饰符和类型可选元素说明The description of the JSON schema property.The name of the JSON schema property.booleanWhether the JSON schema property is required.
-
元素详细资料
-
name
String nameThe name of the JSON schema property. Defaults to the Java field name.- 返回:
- the name of the JSON schema property
- 默认值:
- ""
-
description
String descriptionThe description of the JSON schema property. Defaults to the value of thenameattribute.- 返回:
- the description of the JSON schema property
- 默认值:
- ""
-
required
boolean requiredWhether the JSON schema property is required. Defaults tofalse.- 返回:
- whether the JSON schema property is required
- 默认值:
- false
-