21 lines
544 B
Java
21 lines
544 B
Java
package mcp.tools;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* Annotation to mark an {@link McpTool} for automatic discovery and registration.
|
|
*/
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target(ElementType.TYPE)
|
|
public @interface DefaultMcpTool {
|
|
/**
|
|
* Whether this tool is enabled for automatic registration.
|
|
*
|
|
* @return true if enabled, false otherwise.
|
|
*/
|
|
boolean enabled() default true;
|
|
}
|