Package io.quarkus.devui.spi.buildtime
Annotation Interface DevMcpBuildTimeTool
@Retention(RUNTIME)
@Target(TYPE)
@Documented
@Repeatable(DevMcpBuildTimeTools.class)
public @interface DevMcpBuildTimeTool
Declares a build-time MCP tool that is enabled by default. Place this annotation
on a
@BuildStep processor class to make the tool discoverable via Jandex
scanning at build time.
This annotation is the deployment-time counterpart of
JsonRpcDescription +
DevMCPEnableByDefault used on runtime JSON-RPC methods.
It allows the aggregate-skills Maven goal to discover build-time MCP tools without
parsing source code.
@DevMcpBuildTimeTool(name = "runTests", description = "Run all tests", params = {
@DevMcpParam(name = "className", description = "Test class name", required = false)
})
public class TestingProcessor {
// ...
}
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionA human-readable description of what this tool does.The tool name, matching themethodNamein theBuildTimeActionBuildItembuilder chain. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe parameters this tool accepts.
-
Element Details
-
name
String nameThe tool name, matching themethodNamein theBuildTimeActionBuildItembuilder chain. -
description
String descriptionA human-readable description of what this tool does. -
params
DevMcpParam[] paramsThe parameters this tool accepts. Defaults to no parameters.- Default:
{}
-