InternalMcpApi
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPEALIAS] )
Denotes that the annotated API is internal to the MCP SDK and its usage is restricted to components within the SDK. It is not intended to be used in general application code or by external consumers.
This annotation is used to communicate and enforce the limited visibility of certain APIs to prevent accidental usage outside their intended context.
Applying this annotation requires consumers to explicitly opt-in, acknowledging the warning level associated with its use.
This annotation can be used on classes, annotations, properties, fields, local variables, value parameters, constructors, functions, property accessors, and type aliases.
The annotation is retained in the binary and must be documented.