Class McpToolParameterConverter
java.lang.Object
com.github.thought2code.mcp.annotated.server.converter.AbstractParameterConverter<McpToolParam>
com.github.thought2code.mcp.annotated.server.converter.McpToolParameterConverter
- All Implemented Interfaces:
ParameterConverter<McpToolParam>
This class is used to convert the value of a parameter annotated with
McpToolParam to the
required type.- Author:
- codeboyzhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the value of the parameter annotated withMcpToolParamto the required type.Returns the type of the annotation this converter handles.Methods inherited from class com.github.thought2code.mcp.annotated.server.converter.AbstractParameterConverter
convertAll
-
Constructor Details
-
McpToolParameterConverter
public McpToolParameterConverter()
-
-
Method Details
-
convert
Converts the value of the parameter annotated withMcpToolParamto the required type.- Parameters:
parameter- the parameter annotated withMcpToolParamannotation- the annotation instanceargs- the arguments passed to the method- Returns:
- the converted value of the parameter
-
getAnnotationType
Returns the type of the annotation this converter handles.- Returns:
- the type of the annotation this converter handles
-